Oracle Database / Operations & Incident Response
ORA-01502: locate the unusable index or partition
A failed DML operation can name an unusable index component after maintenance. Inspect both overall and partition-level state.
Environment and inputs: Oracle Database 19c baseline · SQL*Plus-compatible SQL unless RMAN, DGMGRL, ADRCI or a host shell is specified. Check release, patch level, edition and container first.
Start with this diagnostic
Run each example in the tool named in the guide: SQL, RMAN, DGMGRL or the host command shell. Replace example names with approved values. To query DBA and V$ views, use authorized catalog access in the correct database container. Do not add broad permissions just to run an example.
SELECT owner, index_name, status, partitioned FROM dba_indexes WHERE owner = 'APP_OWNER' AND index_name = 'APP_ORDERS_IX';
SELECT partition_name, status FROM dba_ind_partitions WHERE index_owner = 'APP_OWNER' AND index_name = 'APP_ORDERS_IX';
What the results mean
A partitioned index may need partition or subpartition inspection even if the overall status is not directly actionable.
Fix the cause and check again
Identify the maintenance that invalidated the component and plan a supported targeted repair. Verify constraints and DML after the repair.
Before you make a change
Do not rebuild every index or skip unusable indexes without considering constraint enforcement and workload impact.