How to change the range of Unique IDs

<< Click to Display Table of Contents >>

Navigation:  Advanced Features > Remote Access Mode >

How to change the range of Unique IDs

How to change the range of Unique IDs

This is an example document of changing the "UNIQUE_ID" value of an established MechworksPDM database that is about to participate within an already established DISTRIBUTED_SITE database configuration. Throughout this example, the goal is to convert everything:

< 100000000

to 800000000

images_uids1

The above figure represents the default settings. By default, MechworksPDM established an Identity Seed and an Identity. The Identity Seed should be updated to ensure that the system does-not accidentally reuse existing values. The Identity needs to be temporarily changed.

images_uids2

Temporarily change the Identity before making any other changes.

images_uids3

This is an example query to locate all of the records with a UNIQUE_ID < 100000000.

images_uids4

To increase each UNIQUE_ID (located within the DOCUMENT table) by a set value, reference the above figure.

images_uids5

This is an example query to locate all of the records with a UNIQUE_ID > 800000000. Its row-count should be equivalent to the earlier query.

images_uids6

The results of the query clearly note the updated UNIQUE_ID value.

images_uids7

Please make sure that the Identity and the Identity Seed are properly reset and/or modified.
NOTE: Special attention should be given to the Identity Seed value.

images_uids8

Continuing on, changes must be made to the REVISIONS table. Start by locating all of the related documents.

images_uids9

To increase each DOCUMENT_UNIQUE_ID (located within the REVISIONS table) by a set value, reference the above figure.

images_uids10

Validating the results, displays the line-count as well as the new values for the DOCUMENT_UNIQUE_ID.

images_uids11

Continuing on, changes must be made to the PARENT_CHILD table. Start by locating all of the related documents.

images_uids12

To increase each PARENT_UNIQUE_ID (located within the PARENT_CHILD table) by a set value, reference the above figure.

images_uids13

Validating the results, displays the line-count as well as the new values for the PARENT_UNIQUE_ID.

images_uids14

Because the PARENT_CHILD table has two fields being affected by this type of modification, continue by modifying the CHILD_UNIQUE_ID value.

images_uids15

To increase each CHILD_UNIQUE_ID (located within the PARENT_CHILD table) by a set value, reference the above figure.

images_uids16

Validating the results, displays the line-count as well as the new values for the PARENT_CHILD field.