How to Create a job with parameters. We can directly declare the parameters and assign values, and then pass them to the stored procedure called by the job. For example, the stored procedure named Pro_Test_JOB has one parameter, which is of the VARCHAR2 type. Create a JOB as follows: declarejobnumber; v_countnumber; beginSELECTCOUNT (*) distinct V _
How to Create a job with parameters. We can directly declare the parameters and assign values, and then pass them to the stored procedure called by the job. For example, the stored procedure named Pro_Test_JOB has one parameter, which is of the VARCHAR2 type. Create a JOB as follows: declare job number; v_count number; begin select count (*) INTO v _
How to Create a job with parameters.
We can directly declare the parameters and assign values, and then pass them to the stored procedure called by the job.
For example, the stored procedure named Pro_Test_JOB has one parameter, which is of the VARCHAR2 type.
Create a JOB as follows:
Declare job number; v_count number; begin select count (*) INTO v_count FROM user_jobs uj WHERE upper (uj. what) = UPPER ('descare para_data VARCHAR2 (100): = ''parameter''; begin Pro_Test_JOB (para_data); end; '); if v_count = 0 then sys. dbms_job.submit (job => job, what => 'destare para_data VARCHAR2 (100): = ''parameter''; begin Pro_Test_JOB (para_data); end; ', next_date => sysdate, interval => 'sysdate + 2/24 '); dbms_job.run (job); commit; end if; end;