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 -> Insert with "nowait" - workaround.

Insert with "nowait" - workaround.

From: NIKOS OIKONOMOU <unixfor_at_ath.forthnet.gr>
Date: 1998/04/27
Message-ID: <35446447.2E661096@ath.forthnet.gr>#1/1

Please help us on the following problem

Table A has two fields. Field pk is a primary key and field uk is a unique key.
A session inserts into A the record (pk_val1, uk_val1) successfully. The session does not commit the insertion. Another session attempts to insert the same record and because there is the uncommitted previously inserted record from another session the second session has to wait until the first session execute a commit or a rollback releasing the row-lock.

We want to change the above scenario. What we want is to make each session attempting to insert a record to be able to understand that at the specific moment a row-lock for the specific row exists and abort the insertion immediately.

We may say that we need a 'NOWAIT' behavior for the insert operation.

Which is the best method we can accomplish what we need? (We are looking for a work-around).

Thank you very much.
Nicolas Economou Received on Mon Apr 27 1998 - 00:00:00 CDT

Original text of this message

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