首页 > 代码库 > Oracle job启动与关闭

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‘;

Oracle job启动与关闭