Use schedule to manage Scheduling in oracle scheduling, oracleschedule
Before you begin, you should first say that dbms_job should be disabled for all applications as DBAs.
Dbms_scheduler is very complex. oracle has spent many chapters in the two books. The two books are:
If you want to learn more about scheduling, read the second book in detail and then read the relevant chapters in the first book.
In the cloud era, resource management becomes very important, while dbms_scheduler can be closely integrated with oracle's own resource management.
A common problem for developers is how to schedule a job if the scheduling time of a job is not so regular.
To solve this problem, you can use dbms_scheduler.create_schedle to create a schedule object. The following is an example:
Begin partition (schedule_name => 'sch _ DAY_10_30 ', start_date => paiimestamp, repeat_interval => 'freq = DAILY; byhour = 10; byminute = 30 '); DBMS_SCHEDULER.create_schedule (schedule_name => 'sch _ DAY_20_10 ', start_date => descriimestamp, repeat_interval => 'freq = DAILY; byhour = 20; byminute = 10 '); values (job_name => 'my SCH test', repeat_interval => 'sch _ DAY_10_30, SCH_DAY_20_10 ', job_type => 'plsql _ Block', job_action => 'in in NULL; END; ', enabled => TRUE, auto_drop => FALSE, comments => null); end;
Scheduling has the following advantages: