Re: what could cause my oracle sequence nextval jump?

  • From: "Michael Moore" <michaeljmoore@xxxxxxxxx>
  • To: hkchital@xxxxxxxxxxxxxx
  • Date: Mon, 6 Oct 2008 09:52:37 -0700

A sequence generated number should be thought of as simply a unique number.
The fact that one number generated by a SEQUENCE is numerically greater than
( or less than if negative increment ) is simply for performance. Oracle
could have used a random number instead, but that would create collisions
and hence be less performant.It is best to think about SEQUENCE generated
numbers "as though" it was a random number. If auditors need proof that
nothing was deleted, then a different technique should be deployed. IMHO of
course.Mike

On Sat, Oct 4, 2008 at 11:42 PM, Hemant K Chitale
<hkchital@xxxxxxxxxxxxxx>wrote:

>
> "you can always  run a process on the affected tables and re-set the
> sequenced value in order to avoid gaps".
>
> I don't believe this.  You are ALLOWED to do that ?  And your users and
> auditors don't ask questions ?
>
>
> At 12:57 AM Saturday, Bort, Guillermo wrote:
>
>> If you need secuential numbers and cannot afford either gaps or locking
>> and generating numbers with a pl/sql function, you can always run a
>> process on the affected tables and re-set the sequenced value in order
>> to avoid gaps.
>>
>> An alternative to sequences, when you cannot afford gaps is using custom
>> pl/sql functions and perhaps even Oracle Queues. This would cause a
>> serious serialization of operations though.
>>
>> Guillermo Alan Bort
>> EDS - ITO DBA Main Group
>>
>
>
> Hemant K Chitale
> http://hemantoracledba.blogspot.com
>
> "A 'No' uttered from the deepest conviction is better than a 'Yes' merely
> uttered to please, or worse, to avoid trouble."
> Mohandas Gandhi Quotes :
> http://www.brainyquote.com/quotes/authors/m/mohandas_gandhi.html
>
>
> --
> //www.freelists.org/webpage/oracle-l
>
>
>

Other related posts: