Database Mirroring for DPM 2007
In this article I will demonstrate how to setup mirroring for the AdvenrureWorks Database in order to be protected using DPM 2007 SP1
Environment setup:
- DC1 is our domain Controller IP: 192.168.2.3
- SQL1 is the principal Database server , with SQL 2008 IP:192.168.2.5
- SQL2 is the mirror Database Server, With SQL 2008 IP:192.168.2.6
- DPM is the DPM server with DPM 2007 SP1 IP:192.168.2.4
- Only for the Demo Purpose , I installed SQL server 2008 Express on the Domain controller to be the witness for the mirroring.
Prepare the AdventureWorks for Mirroring:
- you need to confirm that the recovery mode of the database is FULL to do so follow these steps.
- on SQL1 select thee AdventureWorks Database
- Right click and select Properties.
- in the left hand side menu select Options.
- in the recovery model option make sure that the Full mode is selected
- Click OK.
- you will now need to make a backup of the database. Make sure it is a Full backup and for convenience, make sure that you are not using the Append option so that the BAK file to do so follow these steps.
- Select the AdventureWorks Database.
- Right Click and select tasks, then Back up…
- click on the Add button and select the where to save the bak file.
- Click on the Options in the left hand side
- in the Overwrite media , chose Overwrite all existing backup sets.
- in the Ratability select Verify backup when finished.
- Click OK

- On SQL 2 the Mirror server, you need to restore the backup of the database that you just made. to do so follow these steps.
- Right click on Databases and select Restore Database …
- in the to database type AdventureWorks.
- in the Source to restore select From device and browse for the AdventureWorks.bak file
- in the select the backup sets to restore check the restore box.
- click on the option in the left hand side
- in the Recovery state : select Leave the database non-operational …..
- Click ok
- Back to SQL1 (Principal Server)we will begin the mirroring setup.
- Right click on AdventureWorks database.
- Select Mirroring
- Click on the Configure Security
- in the configure Databases Mirroring Security Wizard click next
- for the demo purpose we are not going to configure a witness we will do the failover manually
- choose no
- in the principal server instance choose SQL1
- leave the Endpoint name with the mirroring as a name, then click next
- Mirroring server instance type sql2
- in the next win doe type the SQL user that has access to the databases
- Voila connect start mirroring.
In an upcoming blog, I will cover the protection of a mirrored database using DPM 2007 SP1
lslam Gomaa