wood burning stoves 2.0*
The moose likes JDBC and the fly likes DB2 SQL error: SQLCODE: -911, SQLSTATE: 40001, SQLERRMC: 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DB2 SQL error: SQLCODE: -911, SQLSTATE: 40001, SQLERRMC: 2" Watch "DB2 SQL error: SQLCODE: -911, SQLSTATE: 40001, SQLERRMC: 2" New topic
Author

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

Raj Shan
Ranch Hand

Joined: Sep 04, 2006
Posts: 65
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

Joined: Dec 20, 2006
Posts: 2491
    
    8

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


OCUP UML fundamental and ITIL foundation
youtube channel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DB2 SQL error: SQLCODE: -911, SQLSTATE: 40001, SQLERRMC: 2
 
Similar Threads
DB2 SQL error: SQLCODE: -8002
Issue when migrating from Spring 2.5 to Spring 2.5.6 SEC 02 version
error clarification
DB issue (prepared statement)
Error Code