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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: sequence generator

Re: sequence generator

From: Gregory Conron <gconron_at_hfx.andara.com>
Date: Fri, 23 Feb 2001 17:45:17 -0800
Message-ID: <F001.002BC8AD.20010223172028@fatcity.com>

On Fri, 23 Feb 2001, Ravindra Basavaraja wrote:
> Can anyone correct/confirm the following:
>
> A sequence generated number is auto committed. i.e if the transaction that
> generates
> the sequence number fails which eventually gets rolledback the generated
> sequence number
> generated is lost and not available for the next transaction.

This is true.

>
> Is there by anyway prevent lossing of the sequence generated number in case
> of the
> transaction that generated it fails.Any work around?

You will need to create a sequence table i.e. a table you create that you can use to create the arbitrary sequence numbers needed.

Cheers,
GC

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Gregory Conron
  INET: gconron_at_hfx.andara.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Feb 23 2001 - 19:45:17 CST

Original text of this message

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