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: Deadlock Question

Re: Deadlock Question

From: Thomas Kyte <thomas.kyte_at_oracle.com>
Date: 2 Jun 2005 15:29:23 -0700
Message-ID: <127751363.000005eb.087@drn.newsguy.com>


In article <1117748644.429200.59330_at_g14g2000cwa.googlegroups.com>, wagen123_at_yahoo.com says...
>
>J. Lewis: Thank You.
>Tom Kyte: Thanks for correcting me. To prevent full table scans on the
>child table and blocking scenarios (as you described), will creating
>indexes on the foreign keys PREVENT deadlocks. I am still not clear
>about this. Can you help me simulate a deadlock if the foreign keys are
>NOT indexed?
>
>Thanks very much.
>

indexing the foreign keys prevents the lock of the child table when you update the parent primary key, or delete from the parent.

-- 
Thomas Kyte
Oracle Public Sector
http://asktom.oracle.com/
opinions are my own and may not reflect those of Oracle Corporation
Received on Thu Jun 02 2005 - 17:29:23 CDT

Original text of this message

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