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: Preventing Inserting during updating subset

Re: Preventing Inserting during updating subset

From: Sybrand Bakker <gooiditweg_at_sybrandb.demon.nl>
Date: Fri, 01 Nov 2002 06:47:05 +0100
Message-ID: <a954su8pg9vvhpjs45b37gsmoj2t5ae3rn@4ax.com>


On Fri, 01 Nov 2002 00:09:21 -0500, C Chang <cschang_at_maxinter.net> wrote:

>How to prevent to insert a new row reacord into a subset of reacords
>while the subset is being updated. or vise versa prevent the subset to
>update while new row is inserted. Ex:
> A 1 new
> A 2 new
>update to
> A 1 old
> A 2 old
>prevent a 'A 3 new' insert into. The new row will become 'B 1 new',
>preventing subset of
> A 1 old
> A 2 old
> A 3 new
>what Oracle mechanism provides such thing. The only thing I can think
>about is to use the "For Update" in Updating block. Does it really
>achieve such goal? Thanks for anyone's suggestion.
>
>K Chang

Just lock table <table_name> in exclusive mode

for update doesn't prevent inserts.

Hth

Sybrand Bakker, Senior Oracle DBA

To reply remove -verwijderdit from my e-mail address Received on Thu Oct 31 2002 - 23:47:05 CST

Original text of this message

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