My Oracle sequences seem to be auto-incrementing themselves "over time".
My row ID's are sequenced like this:
I'm using "sequencename.n extval" when inserting new rows into my tables, so one would think they'd come in a straight sequence?
Example:
They seem to be increasing properly when I insert several rows in a row (no pun intended), but if I wait say, a day or two, before inserting another row - it may have been increased by 10 or what not.
I'm using Oracle 9 and OleDB objects in C# to execute the queries.
Have anyone experienced anything like this?
Could it somehow be related to a query failing? Would "execution" of a query increase the value of the sequence despite the failure of the query?
My row ID's are sequenced like this:
Code:
1, 4, 5, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 41, etc
Example:
Code:
INSERT INTO hprequests (requestid, username, flagtype, reqstatus, workstatus, requesttitle, statuschangedby) VALUES(seqrequestid.nextval, 'username', 'flagtype', 'reqstatus', 'workstatus', 'reqtitle', 'statuschangedby')
I'm using Oracle 9 and OleDB objects in C# to execute the queries.
Have anyone experienced anything like this?
Could it somehow be related to a query failing? Would "execution" of a query increase the value of the sequence despite the failure of the query?
Comment