My Oracle Support Banner

Oracle Commerce Inventory Deadlocks Seen During Order Submission (Doc ID 1936339.1)

Last updated on NOVEMBER 23, 2019

Applies to:

Oracle Commerce Platform - Version 10.2 and later
Information in this document applies to any platform.


You have a custom InventoryManager implementation. You may see errors when concurrent users are performing order submission with carts containing the same SKUs.

java.sql.SQLSyntaxErrorException: ORA-02049: timeout: distributed transaction waiting for lock
  at oracle.jdbc.driver.T4CTTIoer.processError(
  at oracle.jdbc.driver.T4CTTIoer.processError(
  at oracle.jdbc.driver.T4C8Oall.processError(
  at oracle.jdbc.driver.T4CTTIfun.receive(
  at oracle.jdbc.driver.T4CTTIfun.doRPC(
  at oracle.jdbc.driver.T4C8Oall.doOALL(
  at oracle.jdbc.driver.T4CPreparedStatement.doOall8(
  at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(
  at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(
  at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(

Upon investigating in the database, you may see the blocking SQL statements like the following for the same SKU (catalog_ref_id):

UPDATE dcs_inventory SET inventory_lock = :1 WHERE catalog_ref_id = :2 AND location_id IS NULL


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.