Create oracle scheduler job

倾然丶 夕夏残阳落幕 提交于 2021-02-04 08:34:28

问题


Is there any way to create oracle scheduler job that works (begin and end of some procedure) every day, five times a day at 8,10,12,14,16?


回答1:


Use this interval definition:

'freq=daily;byhour=8,10,12,14,16;byminute=0'

So the full code to create the job would be something like:

DBMS_SCHEDULER.create_job(
        job_name => 'the_job',
        job_type => 'STORED_PROCEDURE',
        job_action => 'YOUR_PROCEDURE',
        repeat_interval => 'freq=daily;byhour=8,10,12,14,16;byminute=0',
        enabled => TRUE);


来源:https://stackoverflow.com/questions/37019719/create-oracle-scheduler-job

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!