My Oracle Support Banner

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

Last updated on AUGUST 01, 2023

Applies to:

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


Inserts into CLOB column from a Weblogic 10.3.1 application using JDBC with an Oracle Database 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 database or when using varchar2(4000) instead of CLOB.


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.