Rebuilding Sysaux Indexs Errors with 'ORA-01502: index 'SYS.I_OPT_FINDING_OBJ_ID_OBJ_TYPE'
(Doc ID 2448188.1)
Last updated on JULY 20, 2024
Applies to:
Oracle Database - Enterprise Edition - Version 12.1.0.2 and laterInformation in this document applies to any platform.
Symptoms
- On PDB database after purging the old stats from sysaux tablespace. Moved the relevant tables and rebuild its indexes to reclaim space in sysaux tablespace, following are the unusable indexes:
SQL> select index_name,TABLE_NAME,INDEX_TYPE from all_indexes where status ='UNUSABLE';
INDEX_NAME TABLE_NAME INDEX_TYPE
------------------------------ ------------------------------ ---------------------------
I_OPT_FINDING_OBJ_ID_OBJ_TYPE OPT_FINDING_OBJ$ NORMAL
I_WRI$_OPTSTAT_TAB_OBJ#_ST WRI$_OPTSTAT_TAB_HISTORY FUNCTION-BASED NORMAL
I_WRI$_OPTSTAT_TAB_ST WRI$_OPTSTAT_TAB_HISTORY FUNCTION-BASED NORMAL -
Rebuild of above indexes failed with below error:
SQL> alter index I_WRI$_OPTSTAT_IND_OBJ#_ST REBUILD TABLESPACE SYSAUX;
Index altered.
SQL> alter index I_WRI$_OPTSTAT_IND_ST REBUILD TABLESPACE SYSAUX;
Index altered.
SQL> alter index I_OPT_FINDING_OBJ_ID_OBJ_TYPE REBUILD TABLESPACE SYSAUX;
alter index I_OPT_FINDING_OBJ_ID_OBJ_TYPE REBUILD TABLESPACE SYSAUX
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-01502: index 'SYS.I_OPT_FINDING_OBJ_ID_OBJ_TYPE' or partition of such index is in unusable state -
Executing utlrp also fails with error:
BEGIN dbms_registry_sys.validate_components; END;
*
ERROR at line 1:
ORA-01502: index 'SYS.I_OPT_FINDING_OBJ_ID_OBJ_TYPE' or partition of such index is in unusable state
ORA-06512: at "SYS.DBMS_REGISTRY_SYS", line 564
ORA-06512: at line 1
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |