I have a stored procedure which is being called from a dbms job. i.e.
DBMS_SCHEDULER.RUN_JOB ('Procedure_JB', FALSE);
A java code stored procedure, which after doing some stuff, kicks off Procedure_JB asynchronously. And then this Procedure_JB calls Procedure_PRogram and then the program would call the stored procedure.
How can i pass arguments to my stored procedure?
- The arguments which i have to pass to the job are from java.
Define your job Procedure_JB to accept arguments. Then use dbms_scheduler.set_job_argument_value to define the value of the arguments you want to pass into the program your job is going to run. An example (taken from https://forums.oracle.com/forums/thread.jspa?threadID=483135)
Use PLSQL_BLOCK instead: