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

Re: DBMS_JOB

From: Igor Neyman <ineyman_at_perceptron.com>
Date: Tue, 21 Nov 2000 14:42:16 -0500
Message-Id: <10687.122654@fatcity.com>


The 'what' parameter when calling dbms_job.submit should be PL/SQL block:

declare

    jobno number;
 begin

    dbms_job.submit(jobno,'begin SP_MANUAL_REPLICATION; commit; end;', sysdate,'sysdate+1', TRUE);

    commit;
 end;

Igor Neyman, OCP DBA
Perceptron, Inc.
(734)414-4627
ineyman_at_perceptron.com

> Hi all
>
> I need to schedule a procedure using dbms_job.
>
> I created it using the following script.
>
> declare
> jobno number;
> begin
> dbms_job.submit(jobno,'SP_MANUAL_REPLICATION;', sysdate,'sysdate+1');
> commit;
> end;
>
>
> For some reason it not running at all.
>
> Any thoughts?
>
> TIA
>
> Raj
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Raj Gopalan
> INET: raj.gopalan_at_netdecisions.co.uk
>
> 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 Tue Nov 21 2000 - 13:42:16 CST

Original text of this message

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