Configuring database mirroring
You can use Microsoft® SQL Server® 2005 or 2008 database mirroring to configure the BlackBerry® Configuration Database or the BlackBerry MDS Integration Service database for high availability. You can configure database mirroring with or without a witness.
The BlackBerry Configuration Database and the BlackBerry MDS Integration Service database only support high safety with automatic failover (synchronous) operating mode for database mirroring.
For more information, visit http://msdn2.microsoft.com/en-us/library/ms175059(SQL.90).aspx.
Stop the BlackBerry Enterprise Server or BlackBerry MDS Integration Service instances
To maintain database integrity, you must prevent all services that use the BlackBerry® Configuration Database
or BlackBerry MDS Integration Service database
from connecting to the databases while you configure replication.
Perform any of the following actions:
Configure database mirroring for the BlackBerry Configuration Database or BlackBerry MDS Integration Service database
For more information about database mirroring, visit http://msdn2.microsoft.com/en-us/library/ms175059(SQL.90).aspx.
- In the Microsoft® SQL Server® Management Studio, change the Recovery Model property for the principal database to Full.
- In the query editor, run the -- ALTER DATABASE <BESMgmt> SET TRUSTWORTHY ON query, where <BESMgmt> is the name of the BlackBerry® Configuration Database or BlackBerry MDS Integration Service database.
- Change the Backup type option to Full and back up the principal database.
- Copy the backup files to the database server that you want to have host the mirror database.
- On the database server that will host the mirror database, restore the database. If you did not perform a full backup, specify the NO RECOVERY option.
- On the principal database, in the Database Properties window, on the Mirroring page, run the Configure Security wizard.
- Start the mirroring process.
- To verify that failover works correctly, fail over to the mirror database and back to the principal database manually.
Start the BlackBerry Enterprise Server or BlackBerry MDS Integration Service instances
After you configure the database, permit all BlackBerry® Enterprise Server or BlackBerry MDS Integration Service
instances to connect to the principal BlackBerry Configuration Database or BlackBerry MDS Integration Service database.
Perform any of the following actions:
Configure the BlackBerry Enterprise Server to support database mirroring
If you did not specify the mirror database server during the installation process, you must configure the BlackBerry® Enterprise Server
to support database mirroring.
Before you begin: The database server that hosts the mirror database must be running.
- On the computer that hosts the BlackBerry Enterprise Server, on the Start menu, click Run.
- Type regedit.
- Click OK.
- Perform one of the following actions:
- If you are running a 32-bit version of Windows, navigate to HKEY_LOCAL_MACHINE\Software\Research In Motion\BlackBerry Enterprise Server\Database.
- If you are running a 64-bit version of Windows, navigate to HKEY_LOCAL_MACHINE\Software\WOW6432Node\Research In Motion\BlackBerry Enterprise Server\Database.
- Create a String value that is named FailoverServerMachineName.
- Specify the name of the mirror database server as the value.
- In the Windows® Services, restart all of the BlackBerry Enterprise Server services.
Configure the BlackBerry Enterprise Server to fail over automatically.