Oracle 12 Driver GetString Returns An Incorrect Value For CLOBs Of Length 8000.

(Doc ID 2009595.1)

Last updated on MARCH 08, 2017

Applies to:

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

Symptoms

Oracle JDBC/thin 12.1 drivers  do not retrieve a CLOB value correctly when the size is exactly 8000 and the character set is a UTF-8 character set such as AL32UTF8.

Typically when the issue occurs you will find expected NULL characters inserted in the data.

Cause

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