Why Index in Unusable State?

Oracle indexes can go into a UNUSABLE state after maintenance operation on the table or if the index is marked as 'unusable' with an ALTER INDEX command. A direct path load against a table or partition will also leave its indexes unusable.

Why does the unusable state have an index?

Indexes can become invalid or unusable whenever a DBA tasks shifts the ROWID values, thereby requiring an index rebuild. These DBA tasks that shift table ROWID's include: Table partition maintenance - Alter commands (move, split or truncate partition) will shift ROWID's, making the index invalid and unusable.

How do you fix unusable indexes?

To repair the index, it must be re-created with the ALTER INDEX… REBUILD command.
...
This can be avoided by using the ONLINE keyword.
  1. Create Table and insert row in it: —————————————- ...
  2. Check the Index Status. ...
  3. Move the Table and Check Status: ...
  4. Rebuild The Index:
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.