Ryan Adams Blog - Twitter MIRRORING: START TO FINISH

Similar documents
MANAGE YOUR SHOP WITH POLICY BASED MANAGEMENT & CENTRAL MANAGEMENT SERVER

Ryan Adams Blog - Twitter Thanks to our Gold Sponsors

Are AGs A Good Fit For Your Database? Doug Purnell

New England Data Camp v2.0 It is all about the data! Caregroup Healthcare System. Ayad Shammout Lead Technical DBA

UK-SQL MIRRORING AN INTRODUCTION SQL SERVER MIRRORING INFORMATION TEMPLATE

Course Outline: Designing, Optimizing, and Maintaining a Database Administrative Solution for Microsoft SQL Server 2008

Maintaining a Microsoft SQL Server 2005 Database Course 2780: Three days; Instructor-Led

Transactional Replication New Features for AlwaysOn AG in SQL Henry Weng Premier Field Engineer SQL Server & AI

High Availability- Disaster Recovery 101

SQL Server 2012 virtually out, Microsoft talks features, licensing

Index. Peter A. Carter 2016 P.A. Carter, SQL Server AlwaysOn Revealed, DOI /

Course 6231A: Maintaining a Microsoft SQL Server 2008 Database

Course 6231A: Maintaining a Microsoft SQL Server 2008 Database

High Availability- Disaster Recovery 101

SQL Server DBA Online Training

Patient C SQL Critical Care

Swiss IT Pro SQL Server 2005 High Availability Options Agenda: - Availability Options/Comparison - High Availability Demo 08 August :45-20:00

SQL Server 2014 Training. Prepared By: Qasim Nadeem

Maintaining a Microsoft SQL Server 2008 Database (Course 6231A)

HIGH-AVAILABILITY & D/R OPTIONS FOR MICROSOFT SQL SERVER

The safer, easier way to help you pass any IT exams. Exam : Administering Microsoft SQL Server 2012 Databases.

Chapter 1: Introducing SQL Server

SQL Server DBA Course Details

EXAM Administering Microsoft SQL Server 2012 Databases. Buy Full Product.

SQL Server DBA Course Content

Microsoft SQL AlwaysOn and High Availability

Performance Monitoring Always On Availability Groups. Anthony E. Nocentino

Microsoft SQL Server

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

6 Months Training Module in MS SQL SERVER 2012

Synergetics-Standard-SQL Server 2012-DBA-7 day Contents

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

Database Mirroring & Snapshots SQL Server 2008

Pro SQL Server 2008 Mirroring

Microsoft Administering Microsoft SQL Server 2012/2014 Databases. Download Full version :

EASYHA SQL SERVER V1.0

Microsoft SQL AlwaysOn and High Availability

MS SQL Server 2012 DBA Course Contents

Mobile MOUSe SQL SERVER 2005 OPTIMIZING AND MAINTAINING DATABASE SOLUTIONS ONLINE COURSE OUTLINE

Designing Database Solutions for Microsoft SQL Server (465)

DOWNLOAD PDF SQL SERVER 2012 STEP BY STEP

DocAve 6 High Availability

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

EMC DiskXtender for Windows and EMC RecoverPoint Interoperability

2788 : Designing High Availability Database Solutions Using Microsoft SQL Server 2005

Microsoft SQL Server Database Administration

Microsoft Azure Windows Server Microsoft System Center

Microsoft SQL Server" 2008 ADMINISTRATION. for ORACLE9 DBAs

DB2 for Linux, UNIX, Windows - Adv. Recovery and High Availability

DESIGNING DATABASE SOLUTIONS FOR MICROSOFT SQL SERVER CERTIFICATION QUESTIONS AND STUDY GUIDE

Implementation of Microsoft SQL Server using AlwaysOn for High Availability and Disaster Recovery without Shared Storage

SQL SERVER DBA TRAINING IN BANGALORE

Performance Monitoring AlwaysOn Availability Groups. Anthony E. Nocentino

DocAve 6 High Availability

Designing Database Solutions for Microsoft SQL Server 2012

AimBetter Database Monitor - Version

Designing, Optimizing, and Maintaining a Database Administrative Solution for Microsoft SQL Server 2008

Designing Database Solutions for Microsoft SQL Server 2012

SQL 2016 Always On High Availability

High Availability for PROS Pricing Solution Suite on SQL Server

AlwaysOn Availability Groups 2016 What is new?

Number: Passing Score: 800 Time Limit: 120 min File Version:

Designing Database Solutions for Microsoft SQL Server 2012

Database Administration for Azure SQL DB

2. Recovery models ->

Microsoft. Designing Database Solutions for Microsoft SQL Server 2012

Avoiding the Cost of Confusion: SQL Server Failover Cluster Instances versus Basic Availability Group on Standard Edition

Mssql 2005 The Database Principal Owns A. Schema In The Database And Cannot Be Dropped

MySQL Replication. Rick Golba and Stephane Combaudon April 15, 2015

IT Service Delivery and Support Week Three. IT Auditing and Cyber Security Fall 2016 Instructor: Liang Yao

Veritas NetBackup for Microsoft SQL Server Administrator's Guide

70-459: Transition Your MCITP: Database Administrator 2008 or MCITP: Database Developer 2008 to MCSE: Data Platform

Manually Create Distribution Database Sql Server Replication

Activant Solutions Inc. SQL 2005: Server Management

Persistence Is Futile- Implementing Delayed Durability in SQL Server

Troubleshooting Always On Availability Groups Performance

Defining a Service Level Agreement (SLA)

2072 : Administering a Microsoft SQL Server 2000 Database

Looking Into the New and Improved Functionality of SQL 2008

Microsoft SQL Server HA and DR with DVX

Administering Microsoft SQL 2012 Database

What can you do with SQL Server on Linux?

Multiple Target PPRC with IBM DS8870 Session 17839

Seven Awesome SQL Server Features

质量更高服务更好 半年免费升级服务.

Vendor: Microsoft. Exam Code: Exam Name: Administering Microsoft SQL Server 2012 Databases. Version: Demo

Microsoft SQL Server Fix Pack 15. Reference IBM

CONFIGURING SQL SERVER FOR PERFORMANCE LIKE A MICROSOFT CERTIFIED MASTER

Floating on a Hybrid Cloud: SQL Server 2014 & Microsoft Azure Timothy P. McAliley Microsoft Premier Field Engineer SQL Server May 8, 2014

Manually Run The Synchronization Replication Sql Server 2005 Delete

Vendor: Microsoft. Exam Code: Exam Name: PRO:MS SQL Serv 08,Design,Optimize, and Maintain DB Admin Solu. Version: Demo

VMware admins: Can your DR do this?

SQL AlwaysOn - Skype for Business

Get the Skinny on Minimally Logged Operations

80425: Intelligent Data Management Framework in Microsoft Dynamics AX 2012

BI, Big Data, Mission Critical. Eduardo Rivadeneira Specialist Sales Manager

Drop Failed For User Principal Owns A Schema

Accelerate SQL Server 2012 AlwaysOn Availability Groups Deployment on NetApp Storage

ZDLRA High Availability for Backup and Recovery

Manual Trigger Sql Server 2008 Insert Multiple Rows

Transcription:

Ryan Adams Blog - http://ryanjadams.com Twitter - @ryanjadams Email ryan@ryanjadams.com MIRRORING: START TO FINISH

Objectives Define Mirroring Describe how mirroring fits into HA and DR Terminology The Rules What s new in 2008 mirroring? Demo How to configure mirroring Other Considerations Demo - Monitoring Mirroring

What is mirroring?

What is the difference between HA and DR? Which business requirement does mirroring solve?

What are my other HA/DR Options? Clustering HA only until server 2008 Transactional Replication HA & DR Peer to Peer Replication HA & DR Think Mesh topology or AD replication Log Shipping HA & DR Backups - DR

Terminology

Principal Mirror Witness Endpoint Session State 5 states Mode 3 modes

Session States Synchronizing Synchronized Suspended Pending Failover Disconnected

Modes High Safety with Automatic Failover High Safety without Automatic Failover High Performance

The Rules

Rules You cannot mirror any system DBs High Performance requires Enterprise Edition Witness can be any edition including workgroup, web, and express Automatic failover requires a witness DB must be in full recovery mode You cannot mirror a DB that uses Filestream Maintenance plans do not support mirroring until SQL 2005 SP2 CU10 Avoid local system for SQL service account Database compatibility level must be greater than 90 (SQL 2005) Peer to Peer Replication cannot be used in conjunction with mirroring.

What s new for mirroring in SQL 2008 1 Log Stream Compression 2 3 4 Automatic Page Recovery Better use of log stream buffers Additional performance counters

How it Works

Synchronous Mode Principal Transaction Inserted in Log Transaction Read from Log Transaction Shipped to Mirror Mirror Transaction Written to Log Acknowledgement Sent to Principal Transaction Committed Principal Acknowledgement Received Transaction Committed

Asynchronous Mode Principal Mirror Transaction Inserted in Log Transaction Read from Log Transaction Committed Transaction Shipped to Mirror Transaction Written to Log Acknowledgement Sent to Principal Transaction Committed Principal Acknowledgement Received

Configuration Steps Restore DB and Log Backup on Mirror with no recovery Create Mirroring Endpoints Create Logins for SQL Service Account Grant Connect on Endpoints to Logins Set Principal Partner on Mirror Set Mirror Partner on Principal Set Failover Timeout

DEMO GUI T-SQL

Comparison Mirroring Log Shipping DB replicated to one other instance Transactions shipped real time Mirror DB not available for queries (Snapshot) Data is compressed over the wire Automatic page recovery DB replicated to many other instances Transactions shipped on a schedule Secondary DB available for queries Only compressed if log backups are compressed No page recovery

Other Considerations

Is Your Mirror Server Prepared? Logins SQLAgent Jobs SSIS Packages Linked Servers Database Level Options Change owner on mirror Set Trustworthy option on mirror Instance Level Options Enable CLR Database Mail Extended SPs like xp_cmdshell

Monitoring

Mirror Monitoring Where is the data stored msdb.dbo.dbm_monitor_data Performance Counter Root Location SQLServer:Database Mirroring MSSQL$InstanceName:Database Mirroring How to view the data Database Mirroring Monitor System Stored Procedures Sp_dbmmonitorresults Sp_dbmmonitorchangealert Sp_dbmmonitorhelpalert Sp_dbmmonitordropalert Perfmon

Demo

Summary Mirroring Defined Business Requirements Defined Terminology Defined Rules Defined Configuration Steps Monitoring

Resources Pro SQL Server 2008 Mirroring Robert Davis Twitter - @SQLSoldier Web - http://www.sqlsoldier.com/ Ken Simmons Twitter @KenSimmons Web CyberSQL.blogspot.com Ryan Adams Copy Logins Script http://www.ryanjadams.com/2010/09/automate-sql-logins-to-dr-site/ Slides and Code http://www.ryanjadams.com/presentations Ryan Adams Blog - http://ryanjadams.com Twitter - @ryanjadams Email ryan@ryanjadams.com QUESTIONS?