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: Sequence Duplicate values ??

Re: Sequence Duplicate values ??

From: Jonathan Gennick <jonathan_at_gennick.com>
Date: Sun, 17 Oct 1999 17:21:37 GMT
Message-ID: <380f0516.224842558@netnews.worldnet.att.net>


On 16 Oct 1999 23:20:56 GMT, noodles_at_aol.com (Noodles) wrote:

>Yesterday, I was shown some duplicate numbers that were loaded via PL/SQL using
>'select <seq>.nextval from dual;'. I always thought this was impossible.

It should be impossible. Can you reproduce this? If not, then I'd be more inclined that the PL/SQL program had a bug in it.

>Some possible sources that I've thought about are:
>
>1. rollback within the block during an exception or just general exception ?

Neither of these should affect whether or not a sequence increments.

>2. Oracle 600 errors during execution could cause the seq not to increment ?

Possibly. I've never encountered this. Have you checked the alert log to see if any 600 errors were recorded?

>I was just wondering of there were any common ways of generating sequence
>duplicates ?

Short of recreating the sequence with a beginning value that has already been used before, I don't know _any_ way to do this.

Jonathan



jonathan_at_gennick.com
http://gennick.com
Brighten the Corner Where You Are Received on Sun Oct 17 1999 - 12:21:37 CDT

Original text of this message

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