XMLCDATA SQL Function Fails with ORA-22835 for Strings > 4000 CHAR
(Doc ID 1512017.1)
Last updated on FEBRUARY 03, 2019
Applies to:Oracle Server - Enterprise Edition - Version 184.108.40.206 to 10.2.0.5.0 [Release 9.2 to 10.2]
Information in this document applies to any platform.
XMLCDATA SQL Function Fails with ORA-22835 for Strings > 4000 CHAR.
mycdata := lpad('X', 4000, 'X') || lpad('X', 4000, 'X');
select xmlcdata(mycdata) into asxml from dual;
ERROR at line 1:
ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 8000, maximum: 4000)
ORA-6512: at line 6
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