Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> Re: performance when inserting into child tables

Re: performance when inserting into child tables

From: Mladen Gogala <>
Date: Wed, 21 Apr 2004 14:44:56 -0400
Message-ID: <>

Lock is released before commit? That would be something! So, what is to prevent child from inserting a record with an old value of the foreign key, the only one that it can see? It looks like a slight violation of the ACID property. What, exactly, do they mean by "immediately"? If it is "immediately after the transaction ends", then it's not so new. If the lock is released before the transaction modifying the parent key ends, there are quite few nasty possibilities for breaking the integrity. Do you have any Metalink note? Was the instructor a former second hand car salesman or a real estate agent?

On 04/21/2004 02:22:51 PM, "Mercadante, Thomas F" wrote:
> Jared,
> you said:
> "The lack of indexes for the FK's will cause a share lock to be taken
> out on the child table when ever the parent is deleted or updated."
> The most recent Oracle class I took said that in 9i, this lock on the child
> table is taken and released immediately. Supposedly to speed the process up
> a bit.

Mladen Gogala
Oracle DBA

This message is for the named person's use only.  It may contain confidential, proprietary or legally privileged information.  No confidentiality or privilege is waived or lost by any mistransmission.  If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender.  You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Wang Trading LLC and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks.
Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity.

Please see the official ORACLE-L FAQ:
To unsubscribe send email to:
put 'unsubscribe' in the subject line.
Archives are at
FAQ is at
Received on Wed Apr 21 2004 - 13:42:53 CDT

Original text of this message