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-09843: soacon: Archmon unable to create named pipe.
NNL-00020: warning: no TNSNAMES.ORA file and no preferred name servers in SQLNET.ORA
ORA-24273: translation text is required if translation type is T or S
ORA-31623: a job is not attached to this session via the specified handle
NNL-01053: Request processing enabled: string
ORA-30741: WITH HIERARCHY OPTION can be specified only for SELECT privilege
ORA-27468: "string.string" is locked by another process
NNL-00045: No host given for LDAP server
ORA-07623: smscre: $CRMPSC failure
ORA-12639: Authentication service negotiation failed
ORA-31472: Importing Change Data Capture version string.string is too new
IMG-00850: image structure free failed