• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DB2 SQL error: SQLCODE: -911, SQLSTATE: 40001, SQLERRMC: 2

 
Geetha Gubendran
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exceptioncom.ibm.db2.jcc.b.SqlException: DB2 SQL error: SQLCODE: -911, SQLSTATE: 40001, SQLERRMC: 2. I have a db2 database update statement in java compute node in message broker with which I am getting the above mentioned sql error (due to deadlock). This happened 2 days and I could see that this error is there in the message broker logs but the database logs do not contain any deadlock history. I know that by setting lock flags we can get rid of this issue, but then I want to know what exactly is causing this issue when we dont find any deadlock or timeout error in DB2 log?
 
Jan Cumps
Bartender
Posts: 2588
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are some pointers for deadlock troubleshooting in db2 using its deadlock event monitor, e.g.:

Finding the needle in the Deadlock haystack

Regards, Jan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic