Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle 10 + Sun App Server 7: Unique Constraint Violation?!?
joeNOSPAM_at_BEA.com wrote on 15.11.2006 23:00:
>
> But if his external client queries for a sequence value, does
> Oracle guarantee that a given value will only be returned
> to one query?
Yes, absolutely. That's what sequences are for. Actually Oracle guarantees that
a single value from a sequence will *never* be returned twice regardless on how
many concurrent sessions or threads are calling nextval.
> If so, then it could be a client thread-safety
> issue where multiple threads are setting the same
> client variable with their (different) query values, but then
> they all use the one that is set by the slowest involved
> thread...
Sounds like a reasonable thing to test
Thomas Received on Wed Nov 15 2006 - 16:23:28 CST
![]() |
![]() |