PLS-00225: subprogram or cursor 'string' reference is out of
scope



PLS-00225: subprogram or cursor 'string' reference is out of scope..

Answer / guest

Cause: The prefix in a qualified name was a subprogram or
cursor which was not in an enclosing scope; i.e., a
subprogram or cursor name is being used as a scope qualifier
for a reference to an entity (within that subprogram or
cursor) that is not in scope. Example: declare x number;
type t1 is record (a number); function f return t1 is a
number; begin x := f.a; -- legal use of function "f" as a
scope qualifier; -- resolves to local variable "a" in
function "f". x := f().a; -- legal reference to component
"a" of returned record end; begin x := f.a; -- illegal use
of function "f" as a scope qualifier x := f().a; -- legal
reference to component "a" of returned record end;

Action: a) if the intention was to refer to a local variable
of a non-enclosing function, this is not allowed; remove the
reference b) if this is a parameterless function, and the
the intention was to access a field of the result of a call
to this function, then use empty parentheses in the call.

Please add more information about this Error

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Oracle Errors Interview Questions

QSM-00753: the specified value string is out of the acceptable range of string to string for parameter string

1 Answers  


ORA-25116: invalid block number specified in the DUMP DATAFILE/TEMPFILE command

1 Answers  


ORA-02823: Buffer is not aligned.

1 Answers  


ORA-25287: Invalid value string, string should be non-negative

1 Answers  


ORA-02760: Client close of file failed.

1 Answers  






ORA-14642: Bitmap index mismatch for tables in ALTER TABLE EXCHANGE PARTITION

1 Answers  


ORA-13528: name (string) is already used by an existing baseline

1 Answers  


ORA-07848: sllfrb: $GET failure

1 Answers  


ORA-30356: the specified refresh method is not supported in this context

1 Answers  


ORA-32054: lost communication with FMPUTL process

1 Answers  


ORA-24079: invalid name string, names with AQ$_ prefix are not valid for string

1 Answers  


ORA-12500: TNS:listener failed to start a dedicated server process

1 Answers  


Categories