PLS-00492: variable or constant initialization may not refer
to functions declared in the same package
Answer / guest
Cause: If a package spec p declares a function f, that
function may not be used in any variable declarations in
that same package spec. This is because of a circular
instantiation problem: in order to fully instantiate the
package spec, the variable must be initialized. To
initialize the variable, the function body code in the
package body must be executed. That requires that the
package body be instantiated. However, the package body
cannot be instantiated until the package spec is fully
instantiated.
Action: Remove the reference to the function from the
variable initialization. A technique which often works is to
move the variable initialization from the variable
declaration (in the package spec) to the package body
initialization block.
Please add more information about this Error
| Is This Answer Correct ? | 0 Yes | 0 No |
ORA-02096: specified initialization parameter is not modifiable with this option
PLS-00126: selector ALL is not allowed
NZE-28820: Signature or decryption/encryption state is not provided.
PCC-02391: Runtime context variable not of correct type
ORA-21709: cannot refresh an object that has been modified
ORA-24326: handle passed in is already initialized
SQL-02118: Invalid row for a WHERE CURRENT OF operation
NNC-00428: invalid meta-data data item
ORA-38477: attribute set cannot be derived from an evolved type or a subtype.
ORA-02052: remote transaction failure at string
ORA-13829: SQL profile named string already exists
PCC-00027: Redeclared SQL Identifier "string" at line number in file string