Database Administration (MOSC)

MOSC Banner

Will a sequence fill in gaps?

edited Aug 5, 2015 10:05AM in Database Administration (MOSC) 4 commentsAnswered

Background:

I have an existing field in a table, not the PK, which contains numbers, that were generated by a different system.  Customer has asked for my system to take over the generation of the numbers using a sequence.  There are gaps between the MIN_VALUE and MAX_VALUE that I have input into the sequence.


Actions I took:

I created the sequence using a min value and a max value and then set the LAST_NUMBER initially to be one greater than the highest number in the sequence.


Behavior I am seeing:

I am now seeing that the sequence appears to be attempting to fill in the gaps.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center