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

Home -> Community -> Mailing Lists -> Oracle-L -> Exhaused sequence

Exhaused sequence

From: Knight, Jon <jknight_at_concordefs.com>
Date: Thu, 17 Feb 2005 15:55:22 -0600
Message-ID: <17ECCBDCF27C544583F2CAD928F953260221FB1C@memex1.corp.cefs.int>


  We have a sequence that is about to reach it's maximum value (999999). Ordinarly, I would just expand the column and let it keep going, but it populates a business column. They don't care what the value is, as long as it's unique and no longer than 6 digits. Of course, like many sequence populated columns, it's not consecutive.

  I'd like to go back and fill in those "gaps" while the business users decide what they want to do. So, I'm thinking: reset the sequence to zero & create a function that calls nextval until it finds one that's available. Besides a performance hit, are there any other gotchas I'm missing? Scalability?

  Has anyone done something similar before?

Thanks,
Jon Knight

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Feb 17 2005 - 16:58:18 CST

Original text of this message

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