Recompiling All Invalid Objects
To identify and recompile invalid objects on the CDB and PDBs, use the
catcon
utility to run utlrp.sql
after
you install, patch, or upgrade a database.
catcon.pl
utility to run utlrp.sql
on all containers in your
container database (CDB). The utlrp.sql
script recompiles
all invalid objects. Run the script immediately after installation, to ensure that users
do not encounter invalid objects.
Expect a time delay for the serial recompilation of PDBs to complete. Depending on the number of PDBs that you are upgrading, the recompilation can extend significantly beyond the time required for the upgrade scripts to complete.
The utlrp.sql
script automatically recompiles invalid objects in either serial or parallel recompilation, based on both the number of invalid objects, and on the number of CPUs available. CPUs are calculated using the number of CPUs (cpu_count) multiplied by the number of threads for each CPU (parallel_threads_per_cpu). On Oracle Real Application Clusters (Oracle RAC), this number is added across all Oracle RAC nodes.
For more information about catcon utility syntax and options, refer to Oracle Multitenant Administrator's Guide.
Related Topics
Parent topic: Recommended Postinstallation Tasks