Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Job schedule
The trunc in 'trunc(decode...) + 5/24' doesn't do this?
--Terry
(noting that Connor's suggestion is a bit easier to read in a job queue)
On Thu, 3 Feb 2005 08:19:06 -0800, Terry Sutton <terrysutton_at_usa.net> wrote:
> If you're using the dbms_job queue, your interval would be something like
> 'trunc(decode(to_char(sysdate,''DAY''), ''SATURDAY '', sysdate + 3,
> ''SUNDAY '', sysdate + 2, sysdate + 1)) + 5/24'
Don't forget to include a time component in the spec.
As stated the start time for this job will creep by the runtime of the job.
Include a time component to avoid that.
eg. trunc(sysdate) + 3 + (5/24 )
-- Jared Still Certifiable Oracle DBA and Part Time Perl Evangelist -- http://www.freelists.org/webpage/oracle-l -- http://www.freelists.org/webpage/oracle-lReceived on Fri Feb 04 2005 - 20:23:40 CST