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

Home -> Community -> Usenet -> c.d.o.server -> Re: Recompiling invalid objects in PL/SQL

Re: Recompiling invalid objects in PL/SQL

From: DA Morgan <damorgan_at_psoug.org>
Date: Wed, 07 Dec 2005 10:06:14 -0800
Message-ID: <1133978753.100855@jetspin.drizzle.com>


Murtuja wrote:
> run this query
>
> /* Formatted on 2003/06/27 08:39 (Formatter Plus v4.5.2) */
> SELECT 'ALTER '
> || DECODE (object_type, 'PACKAGE BODY', 'PACKAGE', object_type)
> || ' '
> || object_name
> || DECODE (object_type, 'PACKAGE BODY', ' COMPILE BODY;', '
> COMPILE;') AS "Recompile Statement"
> FROM user_objects
> WHERE status = 'INVALID'
> AND object_type IN ('PROCEDURE',
> 'PACKAGE',
> 'PACKAGE BODY',
> 'FUNCTION',
> 'VIEW',
> 'TRIGGER',
> 'INDEX'
> );
>

Why reinvent the wheel?

And it wouldn't recompile TYPES or OPERATORS, etc.

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Wed Dec 07 2005 - 12:06:14 CST

Original text of this message

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