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:Urgent: How to Automate Procedure Execution

Re:Urgent: How to Automate Procedure Execution

From: <dgoulet_at_vicr.com>
Date: Fri, 20 Apr 2001 14:28:13 -0700
Message-ID: <F001.002EE525.20010420142524@fatcity.com>

abdullatif

    Easiest way,

  1. add to the init.ora "job_queue_processes = 2", "job_queue_interval = 300". This will start two job running processes that will wake up every 5 minutes.
  2. shutdown & restart the DB
  3. Use this anonymous pl/sql block:

declare
  job number;
begin
  dbms_job.submit(job, 'jrunit;',trunc(sysdate+1)+20/24,

                  'trunc(sysdate+1)+20/24', FALSE);
end;
/

The job will run tomorrow morning at 10PM and every day thereafter at the same time. Also unlike using cron or at if the db is down when the job is suppose to run, it will run on db startup.

Dick Goulet

____________________Reply Separator____________________
Author: abdul latif <abdulatif52_at_yahoo.com>
Date:       4/20/2001 11:36 AM

Listers,

Can someone tell me how to automate procedure execution
from within Oracle.

I would like to execute this procedure at 10:00 p.m.

sqlplus> execute jrunit

Thank in advance.

abdullatif



Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: abdul latif
  INET: abdulatif52_at_yahoo.com
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author:
  INET: dgoulet_at_vicr.com
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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 Fri Apr 20 2001 - 16:28:13 CDT

Original text of this message

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