Migrating the Databases to a New Server
- Last updated
-
-
Save as PDF
The process of migrating the databases to a new server is supported by the Configuration Wizard.
Shut Down the Application
Before you start the migration process, shut down the application to avoid data loss. To shut down the application, perform the following steps:
- Stop the following Windows services:
- Matrix42 Scheduler
- Matrix42 Workers
For the versions earlier than 12.1.0, consider also the following services:
- Matrix42 Host Common
- Matrix42 Host Common X86
- AppFabric Workflow Management Service (skip for environments that run on Matrix42 Worker only)
- AppFabric Event Collection Service (skip for environments that run on Matrix42 Worker only)
- Stop Internet Information Services (IIS)
Back Up the Databases
Perform a full backup of the following databases:
- Main Database (by default M42Production)
- History Database (by default M42Archive)
- Warehouse Database (by default M42Warehouse)
- Workflow Instance Store (by default M42InstanceStore)
For more information about the databases that are used, see How to Determine Which Databases are Used by DWP Installation.
Restore the Databases
Restore the following databases on the new environment:
- Main Database (by default M42Production)
- History Database (by default M42Archive)
- Warehouse Database (by default M42Warehouse)
- Workflow Instance Store (by default M42InstanceStore)
Change the Application Configuration
To reconfigure the Database Server, perform the following steps:
- Run Configuration Wizard.
- Click Change Configuration → Change Database Server.
- Specify New Configuration for the Database Server.
- Click Next to apply the configuration.
You can also reconfigure the Database Server manually. In this case, you should adjust all connection strings that are defined in How to Determine Which Databases are Used.
Open the <INSTALL DIR>/bin/sps.config
file in any text editor and make sure that the settings are correct:
<Matrix42.ServiceLayer
...
servicesHost="localhost"
discoveryHostName="<FQCN>"
appFabricAdminGroup="<DOMAIN>\AS_Administrators".
...
/>
- servicesHost: equal to "localhost". Starting from DWP v.12.1.1 servicesHost setting was moved from SPS.config file to the PDRDwpConfigurationClass database table (see Advanced System Settings, Matrix42.ServiceLayer-servicesHost Key and Value columns).
- discoveryHostName: fully qualified computer name or domain name that is used to access the Digital Workspace Platform Console. This name should match the SSL certificate of the IIS website on which DWP is installed.
- appFabricAdminGroup: Domain group that is used to access the Workflow Monitoring database and the Instance Store database (this configuration is removed for environments that run on Matrix42 Worker only).
Matrix42 Workers are external processes that constantly stay in touch with Application Server. Suppose the Application has been relocated to another server. In that case, the configuration of all related Workers needs to be adjusted to reference the DNS of a new Server and Access Token need to be re-encrypted with a new machine key.
Set Server Name
Open <Worker_Install_Dir>/Core/Matrix42.Worker.Host.exe.config
file in a text editor and change the "ServerName" setting to a new value:
<add key="ServerName" value="<New Server DNS>" />
Update to a new SQL server version
There are 2 main scenarios when you update your SQL Server to a new version. Either you update to a SQL version that is still supported by your installed product version or you update to a SQL version that is no longer supported by your product version. In the second case, you have to update your product immediately after you updated your SQL server.
- Update to a supported SQL Server version
Perform the same steps as described above. If you directly update your SQL server without moving the databases, you don't need to change the application in any way.
- Update to an unsupported SQL Server version and update the application
For example, SQL 2008R2 → SQL 2017, 8.1.7 → 9.0.2
- Migrate the Databases to a new SQL Server
Perform the same migration steps as described above. Directly after you change the configuration with the Configuration Wizard, update the application to the new version that supports the newer SQL server version.
- Update the SQL server to an unsupported SQL Server version
Shut down the application, update the SQL server, and update the application immediately after the switch to the new SQL server version. If the update asks you to start some services to proceed, simply start them.
The configuration wizard will not check the SQL server version when you switch to the new database server, but you should not use the application with an unsupported SQL server version!