My Oracle Support Banner

12c Database Upgrade fails at Post Upgrade step when gathering stats with Error:"ORA-01502" (Doc ID 2199920.1)

Last updated on FEBRUARY 13, 2023

Applies to:

Oracle Database - Enterprise Edition - Version 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:


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




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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.