Oracle JOB creation, scheduled task execution

Source: Internet
Author: User
Oracle JOB creation, scheduled task execution
CNET China-PChome. net Type: Reproduced by: Unknown Source: China IT lab Editor: beiliang time:
Begin
Sys. dbms_job.submit (job =>: job,
What => 'check _ err ;',
Next_date => trunc (sysdate) plus 23/24,
Interval => 'trunc (next_day (sysdate, ''friday'') + 1000 ');
CoMMit;
End;
Here: job is a process automatically generated by the system, and check_err is one of my processes. next_date sets the next execution time, which is this evening. interval sets the interval and the execution time, this is on Friday every week. The function next_day returns the date containing the specified character. The trunc function removes the time in the date, that is, the of a day, the time is in the unit of days. Therefore, if you want to score a certain point, you need the score:
1/24 hour;
1/1440 points;
1/3600 seconds;
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.