ORA-01008 processing when creating a job

Source: Internet
Author: User
Tags commit
Original works, allow reprint, reprint, please be sure to hyperlink form to indicate the original source of the article, author information and this statement. Otherwise, legal liability will be held. http://yunlongzheng.blog.51cto.com/788996/531985

Today, dizzy and heavy to create a job, with Plsql graphical interface did not succeed, the SQL statement did not work, and finally found that the job variable is not defined, leave a pit here ...
Sql> begin
2 Sys.dbms_job.submit (Job =>: Job,
3 What => ' proc_export_containers; ',
4 next_date => to_date (' 01-04-2011 00:00:00 ', ' dd-mm-yyyy hh24:mi:ss '),
5 interval => ' trunc (sysdate) +1+0/24 ');
6 commit;
7 End;
8/

Begin
Sys.dbms_job.submit (Job =>: Job,
What => ' proc_export_containers; ',
Next_date => to_date (' 01-04-2011 00:00:00 ', ' dd-mm-yyyy hh24:mi:ss '),
Interval => ' trunc (sysdate) +1+0/24 ');
Commit
End

Ora-01008:not All variables bound

sql> variable job number;
Sql>
Sql> begin
2 Sys.dbms_job.submit (Job =>: Job,
3 What => ' proc_export_containers; ',
4 next_date => to_date (' 01-04-2011 00:00:00 ', ' dd-mm-yyyy hh24:mi:ss '),
5 interval => ' trunc (sysdate) +1+0/24 ');
6 commit;
7 End;
8/

Pl/sql procedure successfully completed
Job
---------
181

This article is from the "Wheat Dock" blog, please be sure to keep this source http://yunlongzheng.blog.51cto.com/788996/531985

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.