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 <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]

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: [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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

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: [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