ORA-06502 while Gathering Statistics for Table with Multibyte Column Name
(Doc ID 2536152.1)
Last updated on APRIL 17, 2023
Applies to:
Oracle Database - Standard Edition - Version 12.1.0.1 and laterOracle Database - Enterprise Edition - Version 12.1.0.1 and later
Information in this document applies to any platform.
Symptoms
NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.
- When a table is created with multibyte column name, gathering statistics for this table may fail with ORA-06502:
Example:
SQL> EXECUTE DBMS_STATS.GATHER_TABLE_STATS(OWNER => 'SCOTT', TABNAME => 'TEST', ESTIMATE_PERCENT => 10);
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error:
character string buffer too small
ORA-06512: at "SYS.DBMS_STATS", line 36873
ORA-06512: at "SYS.DBMS_STATS", line 36507
ORA-06512: at "SYS.DBMS_STATS", line 35428
ORA-06512: at "SYS.DBMS_STATS", line 33883
ORA-06512: at "SYS.DBMS_STATS", line 33773
ORA-06512: at "SYS.DBMS_STATS", line 35304
ORA-06512: at "SYS.DBMS_STATS", line 36230
ORA-06512: at "SYS.DBMS_STATS", line 36716
ORA-06512: at line 1
Changes
None
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 |
Changes |
Cause |
Solution |
References |