PLS-00492: variable or constant initialization may not refer
to functions declared in the same package



PLS-00492: variable or constant initialization may not refer to functions declared in the same pack..

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

Post New Answer

More Oracle Errors Interview Questions

ORA-09843: soacon: Archmon unable to create named pipe.

1 Answers  


NNL-00020: warning: no TNSNAMES.ORA file and no preferred name servers in SQLNET.ORA

1 Answers  


ORA-24273: translation text is required if translation type is T or S

1 Answers  


ORA-31623: a job is not attached to this session via the specified handle

1 Answers  


NNL-01053: Request processing enabled: string

1 Answers  






ORA-30741: WITH HIERARCHY OPTION can be specified only for SELECT privilege

1 Answers  


ORA-27468: "string.string" is locked by another process

1 Answers  


NNL-00045: No host given for LDAP server

1 Answers  


ORA-07623: smscre: $CRMPSC failure

1 Answers  


ORA-12639: Authentication service negotiation failed

1 Answers  


ORA-31472: Importing Change Data Capture version string.string is too new

1 Answers  


IMG-00850: image structure free failed

1 Answers  


Categories