ORA-01461 With MERGE INTO Statement And Clob Column (Doc ID 1620109.1)

Last updated on AUGUST 03, 2016

Applies to:

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

Symptoms

JDBC 11.2.0.3 and 12.1.0.1

ORA-1461 error occurs when executing merge statements with a NCLOB column as a target and a bind variable value which is longer than 4000 bytes:

 
Only if String length > 4000 bytes.

If instead of MERGE a separate statement is used for INSERT or UPDATE (based on situation) then the error is not reported.

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