Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XMLTYPE to CLOB is issue

Orcl ApexApr 5 2022

Hi All,
I have a SOAP API request returning the XMLTYPE variable. I have used - SELECT TO_CLOB(l_xmltype_variable) FROM DUAL to convert it to a CLOB for inserting into a logging table CLOB column.
Now the problem is that it suddenly stopped working with the below error -
ORA-19011: Character string buffer too small
ORA-06512:
Could anyone suggest if this is the correct way to convert XMLTYPE to CLOB or I should use some different method?

This post has been answered by Paulzip on Apr 8 2022
Jump to Answer
Comments
Post Details
Added on Apr 5 2022
6 comments
2,206 views