Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: application seq. no. definition without commit (C/S env).
> Using application seq. no. definition without commit (C/S env).
>
> In an application which defines seq. numbers (not ORACLE SEQ.),
> at multiple levels within the application, in an Oracle table,
> in the same D.B. as other application data,
> how is it possible to increment the seq. no. by multiple tasks
> simultaneously within the application without COMMIT??
>
you should use an oracle sequence because this is the purpose they are made for: providing unique numbers in an multi tasking / - user environment. every
SELECT MYSEQUENCE.NEXTVAL FROM DUAL increments your sequence BEFORE a commit! (in fact there is no way to rollback a sequence)
olaf naumann Received on Fri Jan 02 1998 - 00:00:00 CST