Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to find username from trace file for deadlock due to user

112842Aug 18 2003
This is the info from the trace file.

*** 2003-08-18 08:07:40.590
*** SESSION ID:(560.60728) 2003-08-18 08:07:40.560
DEADLOCK DETECTED
Current SQL statement for this session:
SELECT S.AVAILABLE,GET_AVAIL(S.PRODUCT_ID),S.ON_HAND,S.W_PL,S.PRODUCT_GROUP,S.SIZE_ID,S.COLOR_ID,S.ONEZ,S.COST,IS_IT_KIT(:b1),
NVL(PR.R_AVAIL,0),NVL(PR.R_SOLD,0),NVL(PR.UNIT_OF_MEASURE,'QTY'),NVL(DECODE(PR.AV_CT,0,1,PR.AV_CT),1) FROM ACNTV.SKU S,ACNTV
.PRERED_QUANTITIES PR WHERE S.PRODUCT_ID = PR.PRODUCT_ID (+) AND S.PRODUCT_ID = :b1 FOR UPDATE OF S.ON_HAND,
S.W_PL,PR.R_AVAIL
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-0021004b-000125d8 366 560 X 329 135 X
TX-0008003b-000125fc 329 135 X 366 560 X
session 560: DID 0001-016E-00000002 session 135: DID 0001-0149-00000002
session 135: DID 0001-0149-00000002 session 560: DID 0001-016E-00000002
Rows waited on:
Session 135: obj - rowid = 00017FAC - AAAX+sAAPAAAS9/AAP
Session 560: obj - rowid = 0001586C - AAAVhsABXAAAAIRAAN

We know the objects ,but how to find out the username ?

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 15 2003
Added on Aug 18 2003
0 comments
163 views