DBMS_STATS.GATHER_TABLE_STATS on partitioned tables gets ORA-00904 (Doc ID 1379591.1)

Last updated on JUNE 30, 2014

Applies to:

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

Symptoms

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');

BEGIN
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

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