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

Home -> Community -> Usenet -> c.d.o.server -> Re: dbms_job question

Re: dbms_job question

From: Noel <tbal_at_go2.pl>
Date: Thu, 23 Oct 2003 15:04:40 +0100
Message-ID: <bn8jie$qnf$1@inews.gazeta.pl>

Uzytkownik "Ryan Gaffuri" <rgaffuri_at_cox.net> napisal w wiadomosci news:1efdad5b.0310230412.3b5b381f_at_posting.google.com...
> Is it possible to have a job run every 15 minutes between 7PM and 7AM
> every day accept sundays?

When job is run, the next run date is computed. You could use pl/sql function to compute next date.

function f_next_date(f_date DATE) RETURN DATE IS

BEGIN
 RETURN(f_date + 1/96);
END; Now, if you place that function as interval to job, your job will run every 15 minutes.
job_interval = f_next_date(sysdate);

All you need is modify that function, prevent it of returning a date which is Sunday :-)

--
Noel

How to set, modify job interval?
Take a close look at dmbs_job package.
Received on Thu Oct 23 2003 - 09:04:40 CDT

Original text of this message

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