Create and configure the mirror database
To maintain database
integrity while you create and configure the mirror database, stop the
BlackBerry UEM
services on
every computer that hosts a BlackBerry UEM
instance.- InMicrosoft SQL Server Management Studio, browse to the principal database.
- Change theRecovery Modelproperty toFULL.
- In the query editor, run the-- ALTER DATABASEquery, where<BUEM_db>SET TRUSTWORTHY ON<BUEM_db>is the name of the principal database.
- Back up the principal database. Change theBackup typeoption toFull.
- Copy the backup files to the mirror server.
- On the mirror server, restore the database to create the mirror database. When you restore the database, select theNO RECOVERYoption.
- Verify that the name of the mirror database matches the name of the principal database.
- On the principal server, inMicrosoft SQL Server Management Studio, right-click the principal database and select theMirrortask. On theMirroringpage, clickConfigure Securityto launch the Configure Database Mirroring Security wizard.
- Start the mirroring process. For more information, see Setting Up Database Mirroring – SQL Server 2012 or Setting Up Database Mirroring – SQL Server 2014.
- To enable automatic failover, add a witness to the mirroring session. For more information, see Database Mirroring Witness – SQL Server 2012 or Database Mirroring Witness – SQL Server 2014.
- To verify that failover works correctly, manually fail over service to the mirror database and back to the principal database.
- Restart theBlackBerry UEMservices on every computer that hosts aBlackBerry UEMinstance. Do not stop and start theBlackBerry UEM-BlackBerry Work Connect Notification Service; this service is automatically restarted when you restart theBlackBerry UEM-BlackBerry Affinity Managerservice.