Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Intermittently getting error ORA-02049: timeout: distributed transaction waiting for lock

ppratapwarJul 24 2019 — edited Jul 31 2019

We are Intermittently getting error 'ORA-02049: timeout: distributed transaction waiting for lock.

The application is just trying to do 2 transactions in the transaction scope for a parent and child tables.

Example - Table 1 is Parent Table AND Table 2 is Child Table

The application inserts the record in Table 1 and in the same transaction scope application tries to add the related record in the child table.

This is a really simple code. We tried this test when no one was accessing the database. Surprisingly, it is an intermittent issue.

Comments
Post Details
Added on Jul 24 2019
9 comments
1,392 views