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 -> whole table locks when using foreign key constraint

whole table locks when using foreign key constraint

From: Dean Taylor <deantaylor31_at_hotmail.com>
Date: 20 Nov 2001 20:37:36 -0800
Message-ID: <e7ca2986.0111202037.6f6a1618@posting.google.com>


I have a foreign key on table A which references table B. If change a row in B but do not commit it then change the row in A which references it, then the second statement will hang waiting for the first to commit or rollback. That is expected. However if I then try to change a different row in A it also hangs even though it should not be affected. Somone told me that adding an index to the referencing rows in A would solve the problem is it does not seem to. Does anyone know a way to avoid locking the whole table when waiting for a foreign key check to complete? Received on Tue Nov 20 2001 - 22:37:36 CST

Original text of this message

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