Getting ORA-06502 When Running Gather_Table_Stats Even After Applying Patch 23751765
(Doc ID 2474000.1)
Last updated on MARCH 03, 2022
Applies to:
Oracle Database - Enterprise Edition - Version 12.1.0.2 and laterInformation in this document applies to any platform.
Symptoms
- When running the dbms_stats without METHOD_OPTS, getting the following:
SQL> exec dbms_stats.gather_table_stats(ownname =>'ABC', tabname =>'DEF');
BEGIN dbms_stats.gather_table_stats(ownname =>'ABC', tabname =>'DEF',ESTIMATE_PERCENT => 35); END;*
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at "SYS.DBMS_STATS", line 34634
ORA-06512: at line 1
- Works fine with METHOD_OPT=>'FOR ALL COLUMNS SIZE 1':
exec dbms_stats.gather_table_stats(ownname =>'ABC', tabname =>'DEF', METHOD_OPT=>'FOR ALL COLUMNS SIZE 1');
- Have already implemented the Patch for Bug 23751765
<Document 2262285.1> ORA-06502 Error Gathering Statistics on a Partitioned Table
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! |
In this Document
Symptoms |
Cause |
Solution |
References |