Fetching CLOB From an XML Object Shows a NULL Character at the LOB Prefetch Boundary

(Doc ID 1547905.1)

Last updated on AUGUST 03, 2016

Applies to:

JDBC - Version and later
Information in this document applies to any platform.


JDBC programs that read an XMLType object from a table using the ResultSet.getString() method receive a NULL character at the 4000th byte.  This causes XML file corruption or truncation.

This behavior appears to manifest with the use of some character sets.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms