Quote:
|
Originally Posted by Shizuma
* we use row_locking
|
Apparently, DB2 is using table space locking at some moment, in either one or in both applications.
Could be lock escalation, or a decision of the optimizer.
Check with EXPLAIN to see whether this is the case.
Possibly rewrite the queries to force the optimizer into a table, page or row lock.
Also make sure that the tablespace is a segmented TS and not a simple TS, since for the latter DB2 will typically always use tablespace locks.
Finally, a REORG of the tablespace (followed by RUNSTATS) could also do wonders ... (Don't forget to REBIND the apps afterwards.)