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
--- "Rusnak, George A." <[EMAIL PROTECTED]> wrote:
> Group,
> Does anyone have some SQL handy that will re-compile INVALID objects
> for a
> given user, that they would be willing to share??
>
>
> TIA
>
> Al Rusnak
> 804-734-8453
> [EMAIL PROTECTED]
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Rusnak, George A.
> INET: [EMAIL PROTECTED]
>
> 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: [EMAIL PROTECTED] (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).
__________________________________________________
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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).