This is the response from PTC Technical Support...
Regarding the case, kindly refer to the below information and the article attached.
- We do have customers who have much more data on the sequence table, e.g. as below.
That is not a problem, just means the system has big data and need big sequence ids.
Table Name rows
------------------------------------------------------- --------------------
entryNumber_seq 256541430
id_sequence 67836810
- While it is fine to truncate, just follow steps here - just change to entryNumber_seq; Refer to CS202101 and steps suggested below:
- The size of the sequence table may be causing a perf issue, but the solution here is to truncate the sequence table and reseed the sequence.
- The instructions to reseed a sequence are in CS153950;
Note: Please have a complete backup of database firstly.
The below SQL can be used to clear out the entries from id_sequence. Windchill must be stopped before running these commands:
- First, get the current identity value for the table:
- DBCC CHECKIDENT('id_sequence');
- Then, truncate the table:
- TRUNCATE TABLE id_sequence;
- The truncate command will reset the identity value, so we must reseed the table:
- DBCC CHECKIDENT('id_sequence',RESEED,<Identity value from first statement>);
Let me know if anything comes out of the above suggestions. Feel free to contact me if you have more concerns related to the issue.
So, we can truncate sequence tables. Ultimately that is what we did and our shrink operation continued forward without further issues.