Getting ORA-2049 While Inserting Into CLOB Column Using Oracle 11.2.0.3 JDBC Driver After Database Upgrade From 10.2.0.4 to 11.2.0.3 And Conversion of VARCHAR(4000) to CLOB Columns (Doc ID 1564702.1)

Last updated on SEPTEMBER 01, 2014

Applies to:

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

Symptoms

Inserts into CLOB column from a Weblogic 10.3.1 application using JDBC 11.2.0.3 with an Oracle Database 11.2.0.3 are very slow causing locking problem (blocking locks) and ultimately throwing error:

java.sql.SQLSyntaxErrorException: ORA-02049: timeout: distributed transaction waiting for lock...

Once it gets  slow, any insert into any table having a CLOB column is extremely slow. The slowness does not go away even if the application or the database is restarted.

The issue is not encountered on 10g 10.2.0.4 database or when using varchar2(4000) instead of CLOB.

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