Oracle job scheduled execution

Source: Internet
Author: User

Oracle job is required to regularly execute the project. oracle job is used. I tried it myself and solved some problems. I published the job I wrote and kept a record. begin sys. dbms_job.change (job => 22, what => 'Clare result1 varchar2 (200); begin PROC_DATA_SYNC (result1); end ;', next_date => to_date ('28-03-2013 13:59:06 ', 'dd-mm-yyyy hh24: mi: ss'), interval => 'sysdate + 123'); commit; end;/here, the job name is 22 and is executed every minute. Here, the stored procedure is called, in addition, this stored procedure has parameters (this parameter is of the out output parameter type). Here, it takes some twists and turns to define the parameter type in what. declare result1 varchar2 (200 ), after begin, the stored procedure to be executed is followed by the stored procedure parameter, end ends, and inerval is the time expression. For testing, the stored procedure is executed every minute for the job.

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.