“DBMS_SCHEDULER STOP JOB” Kode Jawaban

dbms_scheduler drop_job

BEGIN
  dbms_scheduler.drop_job(job_name => 'MY_OWNER.MY_JOB');
END;
VasteMonde

DBMS_SCHEDULER STOP JOB

-- To simply stop job without killing session:
BEGIN
    DBMS_SCHEDULER.STOP_JOB(JOB_NAME => 'scheme.job_name', FORCE => TRUE);
END;
-- Killing job's session: first get Job session IDs
SELECT jr.JOB, s.USERNAME, s.SID, s.SERIAL#, p.SPID, s.LOCKWAIT, s.LOGON_TIME
FROM DBA_JOBS_RUNNING jr, V$SESSION s, V$PROCESS p
WHERE jr.SID = s.SID AND s.PADDR = p.ADDR
ORDER BY jr.JOB;
-- Kill session with IDs and wait for rollback if any...
ALTER SYSTEM KILL SESSION 'SID,SERIAL#' IMMEDIATE;
VasteMonde

Jawaban yang mirip dengan “DBMS_SCHEDULER STOP JOB”

Pertanyaan yang mirip dengan “DBMS_SCHEDULER STOP JOB”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya