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 > lock issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-17-11, 19:47
rajaraja_cholan rajaraja_cholan is offline
Registered User
 
Join Date: Dec 2008
Posts: 31
lock issue

Hi All,
I have lock issue in a non-prod environment (DB2 9.5 in AIX), the issue is that a core table (application's user authentication table) gets locked by a process and all other subsequent requests time out. This lock issue happens once in a while (once in 3 to 4 weeks). The same application code runs fine in all other environments.

Though I can see the tables, id involved in locking, I am not able to come up with explanation why the agent is not releasing the lock and why it is happening in only one environment. I have checked db2set/dbm cfg/db cfg values and identical to another env that is working fine.

Please throw some ideas what should I look for/what should I capture when next time this issue comes up. Appreciate any help on this.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 10-17-11, 22:05
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
How many rows in the table compared to other environments.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 10-18-11, 09:23
rajaraja_cholan rajaraja_cholan is offline
Registered User
 
Join Date: Dec 2008
Posts: 31
Table has less than 20 rows. Number of rows are same across all environment. It's a table that the application uses for initial connection/authentication. This table is one in the set of tables provided by application software vendor
Reply With Quote
  #4 (permalink)  
Old 10-18-11, 10:08
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Reply With Quote
  #5 (permalink)  
Old 10-18-11, 10:26
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
It might be best if DB2 used an index to access the rows, even though it is not necessary for performance reasons. Index access can reduce lock contention in cases where a table scan is always being done. To encourage index access (assuming the appropriate indexes have been created) alter the table to volatile.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #6 (permalink)  
Old 10-19-11, 02:29
Mathew_paul Mathew_paul is offline
Registered User
 
Join Date: Oct 2007
Posts: 200
we faced same locking issue, for table which was having type 1 index when we converted to type 2 the problem solved, is by any chance you db is been upgraded from older version to 9.5, coz in 8.0 and above the default is type 2 index. if its upgraded then u need to convert this index to type 2.

regds
Paul
Reply With Quote
  #7 (permalink)  
Old 10-20-11, 16:12
rajaraja_cholan rajaraja_cholan is offline
Registered User
 
Join Date: Dec 2008
Posts: 31
Thanks for all the tips, appreciate it.
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