Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

ORA-07427: spstp: cannot change directory to dbs.

1 Answers  


NNL-00963: Timeouts, name TTL expired: number

1 Answers  


PCC-02329: found reference to undeclared function

1 Answers  


ORA-16794: Database Guard is ON for primary database

1 Answers  


QSM-00767: a SQL cache is not available to user string

1 Answers  






ORA-25957: join index where clause cannot contain cycles

1 Answers  


TNS-01190: The user is not authorized to execute the requested listener command

1 Answers  


ORA-09363: Windows 3.1 Two-Task driver invalid context area

1 Answers  


QSM-01051: no support for rollup when a window function is present on the column

1 Answers  


NID-00504: LOGFILE Output Log (NONE)

1 Answers  


ORA-09700: sclin: maximum number of latches exceeded

1 Answers  


TNS-00121: Missing CMANAGER_NAME in INTCHG.ORA

1 Answers  






Categories