An interval of
trunc(sysdate)+(trunc(to_char(sysdate,'sssss')/900)+1)*5/24/60

ought to give you every 5 minutes.  Courtesy of Tom...

On Thu, 2003-10-23 at 10:29, Gene Sais wrote:
> It's called cron :).  Or you could run a shell script that executes
> then sleeps for 5 mins.
> >>> [EMAIL PROTECTED] 10/23/03 10:09AM >>>
> im trying to submit a job that runs every 5 minuts. Only way I can get
> the submit to work is as follows...
> 
> variable jobno number;
> variable instno number;
> begin
>   select instance_number into :instno from v$instance;
>   dbms_job.submit(:jobno, 'statspack.snap;', trunc(sysdate+1/24,'HH'),
> 'trunc(SYSDATE+1/24,''HH'')', TRUE, :instno);
>   commit;
> end;
> 
> i then do:
> 
> dbms_job.interval(:jobno,'trunc(sysdate+1/96)';
> 
> commit;
> 
> my next_date column in dba_jobs is set to 15 minutes in the future,
> HOWEVER, it doesnt actually run. The time passes, the next_date does
> not get set again to nother 15 minutes in the future and the job
> doesnt run.
> 
> Ive read the manual. Read metalink. read asktom and Im obvious too
> stupid to figure this one out. 
> 
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> -- 
> Author: <[EMAIL PROTECTED]
>   INET: [EMAIL PROTECTED]
> 
> Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
> San Diego, California        -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).
Richard Quintin, DBA 
Information Systems & Computing, DBMS 
Virginia Tech 
-- 
"Magnificent promises are always to be suspected." -- Theodore Parker
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Quintin, Richard
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to