Example: How to Recompile all Invalid Database Objects (SCR 209)
(Doc ID 125780.1)
Last updated on FEBRUARY 03, 2022
Applies to:Oracle Database - Enterprise Edition - Version 10.1.0.2 and later
PL/SQL - Version 10.1.0.2 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.
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!