Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: DBMS_JOB

Re: DBMS_JOB

From: Kjetil Nordstrand <spammers_at_get-lost.com>
Date: Mon, 26 Apr 1999 09:36:23 +0200
Message-ID: <372417cf@news.sto.telegate.se>


Hello A. Jensen
you're not supposed to include the BEGIN and END segment in your statement calling DBMS_JOB. That's for dynamic SQL only (or an interactive SQL Plus session).

Hilsen en nordmann i Sverige !

--
Kjetil Nordstrand
RKS Data AB, Karlstad, Sweden

  1. Jensen skrev i meddelandet ...
    >I have submitted and commited the following job (logged on as myself,
    having
    >DBA-role):
    > sys.dbms_job.submit(jobno, 'BEGIN SYS.DBMS_UTILITY.ANALYZE_SCHEMA(''L6'',
    >''COMPUTE''); END;', SYSDATE, 'TRUNC(SYSDATE+1)');
    >
    >The job is in the queue, but failes. Why?
    >I have tried to run it immediately, calling dbms_job.run. Result:
    >ORA-12011: Execution of 1 jobs failed.
    >ORA-06512: at "SYS.DBMS_IJOB", line 255
    >ORA-06512: at "SYS.DBMS_JOB", line 219
    >ORA-06512: at line 2
    >
    >When I run the script directly, it works OK
    >BEGIN
    > SYS.DBMS_UTILITY.ANALYZE_SCHEMA(''L6'', ''COMPUTE'');
    >END;
    >
    >What am I missing??
    >
    >Audun
    >
    >
Received on Mon Apr 26 1999 - 02:36:23 CDT

Original text of this message

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