Use schedule to manage Scheduling in oracle scheduling, oracleschedule

Source: Internet
Author: User

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:

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.