Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> A strange behavior of a constant defined in a package

A strange behavior of a constant defined in a package

From: C Chang <cschang_at_maxinter.net>
Date: Wed, 13 Nov 2002 19:38:45 -0500
Message-ID: <3DD2F095.1E81@maxinter.net>


I am running a 8.1.6 on NT 4 system. I have developed a utility package that provides some common constants , functions and procedures for my rest of application. Today I have experienced a strange condition related to one of the constant defined in the utility package. When one of my procedures from other package failed, the error message pointed to this one particular constant of the utility package. So I went to check the validity of the whole utility package under the Oracle DBA studio and found nothing is invalid. I also use the query to check all the objects under the whole DB schema, nothing wrong either. Next I checked the constant under the package spec, making sure it is there by DBA studio. It's there! Then I re-run the procedure, the error was still generated. So I went back to recompile the whole utility package and all other packages which become invalid because of the recompilation of the utility. Now when I retried the procedure, the problem is gone. My question is ( from the experience) , how to validate any constants inside the schema? Because there is no indicator as other objects of schema ( package, procedures, functions, triggers…) from the DB management. My problem was fixed totally based on to my guess, which is not very good practices. Hope someone have a better suggestion. Thanks.

C Chang Received on Wed Nov 13 2002 - 18:38:45 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US