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-28544: connect to agent failed, probable Net8 administration error

1 Answers  


NNL-01032: Minimum TTL: string

1 Answers  


ORA-28502: internal communication error on heterogeneous database link

1 Answers   Caterpillar,


ORA-01614: instance string (thread string) is busy - cannot enable

1 Answers  


ORA-30205: invalid Character set

1 Answers  






ORA-16740: log transport service for standby "string" incorrectly set to ALTERNATE.

1 Answers  


ORA-09810: Unable to get process ID from connection

1 Answers  


ORA-01898: too many precision specifiers

1 Answers  


ORA-00217: controlfile could not be resized for migration from 9.0.1

1 Answers  


ORA-27146: post/wait initialization failed

1 Answers  


ORA-16038: log string sequence# string cannot be archived

4 Answers  


ORA-13199: %s

1 Answers  


Categories