My Oracle Support Banner

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

Last updated on AUGUST 04, 2018

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

To view full details, 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 a vibrant support community of peers and Oracle experts.