SQL Server: Understanding, Configuring and Troubleshooting Database Mirroring

Learn how to correctly configure and use SQL Server database mirroring, including troubleshooting common problems. This course is applicable to all versions of SQL Server and is aimed at DBAs, developers, and system administrators.
Course info
Level
Intermediate
Updated
Feb 9, 2018
Duration
2h 31m
Table of contents
Course Overview
Introduction
Database Mirroring Overview
Preparing for Database Mirroring
Configuring Database Mirroring
Monitoring and Troubleshooting Database Mirroring
Migrating Data Using Database Mirroring
Description
Course info
Level
Intermediate
Updated
Feb 9, 2018
Duration
2h 31m
Description

SQL Server database mirroring is a very useful technology for high availability and disaster recovery, as well as for general purpose database movement, migration, and upgrades. In this course, SQL Server: Understanding, Configuring and Troubleshooting Database Mirroring, you'll first learn the basics of database mirroring, its capabilities, and its limitations. Next, you'll explore how to prepare an environment for database mirroring, and then how to configure database mirroring using either SQL Server Management Studio or T-SQL scripts. Then, you'll learn how to monitor a database mirroring environment and troubleshoot common problems. Finally, you'll discover how to use database mirroring for data migration and upgrading a database to a new version of SQL Server. When you've finished this course, you'll have the skills and knowledge to start configuring, using and troubleshooting database mirroring.

About the author
About the author

Glenn works as a Principal Consultant at SQLskills.com. He has been a SQL Server MVP since 2007, and he is also an Adjunct Faculty member at University College - University of Denver. He is the author of the book SQL Server Hardware (Redgate 2011), and he wrote chapters for both SQL Server MVP Deep Dives books.

More from the author
More courses by Glenn Berry
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
My name is Glenn Berry, and welcome to my course, SQL Server: Understanding, Configuring, and Troubleshooting Database Mirroring. I'm a Principal Consultant with SQLskills, and this topic is one that I feel very passionate about. In the course of my career as a database administrator and consultant, I've used SQL Server database mirroring extensively for both basic HA and DR usage and for migration and upgrade purposes. Even though database mirroring is a tried and tested technology, it is still a very useful technique to help achieve your RPO and RTO goals. I want to give you the best practices and tools that you can use to have a smooth database mirroring experience. I also want to show you how to properly configure and test your system to ensure an easy database mirroring implementation. We'll also cover how to migrate your existing data to a new system with virtually no downtime. If you work with SQL server in any capacity whatever your level, this course is relevant to you. Experience using SQL Server 2005 or newer is helpful, along with a basic understanding of how SQL Server works. I hope you'll join me as we explore the world of SQL Server database mirroring with SQL Server: Understanding, Configuring, and Troubleshooting Database Mirroring here, on Pluralsight.

Configuring Database Mirroring
Hi, my name is Glenn Berry from SQLskills. com. This course is about understanding, configuring, and troubleshooting database mirroring, and this module's about actually configuring database mirroring. So what are we going to cover in this module? We'll start off talking about the important database mirroring requirements that you have to meet before you can actually set up database mirroring, such as the fact that you have to be on SQL Server 2005 or newer, for example. Next, we'll talk about some database mirroring restrictions, such as the fact that if you're using the FILESTREAM feature in SQL Server, you cannot us database mirroring period. Next, we'll talk about what you have to actually do to prepare the mirror database for setting up your mirroring partnership, and that involves taking a full backup of the principal database and restoring it with NORECOVERY on the mirror instance and then taking at least one log backup and restoring it with NORECOVERY on the mirror instance. Next, we'll talk about how you actually go through and configure database mirroring using the built-in Database Mirroring Security Wizard that's part of SQL Server Management Studio. Then we'll go through and actually see how you set up a database mirroring partnership using just T-SQL commands. Nothing in the SQL Server Management Studio GUI is required to set up a database mirroring partnership.

Monitoring and Troubleshooting Database Mirroring
Hi, my name is Glenn Berry from SQLskills. com. This course is about understanding, configuring, and troubleshooting database mirroring, and this module is specifically about monitoring and troubleshooting database mirroring, which is a really good skill to have. So what are we going to actually cover in this module? We'll talk about the different methods that are available for monitoring database mirroring from the Database Mirroring Monitor to various stored procedures and DMVs you can look at to PerfMon counters and event notifications that you can get when certain mirroring events occur. Then we're going to talk about the different kinds of mirroring failovers you can get whether it's an automatic failover or a manual failover. Then we'll talk about some common mirroring problems you might run into. So, for example, you might have network issues, you might have issues where you're creating so much activity on the principal database that the mirror is struggling to keep up. You might have issues where you create a new database file and the path doesn't exist on the mirror instance. We're also going to talk about some mirroring troubleshooting tips, things like looking at the SQL Server error log and checking the log_reuse_wait_desc and sys. databases to understand what might be going on that's causing a mirroring issue.