I have a DB2 8.1 box on Windows XP on which I noticed some performance
problems. In this cases I see messages like this in the XP event log:
2005-05-11-07.43.54.437000 Instance:DB2 Node:000
PID:1960(db2syscs.exe) TID:4000 Appid:C0A80A9F.G441.0103CA46CA41
data management sqldEscalateLocks Probe:2 Database:JMFPROD
Locks: 1255
Target: 627
There are two java applications running queries and updates against this DB,
using the type 4 JDBC driver.
My questions are:
1) Locks on tables are raised only by insert/update/delete statements or
even by select ones?
2) How can I decrease the number of locks generated by my applications?
Would it be usefull to set the transaction isolation to
TRANSACTION_READ_UNCOMMITTED (Uncommitted read)?
3) Since I use autocommit on my connection, when are locks released?
Any other suggestions to solve my problem?
Thanks a lot.
Bye
Franco