denrepo

OracleObjects & schema

Recompile invalid objects

Recompile one schema, or everything in the database with Oracle's utlrp script. Run the invalid objects check again afterwards.

Changes data

Not yet verified. How scripts are tested

This script changes the database. Check the names and values before you run it.
ora-recompile.sql
1-- One schema2EXEC UTL_RECOMP.RECOMP_SERIAL('APP');3 4-- Or the whole database (as SYSDBA)5-- @?/rdbms/admin/utlrp.sql

Save it as ora-recompile.sql and run it with SQL> @ora-recompile.

Open in denrepo

More Oracle scripts: Objects & schema