Fail-over techniques in database mirroring.
There are different techniques for database mirroring.
- Automatic fail over
- Manual fail over
- Forced fail over
Automatic Fail-Over:
To test database mirroring auto fail over solution you need
to restart database engine and your Principal and Mirror servers will be
reversed but you need to set your mirroring solution as (Principal – Witness -
Mirror). You can view how we can test auto fail over solution look at this
link.
Let see changes in SSMS
Server
|
Before failover
|
After failover
|
MSSQLSERVER
|
PRINCIPAL
|
MIRROR
|
MIRROR
|
MIRROR
|
PRINCIPAL
|
Look at this screen shot. Principal and Mirror are fully synchronized.
Look at this screen shot. We are going to restart database engine to test our fail over solution.
After successful restart Principal and Mirror has been changed.
Automatic fail-Over for one database:
If you want to test over fail over for any single database then you need to go to database mirror properties and press fail-over option to set one database as auto fail-over.
Future Work:
- Manual fail-over with out Witness
- Forced fail-over
No comments:
Post a Comment