关于Oracle中job定时器(通过create_job创建的)配置示例

时间:2021-11-04 04:10:48

begin
dbms_scheduler.create_job(job_name => JOB_BASIC_STATISTIC,
job_type => STORED_PROCEDURE,
job_action => PROC_BASIC_STATISTIC, --存储过程名
start_date => to_date(to_char(sysdate,yyyy-mm-dd)|| 19:32:00, yyyy-mm-dd hh24:mi:ss),
REPEAT_INTERVAL => freq=minutely;interval=1,
enabled => true,
end_date => to_date(to_char(sysdate,yyyy-mm-dd)|| 20:34:00, yyyy-mm-dd hh24:mi:ss),
comments => 执行定时统计数据);
commit;
end;