on 07-12-2016 2:53 PM
Use of shutdown with nowait can lead to gaps in IDENTITY column values..?
can any one explain
identity values are reserved per block and kept in memory for performance reasons
when there's a shutdown with nowait, the reserved block in memory is discarded
after the ASE is restarted, a new block is reserved
to control the block size which is reserved in memory, you can configure:
identity burning set factor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Identity gaps need to be fixed eventually.
Look for following on Rob Verschoor's website.
He also has full chapter in his book on this topic.
Book: "Tips, Tricks & Recipes for Sybase ASE"
Identity gaps - CIS&XP - UDFs - Dynamic SQL: (1), (2) - Grant SA rights - sqsh tricks -
Sybase Tips, Tricks, Tools & Documentation by Rob Verschoor
HTH
Avinash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Careful with that, the info on Rob's website applies to old versions (pre-15)
to fix identity gap in recent versions, use these set options:
set identity_update <tablename> on
set identity_insert <tablename> on
after running the set command, you can update existing identity values and insert new values
the identity_update / identity_insert commands require table owner/dbo access
This explains it - see "Brief summary of identity gap issues" in
Basically you need to set the "identity burning set factor" to a low-ish value ... but also worth looking at "identity grab size"
see
and
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.