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: Recompile invalid packages

Re: Recompile invalid packages

From: Joel Garry <joel-garry_at_home.com>
Date: 5 Nov 2003 13:43:02 -0800
Message-ID: <91884734.0311051343.576fd982@posting.google.com>


"nobody" <nobody_at_nowhere.com> wrote in message news:<s69qb.29421$152.5977_at_news01.bloor.is.net.cable.rogers.com>...
> rem change the spool path to whatever you want
>
>
> spool /opt/oracle/admin/adhoc/runthem.sql
> SELECT 'ALTER ' || OBJECT_TYPE || ' ' ||
> OWNER || '.' || OBJECT_NAME || ' COMPILE;'
> FROM DBA_OBJECTS
> WHERE STATUS = 'INVALID'
> /
>
> spool off;
>
> @/opt/oracle/admin/adhoc/runthem.sql
>
>
>
> P.S. Why am I unemployed ?

Because this doesn't cover all possible object compilations (think about one thing referencing another...)?

Because a modern dba would use a built-in sp?

Bonus consulting job: Demonstrate situation where built-in sp doesn't work.

Kyte-level: Demonstrate unpublished parameters to make it work.

Double-secret-probation-job: Prove Kyte wrong.

jg

--
@home.com is bogus.
http://images.amazon.com/images/P/B0000A02TZ.01.LZZZZZZZ.jpg
Received on Wed Nov 05 2003 - 15:43:02 CST

Original text of this message

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