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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Oracle deadlock on table with indexes.

Re: Oracle deadlock on table with indexes.

From: Norman Dunbar <Norman_at_JUNKTHISBIT.Bountiful.Demon.co.uk>
Date: Wed, 30 Jun 2004 17:26:04 +0100
Message-ID: <3bq5e014mfe61vdij8hbkovp3rsui8qtf6@4ax.com>


On 30 Jun 2004 02:42:48 -0700, paulz_at_cavendish.co.uk (Paul) wrote:

>We are experiencing a deadlock between two processes trying to delete
>two different rows from the same table. This table's key is a foreign
>key in another table which is cleared before these rows are deleted.
>
>Both tables have their primary keys indexed and these are used for
>deletions.
>I enclose a copy of the oracle error log - anyone know why this is
>happening (I do have a suspicion it may have something to do with the
>"REPLACE", but haven't found anything to confirm this)?

<BIG SNIP>

you say both tables have their primary key indexed, but is the child table's foreign key column(s) indexed too ?

Cheers,
Norm.

Remove the obvious bit to reply to my email address. Received on Wed Jun 30 2004 - 11:26:04 CDT

Original text of this message

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