Recompile invalid objects

From dbawiki
Revision as of 19:34, 6 December 2011 by 127.0.0.1 (talk) (Created page with "==Recompile invalid objects== *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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Recompile invalid objects

  • 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();