12c Database Upgrade fails at Post Upgrade step when gathering stats with Error:"ORA-01502"
(Doc ID 2199920.1)
Last updated on JANUARY 01, 2020
Applies to:Oracle Database - Enterprise Edition - Version 22.214.171.124 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.
The following error is occurred during 12c upgrade ,when post upgrade gathers stats:
ORA-00604: error occurred at recursive SQL level 1
ORA-01502: index 'SYS.I_WRI$_OPTSTAT_IND_OBJ#_ST' or partition of such index is
in unusable state
ORA-06512: at "SYS.DBMS_STATS", line 17079
ORA-06512: at line 125
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