Thursday, July 29, 2010 22:17

Oracle Recompile Invalid Objects

Posted by ukoom on Tuesday, November 17, 2009, 23:15
This news item was posted in Oracle category and has 0 Comments so far.

Recompile the invalid objects:

SET NEWPAGE 0

SET SPACE 0

SET LINESIZE 80

SET PAGESIZE 0

SET ECHO OFF

SET FEEDBACK OFF

SET HEADING OFF

SET MARKUP HTML OFF

SET ESCAPE \

SPOOL RECOMPILE.SQL

select ‘ALTER VIEW ‘, object_name, ‘compile \;’ from user_objects where status = ‘INVALID’ and object_type=’VIEW’;

SPOOL OFF

Reference:

http://www.oracle-base.com/articles/misc/RecompilingInvalidSchemaObjects.php

Related Posts

Leave a Reply

You can leave a response, or trackback from your own site.