Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Job schedule

Re: Job schedule

From: Terry Sutton <terrysutton_at_usa.net>
Date: Fri, 4 Feb 2005 17:20:10 -0800
Message-ID: <01b001c50b20$f49f5970$6bf5a8c0@TerrySutton>


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-l
Received on Fri Feb 04 2005 - 20:23:40 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US