My Oracle Support Banner

OC4J / BPEL / JMS / java.sql.SQLException: ORA-02049: timeout: distributed transaction waiting for lock (Doc ID 787194.1)

Last updated on FEBRUARY 21, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.3 [Release 10.2 to 11.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.



Symptoms

SOA - 10.1.3.3 ;  ESB / BPEL - 10.1.3.3.1 ; JMS

Application related BPEL activity is encountering errors :

ORA-02049: timeout: distributed transaction waiting for lock

These errors are reported on various AQ operations, e.g.,

dbms_aqin.aq$_jms_enqueue_text_message()

dbms_aqjms.aq$_add_subscriber()

 

Note : there are actually 2 parts to the solution of this issue : one is a code change which affects the Oracle server as detailed in this note ; the other is a parameter configuration change which is appropriate to the middle tier OC4J container. Please ensure that this change is also taken into consideration.

Cause

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
Symptoms
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.