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: Re: stupid dbms_job question

RE: Re: stupid dbms_job question

From: Cortese Joseph <joseph.cortese_at_siemens.com>
Date: Thu, 23 Oct 2003 09:49:25 -0800
Message-ID: <F001.005D41DD.20031023094925@fatcity.com>

Are you heading out to lunch

-----Original Message-----
Sent: Thursday, October 23, 2003 11:14 AM To: Multiple recipients of list ORACLE-L

id prefer to handle this in the database.
>
> From: "Gene Sais" <Gsais_at_co.palm-beach.fl.us>
> Date: 2003/10/23 Thu AM 10:29:33 EDT
> To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
> Subject: Re: stupid dbms_job question
>
> It's called cron :). Or you could run a shell script that executes then
> sleeps for 5 mins.
>
> >>> rgaffuri_at_cox.net 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: <rgaffuri_at_cox.net
> INET: rgaffuri_at_cox.net
>
> 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: ListGuru_at_fatcity.com (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).
>
>
>



This message and any included attachments are from Siemens Medical Solutions USA, Inc. and are intended only for the addressee(s). The information contained herein may include trade secrets or privileged or otherwise confidential information. Unauthorized review, forwarding, printing, copying, distributing, or using such information is strictly prohibited and may be unlawful. If you received this message in error, or have reason to believe you are not authorized to receive it, please promptly delete this message and notify the sender by e-mail with a copy to CSOffice_at_smed.com. Thank you
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Cortese Joseph
  INET: joseph.cortese_at_siemens.com

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: ListGuru_at_fatcity.com (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).
Received on Thu Oct 23 2003 - 12:49:25 CDT

Original text of this message

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