Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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-06777: TLI Driver: error reading parms

1 Answers  


ORA-24460: Native Net Internal Error

1 Answers  


ORA-01558: out of transaction ID's in rollback segment string

1 Answers  


ORA-31029: Cannot bind to unsaved resource

1 Answers  


ORA-16513: maximum requests exceeded

1 Answers  


KUP-03004: absolute end (number) specified with relative start (number) for field string

1 Answers  


QSM-02084: DISTINCT clause on a duplicate sensitive aggregate function

1 Answers  


IMG-00540: contentFormat and interleave conflict

1 Answers  


ORA-26511: master table 'string.string' not found

1 Answers  


IMG-02004: 2FF04 - incorrect feature list specification

1 Answers  


ORA-30369: maximum number of columns is 32

1 Answers  


LSX-00122: value is not valid restriction of parent's whiteSpace

1 Answers  


Categories