Here we are using package Name is (DBMS_SCHEDULER)
How to disable jobs
SQL> exec dbms_scheduler.disable(‘GATHER_STATS_JOB’);
PL/SQL procedure successfully completed.
How to check job status
SQL> select job_name, enabled from DBA_SCHEDULER_JOBS WHERE job_name = ‘GATHER_STATS_JOB’;
JOB_NAME ENABL
————————- —–
GATHER_STATS_JOB FALSE
How to Enable jobs
SQL> exec dbms_scheduler.enable(‘GATHER_STATS_JOB’);
PL/SQL procedure successfully completed.
How to check job status
SQL> select job_name, enabled from DBA_SCHEDULER_JOBS WHERE job_name = 'GATHER_STATS_JOB’;
JOB_NAME ENABL
————————- —–
GATHER_STATS_JOB TRUE
No comments:
Post a Comment