Oracle Job Drafts

Source: Internet
Author: User

Sa

--declaring a jobDECLAREjob2014_12_16 Number;BEGINDbms_job. SUBMIT (Job2014_12_16,--This parameter is out type                  'syncv5;', To_date (To_char (sysdate+1,'MM/DD') ,'MM/DD'),                 'TRUNC (Last_day (sysdate) + 1)');--' sysdate + 1/(60*24*60) '); --' sysdate+1/1440 '  COMMIT; Dbms_output. Put_Line (JOB2014_12_16); --outputs the value of the JOB2014_12_16 variable that is assignedEND;/--View the job ID you just createdSelect *  fromSys.user_jobs--Run JobbeginDbms_job.run ( A); Commit; End; /--Stop JobbeginDbms_job.broken ( A, TRUE); Commit; End; /--Delete JobDECLAREBEGINDbms_job.remove ( the); COMMIT;End;/DECLAREJOB22 Number;BEGINSYS. Dbms_job. SUBMIT (JOB22,'proc5;',--job to perform (example of a stored procedure to execute)Sysdate,'TRUNC (sysdate+1)');--cycle of Job execution (daily 0 o'clock in the morning)Dbms_output. Put_Line (job22);END;/'sysdate + 30/(60*24*60)'SELECT COUNT(*) fromweb_monitor_table;

Oracle Job Drafts

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.