Database Mirroring: Maximizing Availability Through Automation

Slides:



Advertisements
Similar presentations
SQL Server Disaster Recovery Chris Shaw Sr. SQL Server DBA, Xtivia Inc.
Advertisements

Utility Database Chris
National Manager Database Services
Welcome. Who am I? Philip L. Sullivan MCT, MCSE, MCSA Microsoft Certified Trainer for 6 Years Work as a Lead Windows NT\2000\2003 Instructor for Clark.
GPUG ® Summit 2011 November 8-11 Caesars Palace – Las Vegas, NV The Accidental GP Administrator John Lowther.
Replication Magic: Initializing From Backup Robert L Davis.
Database Mirroring: Maximizing Availability Through Automation Robert L Davis.
Alwayson Availability Groups
Rob Sewell Making PowerShell Useful Real-Life Examples of Powershell in Action Slides available here -
Putting Your Head in the Cloud Working with SQL Azure David Postlethwaite 19/09/2015David Postlethwaite.
SQL Server High Availability Introduction to SQL Server high availability solutions.
William Durkin A Gourmet Menu of SQL Server High Availability Options.
SQL Server Agent All the Knobs You Need to Know Taiob M Ali.
Step Up to Control-M 9 Upgrading & AMIGO
Overview of E-Learning Authoring Software
Reporting Services 2012 Data Alerts
Securing SQL Server Processes with Certificates
Migrating SQL Server Quickly and Efficiently
SQL Server Agent All the Knobs You Need to Know
Stress Free Deployments with Octopus Deploy
Discovering Use Cases.
# 66.
Visual Studio Database Tools (aka SQL Server Data Tools)
Architecting Availability Groups
A digital reference guide for database administrators
Navigating the options for Data Redundancy
Establishing a Service Level Agreement SLA
Policy Based Management: Introduction & implementation
What, When, Why, Where and How SCC maintains your Oracle database
PowerShell is Happening FOR REAL THIS TIME!!!
Disaster Recovery and SQL for new and non-DBAs
SQL Saturday Pittsburgh
The Case of the Limitless DBA
A digital reference guide for database administrators
Troubleshooting Service Broker
How to Lose Your Job in 3 Easy Steps
Making PowerShell Useful
Architecting Availability Groups
Why most candidates fail the interview in the first five minutes
Making PowerShell Useful
Making Your Emergency Toolkit
Summer Engineering Academies
RPO, RTO & SLA: 3 Letter Words for When the SHT hits the FAN
Resilience Programme For year OLDS
Why most candidates fail the interview in the first minute
SQLCmd Mode The T-SQL Easy Button
SQL Server Agent The Life Preserver for the Drowning DBA Lance Tidwell.
How to Perform A Health Check By Edward Roepe Perimeter DBA, LLC
Making PowerShell Useful
Making PowerShell Useful
Delivering Business Value Faster
Your code is not just…your code
Start Your Own Consulting Practice
Moving from SQL Profiler to xEvents
Disaster Recovery is everyone’s job!
Why most candidates fail the interview in the first five minutes
Delivering Business Value Faster
Summit Nashville /3/2019 1:48 AM
Thank you Sponsors.
System Start-Up and Shutdown
Physics POL (Make a creative title)
SSDT, Docker, and (Azure) DevOps
5th Sunday of Lent John 12:20-33.
Capitalize on Your Business’s Technology
SSDT, Docker, and (Azure) DevOps
The Future of Database Development
SQL AlwaysOn Availability Groups
SSDT, Docker, and (Azure) DevOps
Your code is not just…your code
SQL Server on Containers
Presentation transcript:

Database Mirroring: Maximizing Availability Through Automation Robert L Davis

Who am I? DBA on the CAP Operations Team Worked as a database developer/administrator since 2000 Been at Microsoft for 2 ½ years as a vendor and now as an FTE Co-author of Pro SQL Server 2008 Database Mirroring (Oct. 2009) Blog: http://www.sqlservercentral.com/blogs/robert_davis

Automation How can automation help me maximize availability of my mirrored databases? When a controlled failover occurs, a short outage occurs. The longer it takes for the failover to occur, the longer your outage is. Manual intervention is prone to errors and missed steps. T-SQL never feels stress when others are panicking. You don’t need to be a Subject Matter Expert to run a script or procedure. Common pitfalls that you may potentially have to deal with can be built in to the scripts or procedures.

Demo Scenario Your principal server is on the verge of failing and needs a Windows hotfix installed immediately. Your supervisor wants you to fail over the mirrored databases. Since this is an unplanned, unauthorized downtime, you must do it as quickly as possible. Demo 1: There is no automation in place. You are not the SME for database mirroring. Your knowledge of how to fail over a database is limited to using the SSMS GUI. Demo 2: There is no automation in place. You are not the SME for database mirroring, but you are well read on the subject and eager to put what you know to work. Demo 3: You are the SME for database mirroring. You knew something like this would happen. You have planned for this, and you have put automation procedures in to place and have tested them during monthly patching, Service Pack upgrades, and other events.

Demo Scenario …… To make matters worse, your supervisor is standing in front of your desk repeatedly emphasizing how important it is to do it quickly and staring at you like he expects you to mess things up. And Tom, the new Jr. DBA they just hired, is standing just outside the doorway listening for you to mess things up so he can “save the day” and get the promotion that you are expecting to get.

Conclusion Without a doubt, the automated failover process is faster and accounted for potential problems after failover that the manual processes did not. In Demo 1, Tom “saved the day”. Your supervisor is happy … that Tom just happened to be in the right place at the right time. In Demo 2, Tom didn’t get to save the day during the failover, but he later identified why the application was failing and ended up the hero anyway. In Demo 3, your supervisor was delighted with how fast things went. He looked at Tom lurking in the doorway and barked at him to get back to work. You were the hero.

Database Mirroring: Maximizing Availability Through Automation Q&A

Database Mirroring: Maximizing Availability Through Automation Thank You! The PowerPoint slide-deck and the stored procedures will be posted on my blog this weekend. http://www.sqlservercentral.com/blogs/robert_davis