If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How to use db2 table from multiple program at a same time

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-27-09, 04:39
pradyutonnet pradyutonnet is offline
Registered User
 
Join Date: Feb 2009
Posts: 2
How to use db2 table from multiple program at a same time

My Db2 table is accessed and updated from a large number of programs daily and because of that table got deadlocks on a daily basis. Can any one explain me how can I resolve this issue, what are the possible solution to prevent it from deadlock and also in order to improve access time of table.
Reply With Quote
  #2 (permalink)  
Old 02-27-09, 04:44
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
deadlocks are caused by bad programming
avoid deadlocks by use of regular commit or select for update to acquire higher lock level
maybe row locking of tablespace could help for this specific ts
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 02-27-09, 05:10
pradyutonnet pradyutonnet is offline
Registered User
 
Join Date: Feb 2009
Posts: 2
Practical Scenario

Actually the above DB2 table was defined long year back and then release by release new programs used the same table for there processing and this is becoming further exacerbated with new releases putting even greater pressure on this table. Do we have possible solution to prevent it from deadlock and also in order to improve access time of table.
Reply With Quote
  #4 (permalink)  
Old 02-27-09, 08:24
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
I'd first check if there are any lock escalations reported and what the locktimeout db cfg is set to. Then, go to deadlock event monitor (
db2detaildeadlock is created by default for every db).
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On