exec DBMS_SCHEDULER.STOP_JOB(job_name => ‘Complexsql.J_Bank_Consolidation’,force => TRUE);просто зависает и не отдает вывод.
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