Oracle job启动与关闭

--查看job下次执行时间以及间隔时间

select * from dba_jobs where job = '774';

--启动job

exec dbms_job.run(774);

 --停用job

EXEC DBMS_JOB.BROKEN(job#,TRUE); 

EXEC DBMS_JOB.BROKEN(774, TRUE); 

 

--查看当前用户下面有多少job执行

select job,what,failures,broken from user_jobs where job = '774' ;

--查看正在运行的job

select * from dba_jobs_running where job = '774';

posted on 2021-08-16 09:15  数据派  阅读(438)  评论(0编辑  收藏  举报