denrepo

OracleObjects & schema

Invalid objects

Every invalid object by owner and type, typically left behind by a deployment or patch. The recompile script fixes most of them.

Tested on 12c, 19c · verified Sep 2026

b-ora-invalid.sql
1CLEAR COLUMNS2SET LINESIZE 150 PAGESIZE 200 TRIMOUT ON TAB OFF3COLUMN owner FORMAT A204COLUMN object_type FORMAT A205COLUMN object_name FORMAT A306SELECT owner,7       object_type,8       object_name,9       status10FROM   dba_objects11WHERE  status = 'INVALID'12ORDER BY owner, object_type, object_name;

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

Open in denrepo

Helps with

Part of these runbooks

More Oracle scripts: Objects & schema