GATHER_STATS_JOB fails with ORA-20000: index "SYS"."WRH$_SEG_STAT_PK" or Partition of Such Index is in Unusable State (Doc ID 1494640.1)

Last updated on DECEMBER 06, 2016

Applies to:

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

Symptoms

GATHER_STATS_JOB fails every day with next error:

ORA-20000: index "SYS"."WRH$_SEG_STAT_PK" or partition of such index is in unusable state

To rebuild the index change the state of the index but next day it fails again with same error.

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