The "What" parameter in DBMS_JOB.SUBMIT [message #201131] |
Thu, 02 November 2006 13:32 |
pmdorafaqs
Messages: 3 Registered: November 2006 Location: Multimax, Inc. Dayton Ohi...
|
Junior Member |
|
|
I am unable to submit a job (??) using dbms_job.submit.
I had written a program called:
my_program.sql
and it is located on the server in a directory folder called TEST PROGRAMS. The program executes fine. I then wrote another program in order to submit the job to the Oracle job queue via DBMS_JOB.SUBMIT.
When using DBMS_JOB.SUBMIT, I place the following for the "what" parameter:
'BEGIN my_program; END;'
The error I get (I'm using Oracle 9.2 and TOAD 8.6.1.0) is :
PLS-00201: identifier 'my_program' must be declared
Please help me understand why it is thinking that I have not declared it. I also do not understand the concept of "stored procedure" in relation to the "what" parameter. I've also tried using 'BEGIN my_program.sql; END;' But it really hiccups over the .sql !!!
Thanks!
Phil DelTurco
|
|
|
|
Re: The "What" parameter in DBMS_JOB.SUBMIT [message #201148 is a reply to message #201145] |
Thu, 02 November 2006 16:11 |
pmdorafaqs
Messages: 3 Registered: November 2006 Location: Multimax, Inc. Dayton Ohi...
|
Junior Member |
|
|
I think the problem is that my_program is not a procedure.... it's a program. In fact when I check the database, only the other procedures I compiled and executed are in the database schema. my_program is not. The only other thing I know to do is to convert the my_program program into a my_program procedure. That way it will have it's own name and can be placed in the schema under that name. Let me know if you agree or not.
Thanks!
Phil DelTurco
LOGTEC Contractor
System Engineer
Technical Support
|
|
|
|
|