I want to only run the job once, 5 business working days after 15th of a month.
e.g. if 15th falls on a Wednesday then run the job following Wednesday (skip Thurs, Fri, Sat, Sun, Mon, Tues) - 5 working days after.
I want to only run the job once, 5 business working days after 15th of a month.
e.g. if 15th falls on a Wednesday then run the job following Wednesday (skip Thurs, Fri, Sat, Sun, Mon, Tues) - 5 working days after.
Assume you want to run a procedure called prc_myaction
, then consider using
begin
dbms_scheduler.create_job (
job_name => 'job_myaction',
job_type => 'STORED_PROCEDURE',
job_action => 'prc_myaction',
start_date => systimestamp at time zone 'Europe/Istanbul',
repeat_interval => 'freq=monthly; byday=MON,TUE,WED,THU,FRI; bymonthday=15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31;',
enabled => true);
end;
where the days beyond the scope are ignored such as the 31st day for the month April.