RE: Deadlock inserting into same rowid (different block)

  • From: "Patterson, Joel" <jpatterson@xxxxxxxxxx>
  • To: "jonathan@xxxxxxxxxxxxxxxxxx" <jonathan@xxxxxxxxxxxxxxxxxx>
  • Date: Thu, 11 Apr 2013 12:00:40 -0400

Hello Jonathan,
I had created an SR on this issue, which is about to run its course.
In midst of it I asked if the slot #'s being zero is expected behavior in this 
situation.   The response was why would it not be expected -- we start the 
number with 0,1,2 ... etc.  It is the slot on the ITL it is waiting for.
Is there some elaboration which would help me discuss it further?
I plan to close out the SR as it has basically run its course at this point and 
the problem was identified and fixed - and I believe the forum was updated as 
well.   Essentially two batch jobs running at the same time, however I wanted 
to explore this before I close taking advantage of the fact that the SR is open 
already.
Best Regards,

2013/3/20 Jonathan Lewis 
<jonathan@xxxxxxxxxxxxxxxxxx<mailto:jonathan@xxxxxxxxxxxxxxxxxx>>

The deadlock pattern is indicative of collisions on a unique constraint.
They're both trying to insert primary / unique key values already inserted
but not yet committed by the other session.

Given that the slot numbers are both zero, it's likely that they're being
reported incorrectly - Oracle doesn't clean out the wait information for
every single wait, so these could be the file and block (with zero row) for
early buffer busy waits, or read by other session or some such.

Regards

Jonathan Lewis
http://jonathanlewis.wordpress.com/all-postings

Author: Oracle Core (Apress 2011)
http://www.apress.com/9781430239543


--
Joel Patterson
Sr. Database Administrator | Enterprise Integration
Phone: 904-928-2790 | Fax: 904-733-4916
www.entint.com<http://www.entint.com/>

[http://i1202.photobucket.com/albums/bb367/Entint/signaturev61.jpg]<http://www.entint.com/>

[http://i1202.photobucket.com/albums/bb367/Entint/th_FaceBook1.jpg]<http://www.facebook.com/pages/Enterprise-Integration/212351215444231>
  [http://i1202.photobucket.com/albums/bb367/Entint/th_Twitter1.jpg] 
<http://twitter.com/#!/entint>   
[http://i1202.photobucket.com/albums/bb367/Entint/th_LinkedIn1.jpg] 
<http://www.linkedin.com/company/18276?trk=tyah>   
[http://i1202.photobucket.com/albums/bb367/Entint/th_YouTube1.jpg] 
<http://www.youtube.com/user/ValueofIT>

This message (and any associated files) is intended only for the use
of the addressee and may contain information that is confidential,
subject to copyright or constitutes a trade secret. If you are not the
intended recipient, you are hereby notified that any dissemination,
copying or distribution of this message, or files associated with this
message, is strictly prohibited. If you have received this message in
error, please notify us immediately by replying to the message and
deleting it from your computer. Messages sent to and from us may be
monitored. Any views or opinions presented are solely those of the
author and do not necessarily represent those of the company. [v.1.1]

From: "Patterson, Joel" <jpatterson@xxxxxxxxxx<mailto:jpatterson@xxxxxxxxxx>>

|
| Deadlock graph:
|                       ---------Blocker(s)--------  ---------Waiter(s)---------
| Resource Name          process session holds waits  process session holds
waits
| TX-001a0015-00014787        34      90     X             32       3
S
| TX-00190008-0000601b        32       3     X             34      90
S
|
| session 90: DID 0001-0022-00000327      session 3: DID 0001-0020-000009E9
| session 3: DID 0001-0020-000009E9       session 90: DID
0001-0022-00000327
|
| Rows waited on:
|  Session 90: obj - rowid = 00030CE5 - AAAwzlAAGAABDiuAAA
|  (dictionary objn - 199909, file - 6, block - 276654, slot - 0)
|  Session 3: obj - rowid = 00030CE5 - AAAwzlAAGAABp8gAAA
|  (dictionary objn - 199909, file - 6, block - 433952, slot - 0)
|
|
|

--
//www.freelists.org/webpage/oracle-l



--
Bien Respectueusement
Mohamed Houri

--
//www.freelists.org/webpage/oracle-l


Other related posts: