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-28544: connect to agent failed, probable Net8 administration error
NNL-01032: Minimum TTL: string
ORA-28502: internal communication error on heterogeneous database link
ORA-01614: instance string (thread string) is busy - cannot enable
ORA-30205: invalid Character set
ORA-16740: log transport service for standby "string" incorrectly set to ALTERNATE.
ORA-09810: Unable to get process ID from connection
ORA-01898: too many precision specifiers
ORA-00217: controlfile could not be resized for migration from 9.0.1
ORA-27146: post/wait initialization failed
ORA-16038: log string sequence# string cannot be archived
ORA-13199: %s