Step 4 - Enabling Common Redundant Mirroring Setup on SQL Server
-
Connect to the Principal server.
-
Run the contents of
Mirroring\Common\1-Mirroring - PRINCIPALDB.sql
-
Connect to the Mirror server.
-
Run the contents of
Mirroring\Common\ 2-Mirroring - MIRRORDB.sql
-
Connect to the Witness server.
-
Run the contents of
Mirroring\Common\3-Mirroring - WITNESSDB.sql
-
From the Principal server, copy the file located in
C:\principal_certificate.cer
to theC:\
directory on the Mirror server. -
From the Principal server, copy the file located in
C:\principal_certificate.cer
to theC:\
directory on the Witness Server. -
If the SQL Server version supports Transparent Database Encryption, the
1-Mirroring - PRINCIPALDB.sql
script that you ran in step 2 produced anAmcomCert.cer
file. If this file was created, copy it from the Principal server onto the Mirror and Witness server’sC:\
drive. -
Copy the
AmcomCert.pvk
file from the Principal server onto the Mirror server’sC:\
drive. -
Copy the
AmcomCert.pvk
file from the Principal server onto the Witness server’sC:\
drive.The AmcomCert.pvk file was also produced by the1-Mirroring - PRINCIPALDB.sql
script that you ran in step 2. -
From the Mirror server, copy the file located in
C:\mirror_certificate.cer
to theC:\
directory on the Principal server. -
From the Mirror server, copy the file located in
C:\mirror_certificate.cer
to theC:\
directory on the Witness server. -
From the Witness server, copy the file located in
C:\witness_certificate.cer
to theC:\
directory on the Principal server. -
From the Witness server, copy the file located in
C:\witness_certificate.cer
to theC:\
directory on the Mirror server. -
On the Principal server, run the contents of
Mirroring\Common\4-Mirroring - PRINCIPALDB.sql
. -
On the Mirror server, run the contents of
Mirroring\Common\5-Mirroring - MIRRORDB.sql
. -
On the Witness server, run the contents of
Mirroring\Common\6-Mirroring - WITNESSDB.sql
. SQL Server has been configured to use certificate-based authentication and TCP to mirror databases. For detailed information on how to set up each Spok database to use the mirroring configuration, see Enabling Each Spok Database for Redundant Mirroring on SQL Server.