Vinod Kumar Technology Evangelist | Microsoft

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Identity Management - Login © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Feature: Reprint Outstanding Transactions Report © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Feature: Payroll and HR Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Keith Burns Microsoft UK Mission Critical Database.
Co- location Mass Market Managed Hosting ISV Hosting.
Windows 7 Training. Windows ® 7 Compatibility Installer Detection.
Feature: Purchase Order Prepayments II © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: OLE Notes Migration Utility
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Building Highly Available Systems with SQL Server™ 2005 Vineet Gupta Evangelist – Data and Integration Microsoft Corp.
Feature: SmartList Usability Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
High-Availability Methods Lesson 25. Skills Matrix.
Stephan Hurni Consultant Trivadis AG, SQL Server notes from the field.
 Rico Mariani Architect Microsoft Corporation.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
WinHEC /22/2017 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Connect with life Connect with life
Rajib Kundu Agenda Definitions Failover Cluster Database Snapshots Log shipping Database Mirroring.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Suggested Item Enhancements – Sales Script and Additional Information © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: Employee Self Service Timecard Entry © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”

customer.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Connect with life Vinod Kumar Technology Evangelist - Microsoft
demo Demo.
Feature: Void Historical/Open Transaction Updates © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Feature: Suggested Item Enhancements – Analysis and Assignment © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and.
Windows Azure SQL Data Sync Name Title Microsoft Corporation.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
The CLR CoreCLRCoreCLR © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Course Topics Administering SQL Server 2012 Jump Start 01 | Install and Configure SQL Server04 | Manage Data 02 | Maintain Instances and Databases05 |
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Sr. Dir. – Systems Architecture Inlet Technologies.
Your Data Any Place, Any Time Always On Technologies.
Praveen Srivatsa Director| AstrhaSoft Consulting blogs.asthrasoft.com/praveens |

Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
A Technical Overview of Microsoft® SQL Server™ 2005 High Availability Beta 2 Matthew Stephen IT Pro Evangelist (SQL Server)
Required 9s and data protection: introduction to sql server 2012 alwayson, new high availability solution Santosh Balasubramanian Senior Program Manager.
Возможности Excel 2010, о которых следует знать
Microsoft Azure P wer Lunch
Your Data Any Place, Any Time
Disaster Recovery as a Service
Title of Presentation 12/2/2018 3:48 PM
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
日本初公開!? Vista の新機能を実演 とっちゃん わんくま同盟 7/23/2019 9:09 AM
Presentation transcript:

Vinod Kumar Technology Evangelist | Microsoft

Agenda Definitions Disaster Recovery Planning Database Snapshots Log shipping Database Mirroring What to do when system databases crash Rebuilding System Databases

Definitions For clarity, we’ll use the following definitions today: Disaster: an event that results in serious loss of data or service Disaster Recovery: A process that allows continuation of business following a disaster, including manual methods Offsite Disaster Recovery: A process that allows disaster recovery at a remote location (usually entire site) Business Continuity: A process that includes disaster recovery and offsite disaster recovery as well as using systems to avert disasters, such as fault- tolerant hardware and software

Definitions As per “Disaster recovery planning is the work that is devoted to preparing all the actions that must occur in response to a disaster. The planning includes the selection of a strategy to help recover valuable data. The selection of the appropriate disaster recovery strategy depends on your business requirements.”

Type of disasters Natural Disasters: Tsunami, Katrina, Rita, etc Fire Power outage/failure Organized disruptions Theft System failures Legal issues Wars Strikes Human error Viruses, etc.

Disaster Recovery Drivers Symantec Annual IT Survey Results Published in IT News 9/9/2008 – Symantec Annual IT Survey

Prepare a DRP document Include every possible information: System architecture (How the system/application works) How many systems are involved and what their names are. Their IP Addresses, drive information, file locations Software installed, Contact information of DBA’s, or other key people. Know your SLAs and choose appropriate technology.

Prepare a DRP document(cont.) Include every possible information… Step by step guide on how to recover each of your system based on different disaster scenarios (Including timelines for recovery) Make sure you discuss DRP guide with all the parties involved. Security information, jobs/schedule information, etc. Make it a reminder for yourself that any system changes should be updated in this guide. Test, test and test!!!

Database Snapshots Read-only, consistent view of a database Specified point-in-time Modifying data Copy-on-write of affected pages Reading data Accesses snapshot if data has changed Redirected to original database otherwise 12:00 Snapshot Page

Database snapshot 1. Recovering modified data 2. Recovering dropped object 3. Restoring from Snapshot

Log Shipping An automated method of maintaining a warm standby server Based on SQL Server's backup and restore architecture. Uses the transaction log to track changes Relatively low-tech and inexpensive ‘Ships' (copies and restores) a production server's transaction logs to a standby server

Log Shipping (Key terms) Primary Server: Contains your primary database. SQL Server Agent makes periodic transaction log backups to capture changes. Secondary Server Contain an unrecovered copy of the production database. One standby server can contain standby databases from multiple primary servers.

Log Shipping (Key terms) cont… Monitor Server (Optional) Monitors the status of the log-shipping jobs on the primary and each standby server. One monitoring server can monitor multiple primary-standby server pairs. Should use a server other than the primary or the standby to detect problems on either server.

Log Shipping

Database Mirroring Newly introduced with SQL Server Maintains a copy of the principal database as a mirror. Transfers log records from principal to mirror server instance. Works with all hardware that supports SQL Server Automatic client redirection (using.NET 2.0) Can have a third optional server called Witness server for Auto Failover.

Database Mirroring -Synchronous Commit Write to local log Transmit to mirror Write to remote log Log Acknowledge Committed in log Constantly redoing on mirror Acknowledge DB DB Log

Database Mirroring Enhancements Enhancements in SQL 2008 Compression of stream data for which at least a 12.5 percent compression ratio can be achieved. Automatic Recovery from Corrupted Pages. Page read-ahead during the undo phase. Improved use of log send buffers.

Database Mirroring Automatic Failover Auto page repair (SQL 2008)

Rebuilding System Databases SQL 2000 Use RebuildM.exe (UI based) Need setup media for Database files SQL 2005 Use Setup.exe (Command Prompt based) Need setup media for setup.exe and database files. SQL 2008 Use Setup.exe (Command Prompt based) Setup media not required. Files copied during initial installation. Will not Rebuild Resource database.

Rebuilding System Databases Setup.exe file located under %Program Files%\Microsoft SQL Server\100\Setup Bootstrap\Release Database Files used by setup are located under %Program Files%\Microsoft SQL Server\MSSQL10. \MSS QL\Binn\Templates Files Missing? Copy from setup media Apply service packs/patches after rebuilding

System databases disaster Master database loss SQL Server won’t start Rebuild system databases Start SQL in single user mode and restore master Msdb database loss SQL Agent won’t start. Restore msdb Model database loss SQL Server won’t start. Rebuild system databases Restore master, msdb and model

Best Practices Backup your system databases after modifications. Test if backups are restorable. Practice / Test your disaster recovery plans. Documentation is not only for you. Keep dedicated DR Server ready. Use BACKUP CHECKSUM features. Run DBCC CHECKDB regularly. Don’t ignore any runtime errors.

Summary Murphy’s Law on Disaster… If there is a possibility of several things going wrong, the one that will cause the most damage will be the one to go wrong. If you fail to plan, you are planning to fail. Off-site backups always help. Auto page repair is a band-aid.

References SQL Server Books online Planning for SQL Disaster Recovery Database Mirroring Whitepaper mirror.mspx

© 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.