List Unusable Indexes for a Specified Schema
-- List unusable indexes for a specified schema. (All schemas if 'ALL' is specified.
SELECT owner,
FROM   dba_indexes
WHERE  owner = DECODE(UPPER('&&Owner'), 'ALL', owner, UPPER('&&Owner'))
AND    status NOT IN ('VALID', 'N/A')
ORDER BY owner, index_name

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License