DBMS_STATS.GATHER_TABLE_STATS on partitioned tables gets ORA-00904

(Doc ID 1379591.1)

Last updated on SEPTEMBER 26, 2017

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 11.2]
Information in this document applies to any platform.


Running dbms_stats.gather_table_stats on a partitioned tables gives the following error:

SQL> exec

dbms_stats.gather_table_stats(user,'CDRDB','R20100430',granularity=>'SUBPARTITION'); END;

ERROR at line 1:
ORA-00904: "B_MSISDN": invalid identifier
ORA-06512: at "SYS.DBMS_STATS", line 20338
ORA-06512: at "SYS.DBMS_STATS", line 20361
ORA-06512: at line 1


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