oracle find unusable indexes

Solutions on MaxInterview for oracle find unusable indexes by the best coders in the world

showing results for - "oracle find unusable indexes"
Arianna
02 May 2016
1SELECT OWNER, INDEX_NAME, NULL AS PARTITION_NAME, NULL AS SUBPARTITION_NAME, TABLESPACE_NAME
2FROM DBA_INDEXES
3WHERE STATUS = 'UNUSABLE'
4UNION ALL	-- Index partitions:
5SELECT INDEX_OWNER, INDEX_NAME, PARTITION_NAME, NULL AS SUBPARTITION_NAME, TABLESPACE_NAME
6FROM DBA_IND_PARTITIONS
7WHERE STATUS = 'UNUSABLE'
8UNION ALL	-- Index subpartitions:
9SELECT INDEX_OWNER, INDEX_NAME, PARTITION_NAME, SUBPARTITION_NAME, TABLESPACE_NAME
10FROM DBA_IND_SUBPARTITIONS
11WHERE STATUS = 'UNUSABLE';