473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

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 1839
Could be the end of table object.

PM

"Damir Wilder" <da**********@etna.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**********@etna.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=yes


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
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...
1
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...
5
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,...
6
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...
0
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...
1
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....
1
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...
4
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...
4
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...
1
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 ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...

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.