|
Re: Schedule to run job on the last date (monthly) [message #60292 is a reply to message #60286] |
Fri, 30 January 2004 12:05 |
billh
Messages: 35 Registered: August 1999
|
Member |
|
|
set the interval to
if your current run date is the last day of the month then next run date is "last_day(sysdate +1)"
if your current run date is not the last day of the month and you want the next run date to be the last day of next month then next run date is
"last_day(last_day(sysdate) +1)"
example:
SQL> select last_day(sysdate+1) from dual ;
LAST_DAY(
---------
31-JAN-04
SQL> select last_day(last_day(sysdate) + 1) from dual ;
LAST_DAY(
---------
29-FEB-04
|
|
|
|