Job Scheduling on Last Sun, Tue and Thu of every month [message #425909] |
Tue, 13 October 2009 01:02 |
NewLife
Messages: 170 Registered: April 2008
|
Senior Member |
|
|
Hi,
I need to schedule a job to run on the Last Sunday, Last Tuesday and the Last Thursday of every month at 11:30AM.
I came up with the below block of code using dbms_scheduler, Is the below piece of code correct? Any suggestions are welcome.
begin
dbms_scheduler.create_job(
job_name => 'PRE_EOM_CHECK'
,job_type => 'STORED_PROCEDURE'
,job_action => 'ADM.P_JOB_TEST'
,start_date => to_timestamp('2009/10/25 11:30:00', 'YYYY/MM/DD HH24:MI:SS')
,repeat_interval => 'FREQ=MONTHLY; BYDAY=-1SUN, -1TUE, -1THU; BYHOUR=11; BYMINUTE=30
,enabled => TRUE
,comments => 'PRE-EOM Check');
end;
/
Thanks Guys
[Updated on: Tue, 13 October 2009 01:09] Report message to a moderator
|
|
|
|
|