Killing application user after sometime in db2 - db2

I want kill my application user after 24 hours automatically how it will be possible in db2, please share the script

Related

AWS lambda PostgreSQL RDS Connections limit issue

The back-end is for mobile app.
I`m facing an issue that my lambda return
"error: remaining connection slots are reserved for non-replication superuser connections"
It will happen in around 2k active users open the app when we push a notification then press it and open the app.
So it should be lot of user calling api at the same time.
At this time ,the error comes out.
For now, im using db.r4.large
Is it need to upgrade it?
Any suggestion can help on this?
Please help, thanks a lot
i have check on the Performance Insights from AWS RDS
Here is the screen cap
This is the status in normal time

Schedule refresh Tableau desktop 10.4 and schedule refresh at a particular day/time

I have couple of questions-
I have one workbook with 2 dashboards published on Tableau server-
One dashboard has Excel sheet as data source, which is located in the local system and other dashboard has an oracle DB as data source.
Questions-
1- If I schedule a full extract refresh at Midnight when my system is off, will the refresh be successful?
I understand irrespective of my system being ON/OFF the Data Base based refresh will not be a problem. what will happen to the overall dashboard refresh?
2- This is based on the Tableau desktop-
Below is the screen shot of Tableau desktop 10.4, how do I schedule the refresh on a particular date of the month? (For an example, I want to schedule a refresh on every 5th of the month at 4:00 am)
Similarly, i see the same on my Tableau Server as well.
As far as I remember until beginning of 2018, even Tableau 10.3 had a provision to schedule extract refresh in a customized manner, like select any date/day/time.
Please advise
I think this needs some clarification but if your Tableau instance is shutdown then extracts will not refresh. I am pretty sure they will not be queued up to run upon system boot up either. Server needs to be running at the time of the scheduled task for that task to run.
You can create this type of schedule as a site or server admin. The image you are showing will include the schedule you want but only after it has been setup.
go to schedules/new schedule:
Now when you go back to the schedule list you posted, you will see the new schedule under the name you give it in the setup screen.

Get Dell KACE to run a script outside of the normal interval

Is it possible to get Dell KACE to run a script on a client machine immediately when some condition happens?
I need the script to run on the agent machine within 1 minute of the condition happening (like a file appearing). This is because I need an application to update to a newer version only when a user action happens.
If I set the inventory interval very low and use a custom condition it might affect the general performance of KACE, since there are many client machines.
It's impossible to do this.
I can send an inventory via the API even without admin rights. But the inventory checks/results cannot be linked to scripts in KACE, so that gets me nowhere.

OS system idle (not application idle) in javafx

Firstly this is not a duplicate of this question: JavaFX 2 User Idle Detection as that question is only concerned if the user is not using their application. My question is about knowing if the user is using any application on the computer or none at all.
I think after a few attempts the easiest way to ask this question is to provide a scenario. User logs on to the PC, and my application is started.
The user might make some changes to my application and then minimize the window and start working on some project, a word document or what ever. All this time my application is idle as the user is not using it, but they are still using the computer.
After 15 or 20 minutes working on their word document they get up and walk to the kitchen to make a sandwich.
After they have been away from the computer for a short time they come back and start work on the word document again.
How does my javafx application detect that they have been away in the kitchen for 5 or 6 minutes and pop up a window to ask for input when they return? The user should not need to maximize my application window manually, it should happen automatically.

How to implement worklight server side serverSessionTimeout?

I am trying to implement serverSessionTimeout in worklight server. I enabled serverSessionTimeout=5 and sso.cleanup.taskFrequencyInSeconds=5 in worklight.properties but no luck. We have user db entry for each user login. Ideally it should remove the user db entry once the session reached 5 minutes, but I am not able do clean the user db entry from server side. I appreciate if anybody help me on this.
As Iddo mentioned in the comments:
sso.cleanup.taskFrequencyInSeconds is related to an entirely different feature
serverSessionTimeout instructs the application server to invalidate sessions after the specified amount of time, but the actual cleanup can occur at the application server's discretion (see jaalger2's answer in this question
So in order to control the session, you need to setup the values to your liking. After that, simply let the application sever handle the memory threads.
Is there any particular reason why after the above you also need to access the database and delete rows from it? This should be handled automatically, not "manually".