Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
PrateekGupta01
Starting Member
2 Posts |
Posted - 2008-04-13 : 02:27:12
|
Hi GuysI am getting a deadlock in my DB almost daily now. The deadlock is generally between RID and KEY. Which confuses me more because all the operations that happen on this table are using the unqiue index only i.e. Each select/insert/update only affects one row.Following is the output of 1204 trace.Deadlock encountered .... Printing deadlock information2008-04-02 15:39:08.92 spid42008-04-02 15:39:08.92 spid4 Wait-for graph2008-04-02 15:39:08.92 spid42008-04-02 15:39:08.92 spid4 Node:12008-04-02 15:39:08.92 spid4 KEY: 5:1330103779:2 (2803833d27c3) CleanCnt:2 Mode: U Flags: 0x02008-04-02 15:39:08.92 spid4 Grant List 3::2008-04-02 15:39:08.92 spid4 Owner:0x3629fee0 Mode: U Flg:0x0 Ref:0 Life:02000000 SPID:115 ECID:02008-04-02 15:39:08.92 spid4 SPID: 115 ECID: 0 Statement Type: DELETE Line #: 12008-04-02 15:39:08.92 spid4 Input Buf: RPC Event: sp_execute;12008-04-02 15:39:08.92 spid4 Requested By:2008-04-02 15:39:08.92 spid4 ResType:LockOwner Stype:'OR' Mode: U SPID:108 ECID:0 Ec:(0x3432B508) Value:0x99806380 Cost:(0/0)2008-04-02 15:39:08.92 spid42008-04-02 15:39:08.92 spid4 Node:22008-04-02 15:39:08.92 spid4 RID: 5:1:48452:0 CleanCnt:2 Mode: U Flags: 0x22008-04-02 15:39:08.92 spid4 Grant List 0::2008-04-02 15:39:08.92 spid4 Owner:0x9943d100 Mode: S Flg:0x0 Ref:0 Life:02000000 SPID:108 ECID:02008-04-02 15:39:08.92 spid4 SPID: 108 ECID: 0 Statement Type: DELETE Line #: 12008-04-02 15:39:08.92 spid4 Input Buf: RPC Event: sp_prepexec;12008-04-02 15:39:08.92 spid4 Grant List 3::2008-04-02 15:39:08.92 spid4 Requested By:2008-04-02 15:39:08.92 spid4 ResType:LockOwner Stype:'OR' Mode: X SPID:115 ECID:0 Ec:(0x98ED1508) Value:0x94449fe0 Cost:(0/5C)2008-04-02 15:39:08.92 spid4 Victim Resource Owner:2008-04-02 15:39:08.92 spid4 ResType:LockOwner Stype:'OR' Mode: U SPID:108 ECID:0 Ec:(0x3432B508) Value:0x99806380 Cost:(0/0)Please provide your inputs on what could be the cause of this.Following is the schema for the tablecreate table USER_LOGIN_TABLE(BANK_ID char(9),USER_ID char(65),SESSION_ID char(32),R_MOD_TIME datetime,R_CRE_TIME datetime)gocreate view LGIN as select * from USER_LOGIN_TABLEgocreate unique index IDX_LGINon USER_LOGIN_TABLE( bank_id, user_id )go |
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2008-04-13 : 15:51:53
|
Dup post:http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=100851 |
|
|
|
|
|