Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Create a JOB.

AlokKumarAug 12 2008 — edited Aug 14 2008
Hi All,

I need to create a job using dbms_job. My requirement would be to execute a JOB after 15 days and after that it runs evey week. Also, is it possible to execute a package insicdde a job below. data_utils is my package and truncate table is a procedure.

qlink_staging@CHRYSLER> declare
2 l_job number;
3 begin
4 dbms_job.submit( job => l_job,
5 what => 'data_utils.truncate_table(test_2);',
6 next_date => sysdate,
7 interval => 'sysdate+36/86400');
8 end;
9 /
declare
*
ERROR at line 1:
ORA-06550: line 1, column 119:
PLS-00357: Table,View Or Sequence reference 'TEST_2' not allowed in this context
ORA-06550: line 1, column 93:
PL/SQL: Statement ignored
ORA-06512: at "SYS.DBMS_JOB", line 79
ORA-06512: at "SYS.DBMS_JOB", line 136
ORA-06512: at line 4

Thanks
Alok

Message was edited by:
Alok Kumar
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 11 2008
Added on Aug 12 2008
3 comments
391 views