SQLCODE - 911 Resolution Tips
SQLCODE - 911 Resolution Tips
DSNT408I SQLCODE = -911, ERROR: THE CURRENT UNIT OF WORK HAS BEEN ROLLED BACK
DUE TO DEADLOCK OR TIMEOUT. REASON 00C9008E, TYPE OF RESOURCE 00000304, AND RESOURCE NAME TD
GF6160.TDGF10 .X'000082' '.X'01' DSNT418I SQLSTATE = 40001 SQLSTATE RETURN CODE 00C9008E
Sometimes all that is needed to determine who has the lock is a display command of the space that held the lock. If the
application developer has that authority, they can issue the command:
The results show that user CSBI has the resource locked for exclusive use:
This time the developer is lucky. He can find the user who has the resource. Often, by the time he is locked out, the user
who had the resource no longer has it. In fact, sometimes it can be another user or job that has the resource locked by the
time the display command is issued.
SoftBase’s DeadLock Advisor eliminates the legwork by revealing the offender and the victim of SQLCODE -911 by placing a
message in each respective joblog. See: https://www.softbase.com/pdf/datasheets/Db2_Deadlock_Advisor.pdf
In conclusion, Db2 deadlocks and timeouts require investigation from both the cause and the victim perspective. Any
changes that are made should be closely monitored to insure the contention is resolved and no other complications are
introduced.