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: CURRVAL in multi-user environments

Re: CURRVAL in multi-user environments

From: Thomas Gaines <Thomas.Gaines_at_noaa.gov>
Date: Tue, 21 May 2002 17:39:51 -0600
Message-ID: <3CEADAC7.15BD6479@noaa.gov>


Matt -

This sounds simple enough to test. Give it a try and answer your own question...

TG

Matthew Nicoll wrote:

> The Oracle documentation I have seen suggests I can define a sequence,
> then use sequence_name.NEXTVAL for an ID for a parent row,
> then use sequence_name.CURVAL in subsequent writes to child rows.
>
> In a multi-user environment, if the order of events is:
> User 1 - NextVal gets 100
> User 2 - NextVal gets 101
> User 1 - CurrVal gets 100 or 101?
>
> I.e. is Oracle smart enough to keep a different CURRVAL for
> each user?
Received on Tue May 21 2002 - 18:39:51 CDT

Original text of this message

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