12c Database Upgrade fails at Post Upgrade step when gathering stats with Error:"ORA-01502"

(Doc ID 2199920.1)

Last updated on NOVEMBER 03, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.1 and later
Information in this document applies to any platform.

Symptoms

The following error is occurred during 12c upgrade ,when post upgrade gathers stats:

 

ERROR at line 1:
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

 

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms