select * from all_scheduler_running_jobs;
– Detener un job:
exec dbms_scheduler.stop_job('USER.JOB');
– Deshabilitar un Job:
exec dbms_scheduler.disable('USER.JOB');
o
exec dbms_scheduler.disable('APP_SMS.HUB_DISPATCHER', true);
– Habilitar un Job:
exec dbms_scheduler.enable('USER.JOB');
– Arrancar un Job:
exec dbms_scheduler.run_job('USER.JOB');
otra forma
alter session set current_schema = APP_ESDC81;
BEGIN
dbms_scheduler.run_job('JOB_REFRESH_EPG_DUP');
END;
/
Para ver los detalles del JOB se ejecuta la siguiente sentencia.
SELECT
job_name
,last_start_date
,last_run_duration
,next_run_date
,repeat_interval
FROM dba_scheduler_jobs
WHERE job_name='<nombre_job>';
Ver si un job esta habilitado o no .
ResponderEliminarSQL> select owner, JOB_NAME, STATE, ENABLED from dba_scheduler_jobs where job_name in('xxx','yyy','zzz');