SET VERIFY OFF LINESIZE 200
COLUMN owner FORMAT A30
COLUMN index_name FORMAT A30
COLUMN table_owner FORMAT A30
COLUMN table_name FORMAT A30
SELECT owner,
index_name,
index_type,
table_owner,
table_name
table_type
FROM dba_indexes
WHERE owner = DECODE(UPPER('&1'), 'ALL', owner, UPPER('&1'))
AND status NOT IN ('VALID', 'N/A')
ORDER BY owner, index_name;
↧
Script to know the unusable Indexes for specified Schema or all Schemas
↧