Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: how to call a stored procedure from an oracle job ?
"freak" <blx999_at_gmx.de> a écrit dans le message de
news:d0913092.0409080807.3f8f049_at_posting.google.com...
> HI
>
> What i am trying to do is to call a stored procedure 'proc' defined
> for user 'user1' from an oracle job every midnight at 12.
>
> the sql snipp
>
> BEGIN
> DBMS_JOB.SUBMIT
> (job => 1
> ,what => user1.proc
> ,next_date => 'TRUNC(SYSDATE + 1)'
> ,interval => 'TRUNC(SYSDATE + 1)'
> );
> END;
>
> only says:
> ,what => user1.proc
>
> FEHLER in Zeile 4:
> ORA-06550: Zeile 4, Spalte 21:
> PLS-00222: In diesem Geltungsbereich ist keine Funktion mit dem Namen
> 'proc' vorhanden
> ORA-06550: Zeile 2, Spalte 1:
> PL/SQL: Statement ignored
>
> could anyone let me know how i can call a simple stored procedure from
> a job, please ?
>
> thanx in advance !
Type of "what" is varchar2 => add '
Type of "next_date" is date => remove '
BEGIN
DBMS_JOB.SUBMIT
(job => 1
,what => 'user1.proc;' ,next_date => TRUNC(SYSDATE + 1) ,interval => 'TRUNC(SYSDATE + 1)'
-- Regards Michel CadotReceived on Wed Sep 08 2004 - 11:23:09 CDT
![]() |
![]() |