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!

scheule a job that runs on first day of every month

715251Aug 24 2009 — edited Aug 24 2009
Hi i want to schedul a job (run a procedure ) on first day of every month . I have done something lije this

declare
nextdate date;
begin
SELECT trunc(add_months(sysdate,1),'MM') into nextdate FROM DUAL ;
dbms_output.put_line(nextdate);
dbms_job.submit(
what=>'someprocedure',
next_date=>nextdate,
interval=>'30');

end;

is interval mandatory ? how can i define that interval ??
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 21 2009
Added on Aug 24 2009
11 comments
4,971 views