Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: dbms_job question
Ryan Gaffuri wrote:
>
> Is it possible to have a job run every 15 minutes between 7PM and 7AM
> every day accept sundays?
dbms_job.submit(j,
'begin
if to_char(sysdate+5/24,''hh24'') between ''00'' and ''12''
and to_char(sysdate,''day'') != ''sunday'' then my_proc;
or thereabouts. You can always of course put the if-checking inside the proc itself
hth
connor
Received on Thu Oct 23 2003 - 08:28:12 CDT