MattWoberts
Programmer
Sequence numbers have been incrementing in groups of 20 at a time. I am assuming this is because we are using a setting of 'CACHE 20'. Although this is itself shouldn't causes these increments, it may be because the application accessing the database is a web application, so I presume it is constanly making and then breaking connection with the oracle server, therefore losing the remainder of the cached sequence numbers. Can this situation be confirmed/denied? Should NOCACHE be used on a sequence number when the database is being used for a web application?
Another problem has come to light, to which we have no clues. At some stage the next sequence number has been changed so it points to a lower number. We don't know how. Now, when records are added, and we try and get the ID of this record by using a simple 'select max(ID)...' statement, it retreives the wrong record. What's more, there are constraint errors when it tries to overwrite an existing record. Any suggestions on what may have caused the sequence number to change would be useful.
Another problem has come to light, to which we have no clues. At some stage the next sequence number has been changed so it points to a lower number. We don't know how. Now, when records are added, and we try and get the ID of this record by using a simple 'select max(ID)...' statement, it retreives the wrong record. What's more, there are constraint errors when it tries to overwrite an existing record. Any suggestions on what may have caused the sequence number to change would be useful.