V
V
Vladimir Revyakin2021-07-26 19:41:47
Oracle
Vladimir Revyakin, 2021-07-26 19:41:47

How to kill hung JOBs in Oracle?

Good afternoon!
Please tell me how you can kill hung JOBs in Oracle, they are not removed through OEM using the "stop job" method, through

exec DBMS_SCHEDULER.STOP_JOB(job_name => 'Complexsql.J_Bank_Consolidation',force => TRUE);
it just hangs and doesn't output.
What is another way to kill them?
60fee58adaf95696000835.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
idShura, 2021-07-27
@idShura

For good, you need to look for the hangup problem, and you need to try to kill using DBMS_SCHEDULER.STOP, if it doesn’t work, then you can also alter system kill session 'SID, SERIAL';

SELECT  V.SID,
           V.SERIAL#,
           J.JOB_NAME,
           'alter system kill session ' || '''' || V.SID || ', ' || V.SERIAL# || ''';'  KILL_SQL
      FROM dba_scheduler_running_jobs J
           left join V$SESSION V on V.SID = J.SESSION_ID

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question