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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Invalid Package under SYS

Re: Invalid Package under SYS

From: Juan Cachito Reyes Pacheco <jreyes_at_dazasoftware.com>
Date: Mon, 26 Apr 2004 17:44:37 -0400
Message-ID: <00e401c42bd7$b23f4370$2501a8c0@dazasoftware.com>


I suggest you try running again that script, maybe something need to be recompiled first.

Then I think you'll have to do manually

Run this query, this will show which are invalid, and then recompile one by one

If there is a compilation error, for example Oracle can't found a table, you will get that specific error.

select

decode( OBJECT_TYPE, 'PACKAGE BODY',

'alter package ' || OWNER||'.'||OBJECT_NAME || ' compile body;',

'alter ' || OBJECT_TYPE || ' ' || OWNER||'.'||OBJECT_NAME || ' compile;' )

from

dba_objects a

where

STATUS = 'INVALID' and

OBJECT_TYPE in ( 'PACKAGE BODY', 'PACKAGE', 'FUNCTION', 'PROCEDURE',
'TRIGGER', 'VIEW' )
order by

DECODE( OWNER,'DAZ',1,'ADM',2,3), OBJECT_TYPE, OBJECT_NAME; Juan Carlos Reyes Pacheco
OCP
Database 9.2 Standard Edition



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Mon Apr 26 2004 - 16:45:41 CDT

Original text of this message

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