How can the InstanceID be determined and set for a copied Instance

adamski
Kilo Explorer

We are creating a new on-premise ServiceNow Instance by copying an existing instance. How do we determine (and set) a new InstanceId for the copy, so that the InstanceId is different from the original?

2 REPLIES 2

wynbert
ServiceNow Employee
ServiceNow Employee

The steps that you need to follow is described in the knowledge base article about ServiceNow Self-Hosted cloning procedure.



https://hi.service-now.com/kb_view.do?sysparm_article=KB0563843



Essentially, what you will be doing is restoring the backup copy of your existence instance to your new instance (Target). After the database import is completed, you will need to modify certain properties on the target.



To set the new InstanceID you will need to get the target instance information from within the instance by navigating to System Diagnostics > Stats and noting the information provided.



Connected to cluster node : <server name>:<instance-port>


Instance name: <instance-name>


Instance ID: <32-character string>



Hope this information help and for more resources you can refer to knowledge base for self-hosted instance by going HI > Self-service > Knowledge > Self-Hosted. The above extract is for MySQL deployments, if you are using Oracle DB you will need to refer to Cloning Oracle DB article:



https://hi.service-now.com/kb_view.do?sysparm_article=KB0563847


Thanks. This works where you have a target InstanceId before your clone. However, in our situation, the target system was originally created as a standby database of the source, and so has the same InstanceId as the source. The standby link has now been removed, but we don't have a separate InstanceId to use. Is there a way to get one?