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: mitchell <mitchell_at_comnet.ca>
Date: Mon, 17 Dec 2001 10:51:12 -0800
Message-ID: <F001.003DE2B6.20011217104355@fatcity.com>

Hi

I just created last week.

package:

set pagesize 1000;
set heading off;
select 'alter '||object_type||' '||owner||'.'||object_name||' compile;' from dba_objects
where status='INVALID'
and object_type <> 'PACKAGE BODY';

package body:

set pagesize 1000;
set heading off;
select 'alter package '||owner||'.'||object_name||' compile body;' from dba_objects
where status='INVALID'
and object_type ='PACKAGE BODY';

Mitchell

> 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
> rusnakga_at_hqlee.deca.mil
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Rusnak, George A.
> INET: rusnakga_at_hqlee.deca.mil
>
> 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).
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: mitchell
  INET: mitchell_at_comnet.ca

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 - 12:51:12 CST

Original text of this message

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