Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Unique sequence generator with reclaim
One way would be to create a dictionary table of all possible sequence numbers
( assuming it's a finite list) and have a trigger:
We've used this model in a current production application but the number list was only from 000001 to 999999 due to certain business formatting rules. The dictionary table also grabbed user information such as who took what number when and if any number was placed back in the available pool.
There was a little hit on performance in acessing the dictionary table all of the time but with proper indexing it worked fine.
Cliff Received on Wed Dec 29 1999 - 20:30:37 CST
![]() |
![]() |