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 escalation?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-18-09, 11:26
dav1mo dav1mo is offline
Registered User
 
Join Date: Dec 2007
Location: Richmond, VA
Posts: 782
Lock escalation?

I typically support DB2 on Z/OS, but do provide some support on LUW. When defining a tablespace on Z/OS, I turn off lock escation using the LOCKMAX 0. Is there a similar parameter on a table on LUW? Been digging around but haven't found what I want yet. Reason for this is I do not want the size of the lock to escalate. If an app is locking that much data for an extended period of time then it should fail and proper commit logic should be added to ensure we are not locking other users/processes out of a table. Thanks for any help you can provide.
Dave Nance
Reply With Quote
  #2 (permalink)  
Old 11-18-09, 11:56
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I do not think that there is any such mechanism in DB2 for LUW.

Andy
Reply With Quote
  #3 (permalink)  
Old 11-18-09, 12:21
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You can discourage lock escalation in LUW by setting LOCKLIST to high value or automatic (if SELF_TUNING_MEM is on). Also increase MAXLOCKS to between 80 and 100 (percent).

Lock escalation usually occurs when there is no more memory for locks in the Locklist memory.
__________________
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
Reply

Tags
escalation, lock

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