Recompile invalid objects

From dbawiki
Revision as of 19:40, 6 December 2011 by 127.0.0.1 (talk) (Recompile invalid objects)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • Connect to an Oracle database as user sys
  • Check to see how many objects are invalid:
select count('e') from dba_objects where status='INVALID';

  • Recompile all invalid objects:
exec utl_recomp.recomp_serial();