Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: RECOMPILE INVALID OBJECTS
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
('PROCEDURE','PACKAGE','FUNCTION','TRIGGER', 'VIEW','PACKAGE BODY')
-- 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
![]() |
![]() |