Database Mirroring Overview
Database Mirroring Overview
Rajib Kundu
Definition
• A software solution for increasing the probability that a
database is available.
• An easy-to-manage alternative or supplement to failover
clustering or log shipping.
• Involves two copies of a single database that typically
reside on different computers.
• Only one copy of the database is currently available to
clients known as the principal database
• Updates made by clients to the principal database are
mirrored on the other copy of the database, known as
the mirror database
• For automatic failover a 3rd server is installed called the
witness
Possible configurations
• sys.database_mirroring_endpoints
The sys.database_mirroring_endpoints catalog view displays information about the database
mirroring endpoint of the server instance.
• sys.database_mirroring_witnesses
This catalog view displays the database mirroring metadata for each session in which a server
instance is the witness.
• sys.dm_db_mirroring_connections
This a dynamic management view returns a row for each database mirroring network connection.
• There are also peformance counters that can be used
• Also Notifications and events for database mirroring sessions are available in the SQL Server
Profiler.
.