My Oracle Support Banner

ORA-01461 When Using DBMS_XMLSTORE.INSERTXML With A BLOB > 4000 Characters (Doc ID 2547740.1)

Last updated on NOVEMBER 06, 2020

Applies to:

Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.


On Oracle, when trying to insert data from XML file into a table with a BLOB column, using DBMS_XMLSTORE.INSERTXML,
- if the BLOB>4000 characters and error is returned:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00222: error received from SAX callback function
ORA-01461: can bind a LONG value only for insert into a LONG column
ORA-06512: at "SYS.DBMS_XMLSTORE", line 78

The problem does not occur on

There is no issue on any version with a CLOB column.


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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.