Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Invalid views
<FONT
size=1>
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: http://www.orafaq.com--Author:
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:23:35 CDT
![]() |
![]() |