Oracle Sequence nextval is jumping number back and forth

前端 未结 2 1187
北海茫月
北海茫月 2020-12-30 08:54

I created a new table and a new sequence, I have two C# web services trying to insert records into this table using same query utilizing mySequence.nextval (and

2条回答
  •  长发绾君心
    2020-12-30 09:56

    From the docs...

    Sequence numbers are generated independently of tables, so the same sequence can be used for one or for multiple tables. It is possible that individual sequence numbers will appear to be skipped, because they were generated and used in a transaction that ultimately rolled back. Additionally, a single user may not realize that other users are drawing from the same sequence.

    http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_6015.htm#SQLRF01314

提交回复
热议问题