473,651 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

lock escalation

i am using db2 v8.1 windows 64 bit with fp3, i check db2diag.log ,
there is message stating

ADM5502W The escalation of "1540" locks on table "xxx.xxx" to lock
intent "X" was successful.

what does that mean?

i do have a sensitive updatable cursor to try to create a record lock
every time i read a row, then update the row, should the update
execute will release the lock? why there is a escalation happened?
will this has bad effect? will this relate to error 805? thanks
Nov 12 '05 #1
8 12654
Your update was holding 1540 locks, and so you've been 'upgraded' to a
table level lock. This will not cause a -805, but it will affect the
concurrency on your system.

xixi wrote:
i am using db2 v8.1 windows 64 bit with fp3, i check db2diag.log ,
there is message stating

ADM5502W The escalation of "1540" locks on table "xxx.xxx" to lock
intent "X" was successful.

what does that mean?

i do have a sensitive updatable cursor to try to create a record lock
every time i read a row, then update the row, should the update
execute will release the lock? why there is a escalation happened?
will this has bad effect? will this relate to error 805? thanks


Nov 12 '05 #2
"xixi" <da****@yahoo.c om> wrote in message
news:c0******** *************** ***@posting.goo gle.com...
i am using db2 v8.1 windows 64 bit with fp3, i check db2diag.log ,
there is message stating

ADM5502W The escalation of "1540" locks on table "xxx.xxx" to lock
intent "X" was successful.

what does that mean?

i do have a sensitive updatable cursor to try to create a record lock
every time i read a row, then update the row, should the update
execute will release the lock? why there is a escalation happened?
will this has bad effect? will this relate to error 805? thanks


Locks are released after a commit. If possible, try to commit more often
and/or use cursor stability isolation level. You can still maintain your
cursor position after a commit if you use cursor "with hold."

To allow more locks without escalating, you can increase the locklist size
and increase maxlocks. Not sure if these are the correct names for the
parms, but you can look them up in the manual.
Nov 12 '05 #3
hello,

our application use auto commit, so i will assume after every update,
the commit will execute immediately. our concurrencey type is cursor
stability. so why the lock still escalate? Since the application will
have update file process, i am afraid this will cause the problem.

thanks
Nov 12 '05 #4
The commit will be driven _after_ the update completes. During the
update, more and more locks are taken, until they are escalated to a
table level lock. Mark explained how to possibly avoid this in his
previous posting.

xixi wrote:
hello,

our application use auto commit, so i will assume after every update,
the commit will execute immediately. our concurrencey type is cursor
stability. so why the lock still escalate? Since the application will
have update file process, i am afraid this will cause the problem.

thanks


Nov 12 '05 #5
hello,

sorry i still confuse.

you said the commit will be driven _after_ the update completes. so
what does complete means ? our application will do read one row, lock
the row, then update this rows data, should it be auto commit
immediately and release the lock? in order to lock the row, the
concurrency type changes to read stability when read the row. (
because i need to have row lock when cursor stays on the row, so i set
the concurrency to read stability, open the sensitive updatable
resultset with query have where clause where id = xx, there is index
created on id), but right after update, i set the concurrency type
back to cursor stability. thanks
Nov 12 '05 #6
this time i have

ADM5503E The escalation of "875" locks on table "xxxx" to lock
intent "S" has failed. The SQLCODE is "-911".

what does it means? i don't see why we have 875 number of locks. when
i tried o insert a row on this table i get the sql error 911.
Nov 12 '05 #7
It means you couldn't escalate to a table level lock because of a deadlock.

xixi wrote:
this time i have

ADM5503E The escalation of "875" locks on table "xxxx" to lock
intent "S" has failed. The SQLCODE is "-911".

what does it means? i don't see why we have 875 number of locks. when
i tried o insert a row on this table i get the sql error 911.


Nov 12 '05 #8
Until you commit or roll back, your update will hold 1 row lock per row
updated...trans actions can't be finished, and locks can't be released in
the middle of a statement.

xixi wrote:
hello,

sorry i still confuse.

you said the commit will be driven _after_ the update completes. so
what does complete means ? our application will do read one row, lock
the row, then update this rows data, should it be auto commit
immediately and release the lock? in order to lock the row, the
concurrency type changes to read stability when read the row. (
because i need to have row lock when cursor stays on the row, so i set
the concurrency to read stability, open the sensitive updatable
resultset with query have where clause where id = xx, there is index
created on id), but right after update, i set the concurrency type
back to cursor stability. thanks


Nov 12 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
7322
by: xixi | last post by:
hi, we are using db2 udb v8.1 on 64 bit windows, this message is in the db2diag.log file ADM5502W The escalation of "38200" locks on table "xxx.xxx" to lock intent "X" was successful. currently i have locklist = 1075, maxlock=60, so based on the formula (((locks held * 36)/ (locklist *4096)) *100) , i have the answer is
9
7355
by: Jane | last post by:
Our db2diag.log is full of messages like this: 2004-05-31-17.15.10.383766 Instance:tminst1 Node:000 PID:394948(db2agent (TMDB1) 0) TID:1 Appid:GA140956.EF26.03A4B1202647 data management sqldEscalateLocks Probe:3 Database:TMDB1 ADM5502W The escalation of "4759" locks on table "I2TM .SHPM_T" to lock intent "S" was successful. The message is always about Shared locks. What can I do to eliminate these errors?
3
5832
by: Amy Woodward | last post by:
Does DB2 have a setting to turn off lock escalation? I've just done several hours of newsgroup googling, and have found only a couple references to such a setting, for DB2 v4.1 back in the late 90's. One of our apps is (fairly) regularly grabbing table locks instead of row locks. I've bumped maxlocks up as high as 95% with locklist at 2048 (4kB chunks). I'm only dealing with a few hundred rows of data in my test environment. And...
0
3375
by: Bruce Pullen | last post by:
DB2 v7.2 (FP7 - DB2 v7.1.0.68) on AIX 5.2.0.0. We're seeing unexpected single row (then commit) insert locking behaviour. We're seeing Applications that already hold row-level W locks in lock-wait, waiting to acquire row-level X locks. The lock-waits are behind applications that have row-level X locks on different rows (honestly). Both executing and lock-waiting applications have been granted IX table locks.
3
4017
by: db2group88 | last post by:
we are using db2 udb v8.1 on windows, the configure parameter for locks is locklist 1000, maxlocks 60, but somehow i still have the error message ADM5502W The escalation of "1" locks on table "SYSIBM ..SYSSCHEMAAUTH" to lock intent "X" was successful. so why even one lock on table still escalate to X lock? our application doesn't use this table, so why there is lock on it, is it
2
3683
by: Trent | last post by:
Hello, all. I have the following production DB2 environment. DB2 8.1.4 (fp4) WG edition with 2 production databases on Windows 2003 standard edition. My first question is regard with locking. I found some escalations for X lock on some tables. How do I work out an appropriate MAXLOCK & LOCKTIMEOUT settings to optimize the lock escalation issue.
9
15519
by: kavallin | last post by:
I receives the following in the db2diag.log file many times / day : 2007-03-05-14.55.24.836553+060 E12415C457 LEVEL: Warning PID : 2785 TID : 1 PROC : db2agent (dbname) INSTANCE: db2inst1 NODE : 000 DB : dbname APPHDL : 0-946 APPID: *LOCAL.db2inst1.070305135434 FUNCTION: DB2 UDB, data management, sqldEscalateLocks, probe:3 MESSAGE : ADM5502W The escalation of...
3
2199
by: stefan.albert | last post by:
Hi folks, we have a little discussion about lock escalation... What is better for performance: To have an escalation "early" (smaller locklist) or aviod the escalation with a big lock list? We don't care about concurrency - because the changes have to be done, other SQL waiting for this is OK. Anyhow - I think: A lock table in exclusive mode would be the the most
0
3011
by: cburnett | last post by:
Have a peculiar problem regarding lock escalation. Originally lock escalation was occurring because of an application changing most of the rows in a large table. After setting locksize to table to overcome this, still seeing periodic lock escalations (every hour or so) but only of abour 20 rows and for one application at a time. Given a 100MB lock list, why is escalation kicking in and only escalation about 2K of locks? MAXLOCKS would also...
1
773
by: clilush | last post by:
I'm getting entries in the windows event log saying "DB2 is performing lock escalation" which of course is followed by another entrie saying "The escalation of 'xxxx' locks on table 'SYSIBM .SYSCOLDIST' to lock intent 'X' was successful." I'm assuming these are just warnings about the database making it's own adjustments, but I thought I'd be sure before sweeping them under the carpet. Any advice? (DB2 8 Workgroup Edition)
0
8275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8802
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8465
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8579
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7297
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4283
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2699
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1909
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1587
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.