Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Invalid views
Joe;
For those of us not on
8.1.7 ......
Besides .. I had no idea that
was there.
<FONT face=Tahoma
size=2>-----Original Message-----From: JOE TESTA
[mailto:JTESTA_at_longaberger.com]Sent: Thursday, June 14, 2001 10:55
AMTo: ORACLE-L_at_fatcity.com; kgel_at_ppoone.comSubject: RE:
Invalid views
Why not just use(8.1.7 thing)
$ORACLE_HOME/rdbms/admin/utlrp.sql
joe
>>> kgel_at_ppoone.com 06/14/01 11:47AM >>>Perfect
timing. I was putting togeter some recompile scripts for work.Here
is a modified one that can be used for views. With a few changes
itcan be used to recompile any invalid object.1. Create a
cursor on the Catalog Table ALL_OBJECTS where OBJECT_TYPE ='VIEW' and
STATUS = 'INVALID'.2. Step thru that Cursor and use the DBMS_SQL calls to
compile. create or replace Procedure Recompile_Views
Is Cursor cur_objects
Is Select owner , object_name From dba_objects Where object_type = 'VIEW' and status = 'INVALID'; current_cursor
Exception When Others Then
Lists--------------------------------------------------------------------ToREMOVE yourself from this mailing list, send an E-Mail messageto: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and inthe message BODY, include a line containing: UNSUB ORACLE-L(or the name of mailing list you want to be removed from). You mayalso send the HELP command for other information (like subscribing).--Please see the official ORACLE-L FAQ: <A
Lists--------------------------------------------------------------------ToREMOVE yourself from this mailing list, send an E-Mail messageto: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and inthe message BODY, include a line containing: UNSUB ORACLE-L(or the name of mailing list you want to be removed from). You mayalso send the HELP command for other information (like subscribing). Received on Thu Jun 14 2001 - 11:12:00 CDT
![]() |
![]() |