on 01-07-2015 9:46 PM
Hi experts,
Has anybody written any code that will prevent an XS job from running past a certain time limit threshold? I'd like to kill my job if it has been running for more than one hour for example.
Thanks,
-Patrick
Hi Patrick,
You can write script to monitor the table and kill the job based on these.
Catalog table "_SYS_XS"."JOB_LOG" can help you for these.
If it gives error "Result job is running" then your job is running.
Once finished it will be added to catalog table.
Hope this helps.
-
Pratik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Patrick,
You need to identify the session used by the job. Use table M_CONNECTIONS for that.
Once you identified the session from M_CONNECTIONS use below mentioned query to disconnect the session.
ALTER SYSTEM DISCONNECT SESSION '<connection_id>'
Connection id is from M_CONNECTIONS.
-
Pratik
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.