Oracle Tools Class-Create a script for creating a database existing job

Source: Internet
Author: User

Creating a Create script for an existing job in an Oracle database

  --generate a Create script for an existing job  Create or Replace procedureProc_generate_job_create_sql is  beginDbms_output. ENABLE (Buffer_size= NULL);--indicates that the output buffer is unrestrictedSys.dbms_output.put_line ('Declare'); Sys.dbms_output.put_line ('v_job number;'); Sys.dbms_output.put_line ('begin');  forJinch(SelectWhat, Interval fromuser_jobs) Loop Sys.dbms_output.put_line ('sys.dbms_job.submit (Job = V_job,'); Sys.dbms_output.put_line ('What =" " ||J.what|| " ",'); Sys.dbms_output.put_line ('next_date =' ||J.interval|| ','); Sys.dbms_output.put_line ('interval =" " ||J.interval|| ';" "); EndLoop; Sys.dbms_output.put_line ('commit;'); Sys.dbms_output.put_line ('end;'); End;

Resources

Ora-20000:oru-10027:buffer Overflow,limit of bytes.

Oracle Tools Class-Create a script for creating a database existing job

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.