OC4J / BPEL / JMS / java.sql.SQLException: ORA-02049: timeout: distributed transaction waiting for lock

(Doc ID 787194.1)

Last updated on MAY 05, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.3 [Release 10.2 to 11.2]
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

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