Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Do Sequences Have Any Disadvantages?
Chris Halioris wrote:
>
> Tom McCready wrote:
> >
> > I would like to hear when it is appropriate to use Sequences
> > and when it is not. Are there disadvantages to Sequences which
> > would force us to keep our own table of high keys, incremented
> > by one each time a record is added?
. . (stuff snipped out) .
For situations where a contiguous number is required, I think it is best to have a single-row table which is locked by the first person starting the transaction. We have this requirement much more than than .1% of all sequences!
We also had problems in our HA-CMP environment, running Oracle 7.0.16. With sequence caching turned on, the sequences got out of sync between the instances. We ended up migrating all users of the sequences onto their own instance. I'd be curious to hear how to synchronize sequences across instances in a way that does not adversely affect performance.
Drew Moll
Fairfax, VA USA
Received on Wed Feb 12 1997 - 00:00:00 CST
![]() |
![]() |