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....... what does that mean??

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-03-04, 14:32
tmullins tmullins is offline
Registered User
 
Join Date: Aug 2003
Posts: 68
Lock escalation....... what does that mean??

I often see this type of error in the db2adm.nfy file:



ADM5502W The escalation of "4203" locks on table
"DB2ADMIN.CASH_HAND_MINE" to lock intent "X" was successful.

ADM5500W DB2 is performing lock escalation. The total number of locks
currently held is "4295", and the target number of locks to hold is "2147".




What does this mean? Do I have locking issues?
Reply With Quote
  #2 (permalink)  
Old 09-03-04, 14:45
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
It means that you are experiencing escalation from row level locks to table level locks, usually because you are running short of storage for locks (locklist parm). You should probably increase your locklist parm, and maybe the maxlocks (the percent of the locklist that can used by any one application before escalation occurs).

If you don’t have contention (lock timeouts or deadlocks) keep in mind that lock escalation can sometimes be a good thing because DB2 will spend less time locking at the table level than having to lock each individual row.
__________________
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

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