My Oracle Support Banner

ORA-1008 While Gathering Index Subpartition Statistics (Doc ID 602120.1)

Last updated on FEBRUARY 15, 2019

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 9.2 to 11.1]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.


When gathering statistics for a composite-partitioned index, either directly or by gathering statistics for the table using the option CASCADE=>TRUE, you may get the error ORA-1008 when the GRANULARITY is set to to a level which includes SUBPARTITION:

SQL> exec dbms_stats.gather_index_stats('T','I',granularity=>'SUBPARTITION',degree=>1)
ERROR at line 1:
ORA-01008: not all variables bound
ORA-06512: at "SYS.DBMS_STATS", line 10640
ORA-06512: at "SYS.DBMS_STATS", line 10664
ORA-06512: at line 1 


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

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