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

Last updated on MAY 23, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.1 to 11.1.0.6 [Release 9.2 to 11.1]
Information in this document applies to any platform.

Symptoms

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 

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