ORACLE中job下次执行时间如何定义
2个回答
展开全部
作好调度设置:repeat_interval 指定执行周期,下面示例是每天00:30执行,结束日期无
SYS.DBMS_SCHEDULER.CREATE_JOB
(
job_name => 'POSBUF.JOB_SJCL'
,start_date => TO_TIMESTAMP_TZ('2010/10/14 20:10:43.630539 +08:00','yyyy/mm/dd hh24:mi:ss.ff tzh:tzm')
,repeat_interval => 'FREQ=DAILY;INTERVAL=1;BYHOUR=0;BYMINUTE=30;BYSECOND=0'
,end_date => NULL
,job_class => 'DEFAULT_JOB_CLASS'
,job_type => 'PLSQL_BLOCK'
,job_action => 'begin
(作业执行语句块)
end;'
SYS.DBMS_SCHEDULER.CREATE_JOB
(
job_name => 'POSBUF.JOB_SJCL'
,start_date => TO_TIMESTAMP_TZ('2010/10/14 20:10:43.630539 +08:00','yyyy/mm/dd hh24:mi:ss.ff tzh:tzm')
,repeat_interval => 'FREQ=DAILY;INTERVAL=1;BYHOUR=0;BYMINUTE=30;BYSECOND=0'
,end_date => NULL
,job_class => 'DEFAULT_JOB_CLASS'
,job_type => 'PLSQL_BLOCK'
,job_action => 'begin
(作业执行语句块)
end;'
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询