ORA-12012 / PLS-00225: Subprogram Or Cursor 'XYZ' Reference Is Out Of Scope

(Doc ID 1504495.1)

Last updated on AUGUST 29, 2017

Applies to:

PL/SQL - Version to [Release 10.2 to 11.2]
Information in this document applies to any platform.


Database job fails (ORA-12012) because of PLS-00225

Example of a job:

job_type=>'PLSQL_BLOCK', job_action=>
'begin schemaname.proc; end;'
, number_of_arguments=>0,
start_date=> ...);


Example of error stack:

ORA-12012: error on auto execute of job "SCHEMANAME"."PROC"
ORA-06550: line 1, column 761:
PLS-00225: subprogram or cursor 'SCHEMANAME' reference is out of scope
ORA-06550: line 1, column 756:
PL/SQL: Statement ignored


 if the job worked previously and suddenly started failing, then a new object was created.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms