Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: 'no row' deadlock - ORA-00060

Re: 'no row' deadlock - ORA-00060

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Fri, 30 Nov 2001 10:55:39 -0000
Message-ID: <1007118758.18235.0.nnrp-10.9e984b29@news.demon.co.uk>

This suggests that there may be a different cause to your problem. I attach an SQL script to demonstrate the PK/FK problem, and how ANY index starting with the FK columns is sufficient to eliminate the problem

This suggests an alternative issue - but I can't think at the moment why adding a redundant index should ever be a solution.

Is the DELETE statement in the deadlock dump against the parent or the child ?

--
Jonathan Lewis
http://www.jlcomp.demon.co.uk

Host to The Co-Operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html

Author of:
Practical Oracle 8i: Building Efficient Databases

Screen saver or Life saver: http://www.ud.com
Use spare CPU to assist in cancer research.

Samuel Becker wrote in message ...

>
>Thanks a lot. I have created an index on a child table and it works !
>
>Nevertheless, there's something i don't understand: this child table
>has already an unique index like Nuno Suto has mentionned: "(COL_FK,
COL_SEQ)"
>where is COL_FK is the foreign key. And if i don't create another index
>(not unique) on COL_FK, i get deadlocks...
>
>Regards
begin 666 c_fk.sql M<F5M#0IR96T)4V-R:7!T._at_D)8U]F:RYS<6P-"G)E;0E!=71H;W(Z"0E*;VYA M=&AA;B!,97=I<PT*<F5M"41A=&5D._at_D)36%R(#(P,#$-"G)E;0E0=7)P;W-E M._at_E$96UO($9+(&QO8VMI;F<@:7-S=64-"G)E;0T*<F5M"4YO=&5S.@T*<F5M M"0E,87-T('1E<W1E9"!O;B X+C$N-RXP+C -"G)E;0T*#0IS<&]O;"!C7V9K M#0H-"F1R;W @=&%B;&4_at_8VAI;&0[#0ID<F]P('1A8FQE('!A<F5N=#L-"@T* M8W)E871E('1A8FQE('!A<F5N=" H#0H):60@"6YU;6)E<BP-"@EV,0EV87)C M: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*#0IU<&1A=&4@<&%R M96YT('-E="!I9" ](&ED.PT*#0IS96QE8W0@*B!F<F]M('8D;&]C:R!W:&5R M92!T>7!E("$]("=-4B<[#0H-"F-R96%T92!I;F1E>"!C7VED>"!O;B!C:&EL M9"AI9%]P+"!V,2D[#0H-"G5P9&%T92!P87)E;G0@<V5T(&ED(#T@:60[#0H- M"G-E;&5C=" J(&9R;VT@=B1L;V-K('=H97)E('1Y<&4@(3T@)TU2)SL-"@T* +<W!O;VP@;V9F#0H` ` end
Received on Fri Nov 30 2001 - 04:55:39 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US