My Oracle Support Banner

Example: How to Recompile all Invalid Database Objects (SCR 209) (Doc ID 125780.1)

Last updated on AUGUST 04, 2018

Applies to:

PL/SQL - Version and later
Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.
***Checked for relevance on 8th Apr 2016***


  How to recompile all invalid database objects from DBA_OBJECTS.

NOTE: This SQL script selects all INVALID database objects from DBA_OBJECTS and attempts to compile them. It then selects all remaining INVALID database objects to see how many objects did not compile successfully.  Running the script multiple times may help compile any remaining invalid objects from previous runs.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.