Skip to Main Content

Database Software

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!

identifier 'DBMS_SCHEDULER' must be declared

891407Sep 29 2011 — edited Sep 30 2011
Hi Guys,
i am trying to create a job using dbms_schedular but it giving me following error.

BEGIN
dbms_scheduler.create_job (
job_name => 'test_job',
job_type => 'PLSQL_BLOCK',
job_action => 'begin a integer; b integer; sum(a,b); END;',
job_class => 'ADMIN',
start_date => SYSTIMESTAMP,
repeat_interval => 'freq=MINUTELY',
end_date => NULL,
enabled => TRUE,
comments => 'Job defined entirely by the CREATE JOB procedure.');
END;
/



ERROR at line 2:
ORA-06550: line 2, column 2:
PLS-00201: identifier 'DBMS_SCHEDULER' must be declared
ORA-06550: line 2, column 2:
PL/SQL: Statement ignored

NOTE: I have DBA grants .

Environment
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 on Linux

Can you guys please help where i am stuck or whats wrong with pl/sql block.
This post has been answered by mseberg on Sep 29 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 28 2011
Added on Sep 29 2011
8 comments
13,793 views