“DBMS_SCHEDULER Stop Job” Respostas de código

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

Respostas semelhantes a “DBMS_SCHEDULER Stop Job”

Perguntas semelhantes a “DBMS_SCHEDULER Stop Job”

Procure respostas de código populares por idioma

Procurar outros idiomas de código