PL/I · DB2 SQLCODE

SQLCODE -911: Unit of Work Rolled Back Due to Deadlock or Timeout

What does SQLCODE -911: Unit of Work Rolled Back Due to Deadlock or Timeout mean in PL/I?

The PL/I program's transaction was either chosen as the deadlock victim or it waited past the IRLM timeout threshold for a lock another unit of work held, and DB2 rolled back everything since the last COMMIT.

SQLCODE -911: Unit of Work Rolled Back Due to Deadlock or TimeoutDB2 for z/OS · PL/I (embedded SQL)

Condition

The PL/I program's transaction was either chosen as the deadlock victim or it waited past the IRLM timeout threshold for a lock another unit of work held, and DB2 rolled back everything since the last COMMIT.

Fix

Add more frequent COMMITs to shrink the program's lock footprint and exposure window, check SQLERRD(3) (00C90088 for deadlock, 00C9008E for timeout) to know which occurred, and consider adjusting isolation level or access order if timeouts recur under normal load.

Related db2 sqlcode