Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to create a job Scheduler

Srikkanth.MMar 15 2011 — edited Mar 15 2011
Hi All,

I have one procedure and i need to schedule that procedure to run daily at 10 Pm.

I have created a Job scheduler but i got error that identifier must be declare,

This is my code

begin
dbms_scheduler.create_job(
job_name => Test_schedule,
job_type =>'PL/SQL_BLOCK',
job_action =>'begin TEST_CLIENT_AGREEMENT; end;',
start_date =>SYSTIMESTAMP,
repeat_interval =>'freq=daily; byhour=0; byminute=0; bysecond=0;',
END_DATE => NULL,
ENABLED => TRUE,
COMMENTS => 'Refreshes Materialized Views on a Scheduled Basis (10:00 PM each day).');
END;

How to declare the job name.Whether i need to create a procedure and i need to pass any variable.



Thanks & Regards
Srikkanth.M
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 12 2011
Added on Mar 15 2011
2 comments
147 views