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 |
QSM-02044: ORDER BY clause in mv
CLSS-03000: reconfiguration successful, incarnation string with string nodes
ORA-29394: session id string and serial# string do not exist
ORA-02195: Attempt to create string object in a string tablespace
ORA-09779: snyGetPort: failure to allocate a port.
ORA-16526: unable to allocate task element
TNS-12519: TNS:no appropriate service handler found
ORA-19812: cannot use string without DB_RECOVERY_FILE_DEST
ORA-29914: ODCIGETINTERFACES routine does not return required stream version
ORA-16774: Error in stopping the physical apply service (MRP process)
PCB-00100: Unable to reopen temporary file string
ORA-39138: Insufficient privileges to load data not in your schema