Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.oracle -> Re: Locking a Table Within an INSERT

Re: Locking a Table Within an INSERT

From: D Rolfe <dwrolfeFRUITBAT_at_orindasoft.com>
Date: Wed, 07 Jul 2004 17:12:11 +0100
Message-ID: <40EC20DB.7020600@orindasoft.com>

Elliott wrote:

>>Use a sequence
>>replace the horrible expression by 
>><sequence>.nextval and you are set.
>>
>>Sybrand Bakker
>>Senior Oracle DBA

>
>
> Would that I could. Unfortunately, the business requirements are that
> I know the generated values in advance of inserting them.
>
> I've thought of establishing an intermediate table into which I could
> insert the values from a sequence, together with other record
> identifying information, to be used in a lookup later. But I'm dealing
> with, in some cases, a couple of million rows per run, with a dozen
> runs a day.
>
> You can write me at eshevin_at_ford.com if you'd care to hear more.

<Various Random Ideas>
Have you thought about:

</Various Random Ideas>

David Rolfe
Orinda Software
Dublin, Ireland Received on Wed Jul 07 2004 - 11:12:11 CDT

Original text of this message

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