oracle 停止正在运行的 Job
select t.SID,
t.job,
(select t_j.what from user_jobs t_j where t_j.job=t.job),
t.* from dba_jobs_running t;
SELECT SID,SERIAL# FROM V$SESSION WHERE SID= '274';
ALTER SYSTEM KILL SESSION '274,37794';
===================================================
参考
--找出正在执行的JOB编号及其会话编号
SELECT SID,JOB FROM DBA_JOBS_RUNNING;
--停止该JOB的执行
SELECT SID,SERIAL# FROM V$SESSION WHERE SID= '&SID ';
ALTER SYSTEM KILL SESSION '&SID,&SERIAL ';
EXEC DBMS_JOB.BROKEN(&JOB,TRUE);