Deadlock inserting into same rowid (different block)

  • From: "Patterson, Joel" <jpatterson@xxxxxxxxxx>
  • Date: Wed, 20 Mar 2013 10:49:01 -0400

Object rowed 199909 is a FK on child table.   The foreign_key is indexed (one 
column to one column PK in parent)

What scenario might cause this deadlock?   I am googling around but not finding 
this scenario - most discussions in insert revolve around indexing FKs.

SQL for both sessions is:
Insert into child_table (cola,colb,...) values (:1,:2,...);


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)



--
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]

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


Other related posts: