Link to home
Create AccountLog in
Avatar of GouthamAnand
GouthamAnand

asked on

DBMS_SCHEDULER.CREATE_JOB

Hi,

I have a procedure like pr_test which takes one number type argument.
I want to put this procedure in scheduler to run daily.
But when I create like this

BEGIN
   DBMS_SCHEDULER.CREATE_JOB (
      JOB_NAME          => 'scheld_test,
      JOB_TYPE          => 'STORED_PROCEDURE',
      JOB_ACTION        => 'pr_test (5)',--passing argument 5
      START_DATE        => SYSTIMESTAMP,
      REPEAT_INTERVAL   => 'freq=daily;byhour=1;',
      ENABLED           => FALSE,
      COMMENTS          => 'run daily once at 1 am ');
END;
/

Its  not taking the argument 1 and throwing the error as invalid object.
Can you please let me know how can I schedule the job?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of johnsone
johnsone
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of GouthamAnand
GouthamAnand

ASKER

Thank you very much.