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: RECOMPILE INVALID OBJECTS

Re: RECOMPILE INVALID OBJECTS

From: Rachel Carmichael <wisernet100_at_yahoo.com>
Date: Mon, 17 Dec 2001 11:50:16 -0800
Message-ID: <F001.003DE3E4.20011217112525@fatcity.com>

 I use the following and take a look at the script revaldte.sql before I run it but you can certainly start it from the same SQL script

this is from SQL & PL/SQL Annotated Archives -- Loney and Carmichael

ttitle off
set pagesize 0 feedback off verify off heading off term off echo off spool revaldte.sql
select 'alter '||

         DECODE(Object_Type,'PACKAGE BODY','PACKAGE',Object_Type)||
         ' '||Owner ||'.'|| Object_Name ||' compile '||
         DECODE(Object_Type,'PACKAGE BODY','BODY',null)||';' 
  from DBA_OBJECTS
 where Object_Type in
        ('PROCEDURE','PACKAGE','FUNCTION','TRIGGER', 
              'VIEW','PACKAGE BODY') 

   and Owner = &owner
   and Status != 'VALID'
 order by Object_Type, Object_Name
/
spool off
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rachel Carmichael
  INET: wisernet100_at_yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Mon Dec 17 2001 - 13:50:16 CST

Original text of this message

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