473,830 Members | 2,152 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with locks

Hello,
does someone know what kind of a lock is an "END" type lock and how/when
does it appear?
How can one avoid it?

This lock in my case appears during a multi-row update on a table (see the
end of this post for the example), where I would only expect to see an IX
lock on the table (present) and one X row lock for each row updated (also
present).
DB2 version is 7.2, EE, fixpak 8
OS = AIX 4.3.3 (ML11)

Any suggestions, links, ...?

Best regards,
Damir Wilder

Snapshot for locks (excerpt):
-----------------------------
Application handle = 0
TABLE NAME TYPE MODE LOCK_ID STATUS ESC TABLESPACE TABLE
SCHEMA
------------------ ------ ---- --------- ------- --- ------------ ----------
--
TR_GEN End X 498 Granted NO USERSPACE1 DB2ADMIN
TR_GEN Row X 1252098 Granted NO USERSPACE1 DB2ADMIN
....
TR_GEN Table IX 87 Granted NO USERSPACE1 DB2ADMIN
----------------------------------------------------------------------------
---
Nov 12 '05 #1
2 1858
Could be the end of table object.

PM

"Damir Wilder" <da**********@e tna.hr> a écrit dans le message de
news:bv******** **@ls219.htnet. hr...
Hello,
does someone know what kind of a lock is an "END" type lock and how/when
does it appear?
How can one avoid it?

This lock in my case appears during a multi-row update on a table (see the
end of this post for the example), where I would only expect to see an IX
lock on the table (present) and one X row lock for each row updated (also
present).
DB2 version is 7.2, EE, fixpak 8
OS = AIX 4.3.3 (ML11)

Any suggestions, links, ...?

Best regards,
Damir Wilder

Snapshot for locks (excerpt):
-----------------------------
Application handle = 0
TABLE NAME TYPE MODE LOCK_ID STATUS ESC TABLESPACE TABLE
SCHEMA
------------------ ------ ---- --------- ------- --- ------------ -------- -- --
TR_GEN End X 498 Granted NO USERSPACE1 DB2ADMIN
TR_GEN Row X 1252098 Granted NO USERSPACE1 DB2ADMIN
...
TR_GEN Table IX 87 Granted NO USERSPACE1 DB2ADMIN
-------------------------------------------------------------------------- -- ---

Nov 12 '05 #2

"Damir Wilder" <da**********@e tna.hr> wrote in message
news:bv******** **@ls219.htnet. hr...
Hello,
does someone know what kind of a lock is an "END" type lock and how/when
does it appear?B ===
It is "End of Table". That because you UPDATE the last record of this table.
How can one avoid it? ====
Two ways:
(1). upgrade to Version8.x, which will use type-2 index. Most of the next
key locks will be disappear ...
(2). If you continue use V7.2, then set DB2_RR_TO_RS=ye s


This lock in my case appears during a multi-row update on a table (see the
end of this post for the example), where I would only expect to see an IX
lock on the table (present) and one X row lock for each row updated (also
present).
DB2 version is 7.2, EE, fixpak 8
OS = AIX 4.3.3 (ML11)

Any suggestions, links, ...?

Best regards,
Damir Wilder

Snapshot for locks (excerpt):
-----------------------------
Application handle = 0
TABLE NAME TYPE MODE LOCK_ID STATUS ESC TABLESPACE TABLE
SCHEMA
------------------ ------ ---- --------- ------- --- ------------ -------- -- --
TR_GEN End X 498 Granted NO USERSPACE1 DB2ADMIN
TR_GEN Row X 1252098 Granted NO USERSPACE1 DB2ADMIN
...
TR_GEN Table IX 87 Granted NO USERSPACE1 DB2ADMIN
-------------------------------------------------------------------------- -- ---

Nov 12 '05 #3

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

Similar topics

1
1514
by: Hal | last post by:
SQL2K, sp3 Active Server Pages front-end I am having a blocking problem with a spid executing a stored procedure that does no updates. When I look at the locks the blocking spid has, some of them have lock mode "IS". Looking in BOL, I see "S" is shared, but I don't see "IS". Can anyone tell me what lock mode "IS" is? And how could a stored procedure that does no updates be guilty of
1
4606
by: Anatoly | last post by:
Hi everybody, I am writing a scheduling system that has appointments table. For each appointment I am adding a new record that has EventID and ClientID. Each event has capacity that needs to be checked before adding new appointments, if it is reached no new appointments could be added. This logic is implemented as a stored procedure. Problem that I am trying to solve is concurrent scheduling -- when two or more clients are trying to...
5
5465
by: Ritesh | last post by:
Hi All, According to my observation using SP_WHO2 in my database, some INSERT statements are getting blocked by SELECT statements. Though the blocking SELECT statement is having ReadPast hint, i think, it will only read past locked resources but will not guarantee the select statement itself not blocking other statements(in my case Insert). According to my knowledge
6
20632
by: John Carroll | last post by:
Is there a SQL query that can be run against a database that will give me all the details on any locks that are in place at the given time? I am interested in find the lock type and owner. Thank you, John
0
3392
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.
1
4246
by: Rohit Raghuwanshi | last post by:
Hello all, we are running a delphi application with DB2 V8.01 which is causing deadlocks when rows are being inserted into a table. Attaching the Event Monitor Log (DEADLOCKS WITH DETAILS) here. From the log it looks like the problem happens when 2 threads insert 1 record each in the same table and then try to aquire a NS (Next Key Share) lock on the record inserterd by the other thread. Thanks Rohit
1
3362
by: Vikky | last post by:
Hi All: I have a problem with DB2 locking scheme. I am dealing with two processes modifying the DBMS (here IBM DB2 7.1 FP8 on Solaris) simulteneously. P1: Huge transactional data being processed and updated. P2: A very low intensive thread carry out the requests from the UI.
4
1913
by: Alex Callea | last post by:
Hi there, We have a web application handling thousands of requests per seconds reading sql server data which is heavily updated. We are generally experiencing no performance problems. On some occasions we get an increase of the traffic of about 15% for short periods. In this case we observe something really strange: our webserver CPU goes from about 40% usage to 100%, with memory usage keeping low (about 50%). We see at the same time...
4
2904
by: perspolis | last post by:
Hi all I have a master-detail tables in sql server. I use SqlTransaction to insert data into both tables. it works well but if I check the "Cascade Delete Related Records" option in it's realtion in sql server my SqlTransaction dosen't work and get timeout error.. please help me thanks in advance
1
2896
by: shenanwei | last post by:
I have db2 v8.2.5 on AIX V5.3 with all the switches on Buffer pool (DFT_MON_BUFPOOL) = ON Lock (DFT_MON_LOCK) = ON Sort (DFT_MON_SORT) = ON Statement (DFT_MON_STMT) = ON Table (DFT_MON_TABLE) = ON Timestamp (DFT_MON_TIMESTAMP) = ON Unit of work ...
0
9793
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9642
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
10493
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10526
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
9315
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...
1
7747
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5617
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3960
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3076
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.