My Oracle Support Banner

Gather fixed table statistics fails with ORA-20000 ORA-06512 (Doc ID 2454793.1)

Last updated on NOVEMBER 04, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 10.1.0.2 to 12.2.0.1 [Release 10.1 to 12.2]
Information in this document applies to any platform.

Symptoms

 -bash-4.2$ sqlplus / as sysdba
SQL> exec dbms_stats.gather_table_stats('SYS','X$KGLCURSOR_CHILD_SQLID',no_invalidate=>false);
BEGIN dbms_stats.gather_table_stats('SYS','X$KGLCURSOR_CHILD_SQLID',no_invalidate=>false); END;

*
ERROR at line 1:
ORA-20000: Unable to analyze TABLE "SYS"."X$KGLCURSOR_CHILD_SQLID",
insufficient privileges or does not exist <<<<
ORA-06512: at "SYS.DBMS_STATS", line 24270 <<<<
ORA-06512: at "SYS.DBMS_STATS", line 24332
ORA-06512: at line 1

 

Changes

 

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
Changes
Cause
Solution


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