473,414 Members | 1,781 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,414 software developers and data experts.

puzzling deadlock

I have a deadlock that's happening on one oracle instance but cannot
be reproduced on any other. It is always caused by the same SQL
statement colliding with itself and only happens under very high load.

The statement is

DELETE from userlogins WHERE numlogins <= 0

the schema for the userlogins table is

userlogins (userid integer, numlogins integer)

The deadlock graph is below. Any help is really appreciated.

- robert

*** SESSION ID:(107.52266) 2003-09-15 20:08:54.290
DEADLOCK DETECTED
Current SQL statement for this session:
DELETE userlogins WHERE numlogins <= 0
The following deadlock is not an ORACLE error. It is a
deadlock due to user error in the design of an application
or from issuing incorrect ad-hoc SQL. The following
information may aid in determining the deadlock:
Deadlock graph:
---------Blocker(s)--------
---------Waiter(s)---------
Resource Name process session holds waits process session
holds waits
TX-000a0026-00001c05 39 107 X 15 157
X
TX-00110029-00000596 15 157 X 25 133
X
TX-0012000a-0000052c 25 133 X 59 109
X
TX-00060018-0000230a 59 109 X 39 107
X
session 107: DID 0001-0027-00000002 session 157: DID
0001-000F-00000002
session 157: DID 0001-000F-00000002 session 133: DID
0001-0019-00000002
session 133: DID 0001-0019-00000002 session 109: DID
0001-003B-00000002
session 109: DID 0001-003B-00000002 session 107: DID
0001-0027-00000002
Rows waited on:
Session 157: obj - rowid = 00001AFF - AAABr/AAHAAAGImAAL
(dictionary objn - 6911, file - 7, block - 25126, slot - 11)
Session 133: obj - rowid = 00001AFF - AAABr/AAHAAAGImAAK
(dictionary objn - 6911, file - 7, block - 25126, slot - 10)
Session 109: obj - rowid = 00001AFF - AAABr/AAHAAAGImABl
(dictionary objn - 6911, file - 7, block - 25126, slot - 101)
Session 107: obj - rowid = 00001AFF - AAABr/AAHAAAGImAAS
(dictionary objn - 6911, file - 7, block - 25126, slot - 18)
Information on the OTHER waiting sessions:
Session 157:
pid=15 serial=60169 audsid=634417 user: 14/SCHEMA45
O/S info: user: oracle, term: unknown, ospid: , machine: jdbcclient
program: JDBC-1.0-Client
application name: JDBC-1.0-Client, hash value=0
Current SQL Statement:
DELETE userlogins WHERE numlogins <= 0
Session 133:
pid=25 serial=22487 audsid=634303 user: 14/SCHEMA45
O/S info: user: oracle, term: unknown, ospid: , machine: jdbcclient
program: JDBC-1.0-Client
application name: JDBC-1.0-Client, hash value=0
Current SQL Statement:
DELETE userlogins WHERE numlogins <= 0
Session 109:
pid=59 serial=35127 audsid=634320 user: 14/SCHEMA45
O/S info: user: oracle, term: unknown, ospid: , machine: jdbcclient
program: JDBC-1.0-Client
application name: JDBC-1.0-Client, hash value=0
Current SQL Statement:
DELETE userlogins WHERE numlogins <= 0
Jul 19 '05 #1
1 6045
On 25 Sep 2003 08:20:41 -0700, ro*************@yahoo.com (Robert Brown) wrote:
I have a deadlock that's happening on one oracle instance but cannot
be reproduced on any other. It is always caused by the same SQL
statement colliding with itself and only happens under very high load.

The statement is

DELETE from userlogins WHERE numlogins <= 0

the schema for the userlogins table is

userlogins (userid integer, numlogins integer)

The deadlock graph is below. Any help is really appreciated.

Current SQL statement for this session:
DELETE userlogins WHERE numlogins <= 0
---------Blocker(s)-------- ---------Waiter(s)---------
Resource Name process session holds waits process session holds waits
TX-000a0026-00001c05 39 107 X 15 157 X
TX-00110029-00000596 15 157 X 25 133 X
TX-0012000a-0000052c 25 133 X 59 109 X
TX-00060018-0000230a 59 109 X 39 107 X Rows waited on:
Session 157: obj - rowid = 00001AFF - AAABr/AAHAAAGImAAL
(dictionary objn - 6911, file - 7, block - 25126, slot - 11)
Session 133: obj - rowid = 00001AFF - AAABr/AAHAAAGImAAK
(dictionary objn - 6911, file - 7, block - 25126, slot - 10)
Session 109: obj - rowid = 00001AFF - AAABr/AAHAAAGImABl
(dictionary objn - 6911, file - 7, block - 25126, slot - 101)
Session 107: obj - rowid = 00001AFF - AAABr/AAHAAAGImAAS
(dictionary objn - 6911, file - 7, block - 25126, slot - 18)


Given that all the rows are all in the same block, is it an ITL deadlock
issue?

What is your INITRANS and MAXTRANS set to? Is that block too full to allow
expansion of the interested transaction list?

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 19 '05 #2

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

Similar topics

1
by: dawatson833 | last post by:
I want to set an alert for a specific table whenever an event has caused a deadlock to occur on the table. I understand how to set up an alert. But I don't know which error number to use for...
7
by: Andrew Mayo | last post by:
Here's a really weird one for any SQL Server gurus out there... We have observed (SQL Server 2000) scenarios where a stored procedure which (a) begins a transaction (b) inserts some rows into...
3
by: Nigel Robbins | last post by:
Hi There, I'm getting a deadlock when I have two clients running the following statement. DELETE FROM intermediate.file_os_details WHERE file_uid = ? AND obj_uid There is a compound index on...
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....
15
by: Zeng | last post by:
Hi, The bigger my C# web-application gets, the more places I need to put in the tedious retrying block of code to make sure operations that can run into database deadlocks are re-run (retried)...
1
by: Grant McLean | last post by:
Hi First a simple question ... I have a table "access_log" that has foreign keys "app_id" and "app_user_id" that reference the "application_type" and "app_user" tables. When I insert into...
2
by: Sumanth | last post by:
Hi , I am trying to acquire a lock on a table A in exclusive mode, and this statement gives an error indicating a deadlock or timeout has been detected. The lock timeout value is set to 0 which...
0
by: cwho.work | last post by:
Hi! We are using apache ibatis with our MySQL 5.0 database (using innodb tables), in our web application running on Tomcat 5. Recently we started getting a number of errors relating to...
1
by: Robert Brown | last post by:
I have a deadlock that's happening on one oracle instance but cannot be reproduced on any other. It is always caused by the same SQL statement colliding with itself and only happens under very high...
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?
0
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...
0
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,...
0
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...
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
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...
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.