SlideShare a Scribd company logo
1 of 30
Amit Bansal
CTO
eDominer Systems P Ltd |
Peopleware India
Who is Amit Bansal?
 CTO, eDominer Systems & Peopleware India
 Conducted more than 200 workshops on SQL Server &
 BI for top notch IT companies world wide
 Microsoft MVP for SQL Server
 Microsoft Certified Trainer Advisory Council member
 Speaker at TechED India, TechED US & TechED Europe
 Technical Reviewer – MSL courses on SQL Server
 SME – SQL Server 2008 certifications
 UG Lead (Delhi NCR) – Culminis
 Manager –
 www.WeTogether.in, www.DelhiDevs.com, www.BlogB
 oard.in
Agenda? --- TODO
 Intro to High-Availability/DR
 Key Terms
 Always On Technologies
    Overview, Planned / Unplanned downtime
    When to use
    Enhancements in SQL Server 2008
 Combining Technologies
 Summing it up
What is Availability?
  Availability is defined by an implicit or explicit
  application specific Service Level Agreement
  Example
    The ordering system is considered available when orders can
    complete in less than one minute. The maximum downtime
    acceptable is five minutes per month.
    Downtime = the amount of time when the SLA is not met
    Typically uptime is tracked (i.e. 99.993%), which doesn’t
    include the “planned” downtime
  The SLA should be used during
  design, deployment, and production monitoring
  phases of the application lifecycle
Intro to Disaster Recovery
 Processes and procedures designed to restore
 business operations due to a natural or human-
 induced disaster
    Typically involves providing redundancy spanning
    multiple sites or across geographic regions
Key Terms
 SLA Metrics:
    Recovery Point Objective (RPO) = data loss
      How much data can you lose?
      guided by criticality of application data
    Recovery Time Objective (RTO) = downtime
      How much downtime can you tolerate?
      guided by availability requirements


 Local High-Availability (Local HA)
 Site Disaster Recovery (Site DR)
Always On Technologies
 Unplanned Downtime
   SAN/RAID
   Backup and Restore
   Log Shipping
   Database Mirroring
   Failover Clustering
   Replication

 Planned Downtime
   Rolling Upgrades and Patching
   Online Operations
   Resource Governor
   Database Snapshots
Always On Availability Scenarios
 System Administration
   Upgrades, Index rebuilds…
 Logical Errors (User or Application)
   Incorrect data modifications, accidental changes…
 Site Disaster
   Hurricanes, fires…
 Hardware Failures
   Memory, network, disks…
 Software Failures
   Bugs
Categorizing Availability On Solutions

High Availability              Solution
Requirement
System Administration          Online management
Recovery from application or   Logical recovery
user errors
Site disaster protection       Database or storage mirroring
Database workload scale out Replication
with redundancy
Online Management
 Downtime Scenarios
   Applying a patch or upgrade
   Moving a table as part of system maintenance
   Deploying a new version of an application
   Recovering from a corrupted data file
 Always On Solutions
   Rolling Upgrades utilizing Database Mirroring, Log
   Shipping, or Replication
   Fast recovery
   Online alter table, index create, index rebuild
   Online granular restore
Categorizing Availability On Solutions

High Availability              Solution
Requirement
System Administration          Online management
Recovery from application or   Logical recovery
user errors
Site disaster protection       Database or storage mirroring
Database workload scale out Replication
with redundancy
Recovery from User or Application
Errors
 Downtime Scenarios
   A table is accidentally dropped
   An application makes incorrect updates to data
   A user possibly made unauthorized changes to data
 Always On Solutions
   View point in time snapshots of the system
     Take database snapshots at intervals
     Log ship to another site using restore delay/standby options
     Compare table to older version using tablediff utility
   Track history of DML statements
     Use SQL Trace or customized replication
Log Shipping
How it works
           Update orders
              set….


 Primary Instance                              Secondary Instance




Primary                                                               Secondary
DB                Log                         Log
                                                                      DB
                  Backup                      Restore

                                                  Transaction Log Backup
   Transaction Log Backup        Log Backup          Transaction Log Backup
                                                        Transaction Log Backup
     Transaction Log Backup
        Transaction Log Backup   Copy                       Transaction Log Backup
                                                                Transaction Log Backup
SQL Server - Database Snapshots
                            Create database “HADB Snapshot”
                            on ( filename=<files>)
                            as snapshot of “HADB”



                                               Update orders        Select from orders
                                                  set….                  where…




                                                                                           Maintains the original
                                                                               HADB           snapshot view
                                                   HADB                                      of the database
                                                                              Snapshot
                                                                                         from the time of creation
                              Database Pages
           Database Files




                                                               V2                   V1
Instance
Tablediff command line utility
 Program FilesMicrosoft SQL Server90COMtablediff.exe

Tablediff identifies the data   usage: tablediff
                                     -- Source Options --
differences between two         -sourceserver
                                -sourcedatabase
                                                                     Source Host
                                                                     Source Database
tables                          -sourceschema
                                -sourcetable
                                                                     Source Schema Name
                                                                     Source Table or View
                                -sourceuser                          Source Login
Tables must have same           -sourcepassword                      Source Password
schema but can be on            -sourcelocked                        Lock the source table/view durring tablediff

different servers                    -- Destination Options --
                                -destinationserver                   Destination Host

Use the –f option to generate -destinationdatabase
                                -destinationschema
                                                                     Destination Database
                                                                     Destination Schema Name
a SQL Server script to fix the -destinationtable
                                -destinationuser
                                                                     Destination Table or View
                                                                     Destination Login
out of sync destination version -destinationpassword
                                -destinationlocked
                                                                     Destination Password
                                                                     Lock the destination table/view durring tablediff

The diff algorithm uses an           -- Misc Options --
                                -t                                    Timeout
efficient hash technique        -c                                    Column Level Diff
                                          -f                          Generate Fix SQL (You may also specify a file name and path)
                                          -q                          Quick Row Count
                                          -et                         Specify a table to put the errors into
                                          -dt                         Drop the error table if it exists
                                          -o                          Output file
                                          -b                          Number of bytes to read for blob data types (Default 8000)
                                          -strict    Strict compare of source and destination schema
                                          -rc                         Number of retries
                                          -ri                         Retry interval
Categorizing Availability On Solutions

High Availability              Solution
Requirement
System Administration          Online management
Recovery from application or   Logical recovery
user errors
Site disaster protection       Database or storage mirroring
Database workload scale out Replication
with redundancy
Site Disaster Protection
 Downtime Scenarios
   Earthquake, fire, or flood causes datacenter outage
 Always On Solutions
   Database Mirroring to a secondary site
     Optimized solution - allows very fast failover times to the
     secondary site
     Optionally add log shipping for additional site protection
   Third party geo-clustering solutions for data center
   storage level redundancy
     Find SQL Server Always On reviewed solutions at the
     Microsoft Always On website:
     www.microsoft.com/SQL/AlwaysOn
Database Mirroring
Synchronous mode
                                                           Mirror is always
              Application         Witness                  redoing—it remains
            Commit                                         current
Principal                                   Mirror




                1           5
                                  2
              SQL Server                         SQL Server

               2      >2          4                  3     >3

                Log        Data                      Log      Data
Database Mirroring – trade offs
 Hot-standby
    + Fastest failover (best RTO)
 Synchronous
    + No data loss (RPO=0)
    - Performance impact for commit

 Limited to one mirror per database
 Performance impact increases with number of mirrored
 databases
 No read access to mirror
Automatic Page Repair in DB Mirroring
Name
Title
Company
Categorizing Availability On Solutions

High Availability              Solution
Requirement
System Administration          Online management
Recovery from application or   Logical recovery
user errors
Site disaster protection       Database or storage mirroring
Database workload scale out Replication
with redundancy
Database Scale Out with Redundancy

  Scenario
    Real time reporting on one or more secondary
    servers that can also be used for disaster recovery
    Tier of identical databases for scaling out
    applications which are partitioned by site
  Solutions
    Transactional Replication
    Peer to Peer Replication
Database Scale Out with Redundancy
 Transactional Replication                   Peer to Peer Replication
Reporting + Redundancy                      Scale Out* + Redundancy

                                                Boston


New York                                                                England




                                                                    Shanghai
New Jersey




                                                                          Tokyo
                                              Seattle




                             *Application data modifications must be
                             partitioned by site to prevent conflicts
Peer-to-Peer Replication –
Enhancements in SQL Server 2008
Combining Technologies
                                                                                         Database
 Failover Clustering                                                     Replication     Scale Out
                                            Failover Clustering
      Local server redundancy                                                            For Queries


 Database Mirroring
      Primary disaster site for databases
                                                                    Database Mirroring
                                                                                           Hot
 Log Shipping
                                                                                           Standby
      Additional disaster sites for databases
      App/user error recovery                          Production
                                                       Database
 Replication                                                           Log Shipping
                                                                                           Warm
      Database reporting
      and read scale out                                                                   Standby
      with redundancy

 Always On Partner Solutions                                        Log Shipping
                                                                    With Restore Delay     App/User
      Highest hardware reliability
                                                                                           Error
                                                                                           Recovery
Summary - Unplanned Downtime
Redundancy Stack
    Application


  Query (Logical)     • Replication



SQL Server Instance   • Failover Clustering


                      • Database Mirroring
  Log/Database        • Log Shipping
    (Physical)        • Backup and Restore


    Hardware          • SAN/RAID
© 2009 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.

More Related Content

What's hot

ABAP Open SQL & Internal Table
ABAP Open SQL & Internal TableABAP Open SQL & Internal Table
ABAP Open SQL & Internal Tablesapdocs. info
 
Oracle 12c New Features_RMAN_slides
Oracle 12c New Features_RMAN_slidesOracle 12c New Features_RMAN_slides
Oracle 12c New Features_RMAN_slidesSaiful
 
Meet HBase 1.0
Meet HBase 1.0Meet HBase 1.0
Meet HBase 1.0enissoz
 
Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013Dale McInnis
 
Meet hbase 2.0
Meet hbase 2.0Meet hbase 2.0
Meet hbase 2.0enissoz
 
Rman Presentation
Rman PresentationRman Presentation
Rman PresentationRick van Ek
 
SQL Server 2014 In-Memory Tables (XTP, Hekaton)
SQL Server 2014 In-Memory Tables (XTP, Hekaton)SQL Server 2014 In-Memory Tables (XTP, Hekaton)
SQL Server 2014 In-Memory Tables (XTP, Hekaton)Tony Rogerson
 
Oracle 12c Multi Tenant
Oracle 12c Multi TenantOracle 12c Multi Tenant
Oracle 12c Multi TenantRed Stack Tech
 
RMAN - New Features in Oracle 12c - IOUG Collaborate 2017
RMAN - New Features in Oracle 12c - IOUG Collaborate 2017RMAN - New Features in Oracle 12c - IOUG Collaborate 2017
RMAN - New Features in Oracle 12c - IOUG Collaborate 2017Andy Colvin
 
Les 10 Tune Rman
Les 10 Tune RmanLes 10 Tune Rman
Les 10 Tune Rmanvivaankumar
 
What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)Satishbabu Gunukula
 
Non-Relational Postgres
Non-Relational PostgresNon-Relational Postgres
Non-Relational PostgresEDB
 
Windows command prompt a to z
Windows command prompt a to zWindows command prompt a to z
Windows command prompt a to zSubuh Kurniawan
 
Operating and supporting HBase Clusters
Operating and supporting HBase ClustersOperating and supporting HBase Clusters
Operating and supporting HBase Clustersenissoz
 
Leveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN PerformanceLeveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN Performancebrettallison
 

What's hot (19)

ABAP Open SQL & Internal Table
ABAP Open SQL & Internal TableABAP Open SQL & Internal Table
ABAP Open SQL & Internal Table
 
Oracle 12c New Features_RMAN_slides
Oracle 12c New Features_RMAN_slidesOracle 12c New Features_RMAN_slides
Oracle 12c New Features_RMAN_slides
 
Meet HBase 1.0
Meet HBase 1.0Meet HBase 1.0
Meet HBase 1.0
 
Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013
 
Meet hbase 2.0
Meet hbase 2.0Meet hbase 2.0
Meet hbase 2.0
 
Rman Presentation
Rman PresentationRman Presentation
Rman Presentation
 
SQL Server 2014 In-Memory Tables (XTP, Hekaton)
SQL Server 2014 In-Memory Tables (XTP, Hekaton)SQL Server 2014 In-Memory Tables (XTP, Hekaton)
SQL Server 2014 In-Memory Tables (XTP, Hekaton)
 
221 Rac
221 Rac221 Rac
221 Rac
 
Oracle 12c Multi Tenant
Oracle 12c Multi TenantOracle 12c Multi Tenant
Oracle 12c Multi Tenant
 
Why virtual private catalog?
Why virtual private catalog?Why virtual private catalog?
Why virtual private catalog?
 
RMAN - New Features in Oracle 12c - IOUG Collaborate 2017
RMAN - New Features in Oracle 12c - IOUG Collaborate 2017RMAN - New Features in Oracle 12c - IOUG Collaborate 2017
RMAN - New Features in Oracle 12c - IOUG Collaborate 2017
 
Les 10 Tune Rman
Les 10 Tune RmanLes 10 Tune Rman
Les 10 Tune Rman
 
What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)
 
241 Rac
241 Rac241 Rac
241 Rac
 
Non-Relational Postgres
Non-Relational PostgresNon-Relational Postgres
Non-Relational Postgres
 
Windows command prompt a to z
Windows command prompt a to zWindows command prompt a to z
Windows command prompt a to z
 
Operating and supporting HBase Clusters
Operating and supporting HBase ClustersOperating and supporting HBase Clusters
Operating and supporting HBase Clusters
 
Sap abap tutorials
Sap abap tutorialsSap abap tutorials
Sap abap tutorials
 
Leveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN PerformanceLeveraging Open Source to Manage SAN Performance
Leveraging Open Source to Manage SAN Performance
 

Viewers also liked

Kevin Ms Web Platform
Kevin Ms Web PlatformKevin Ms Web Platform
Kevin Ms Web Platformrsnarayanan
 
HCI Consulting Inc. Corporate and Team Profile Brochure
HCI Consulting Inc. Corporate and Team Profile BrochureHCI Consulting Inc. Corporate and Team Profile Brochure
HCI Consulting Inc. Corporate and Team Profile BrochureJohn Workman O.C.T.
 
Harish Understanding Aspnet
Harish Understanding AspnetHarish Understanding Aspnet
Harish Understanding Aspnetrsnarayanan
 

Viewers also liked (6)

Kevin Ms Web Platform
Kevin Ms Web PlatformKevin Ms Web Platform
Kevin Ms Web Platform
 
Walther Mvc
Walther MvcWalther Mvc
Walther Mvc
 
HCI Consulting Inc. Corporate and Team Profile Brochure
HCI Consulting Inc. Corporate and Team Profile BrochureHCI Consulting Inc. Corporate and Team Profile Brochure
HCI Consulting Inc. Corporate and Team Profile Brochure
 
Harish Understanding Aspnet
Harish Understanding AspnetHarish Understanding Aspnet
Harish Understanding Aspnet
 
Walther Ajax4
Walther Ajax4Walther Ajax4
Walther Ajax4
 
Walther Aspnet4
Walther Aspnet4Walther Aspnet4
Walther Aspnet4
 

Similar to Admin High Availability

Introduction to Sqoop Aaron Kimball Cloudera Hadoop User Group UK
Introduction to Sqoop Aaron Kimball Cloudera Hadoop User Group UKIntroduction to Sqoop Aaron Kimball Cloudera Hadoop User Group UK
Introduction to Sqoop Aaron Kimball Cloudera Hadoop User Group UKSkills Matter
 
Spring 3 - Der dritte Frühling
Spring 3 - Der dritte FrühlingSpring 3 - Der dritte Frühling
Spring 3 - Der dritte FrühlingThorsten Kamann
 
Visualizing a Database Structure with SchemaSpy
Visualizing a Database Structure with SchemaSpyVisualizing a Database Structure with SchemaSpy
Visualizing a Database Structure with SchemaSpyGuo Albert
 
04.egovFrame Runtime Environment Workshop
04.egovFrame Runtime Environment Workshop04.egovFrame Runtime Environment Workshop
04.egovFrame Runtime Environment WorkshopChuong Nguyen
 
No sql solutions - 공개용
No sql solutions - 공개용No sql solutions - 공개용
No sql solutions - 공개용Byeongweon Moon
 
3 installation-setup-of-r3
3 installation-setup-of-r33 installation-setup-of-r3
3 installation-setup-of-r3sanganiraju
 
Hw09 Sqoop Database Import For Hadoop
Hw09   Sqoop Database Import For HadoopHw09   Sqoop Database Import For Hadoop
Hw09 Sqoop Database Import For HadoopCloudera, Inc.
 
Hadoop and Hive Development at Facebook
Hadoop and Hive Development at  FacebookHadoop and Hive Development at  Facebook
Hadoop and Hive Development at FacebookS S
 
Hadoop and Hive Development at Facebook
Hadoop and Hive Development at FacebookHadoop and Hive Development at Facebook
Hadoop and Hive Development at Facebookelliando dias
 
Spring 3 - An Introduction
Spring 3 - An IntroductionSpring 3 - An Introduction
Spring 3 - An IntroductionThorsten Kamann
 
SF Big Analytics 20190612: Building highly efficient data lakes using Apache ...
SF Big Analytics 20190612: Building highly efficient data lakes using Apache ...SF Big Analytics 20190612: Building highly efficient data lakes using Apache ...
SF Big Analytics 20190612: Building highly efficient data lakes using Apache ...Chester Chen
 
Four Things to Know About Reliable Spark Streaming with Typesafe and Databricks
Four Things to Know About Reliable Spark Streaming with Typesafe and DatabricksFour Things to Know About Reliable Spark Streaming with Typesafe and Databricks
Four Things to Know About Reliable Spark Streaming with Typesafe and DatabricksLegacy Typesafe (now Lightbend)
 
Replicate from Oracle to data warehouses and analytics
Replicate from Oracle to data warehouses and analyticsReplicate from Oracle to data warehouses and analytics
Replicate from Oracle to data warehouses and analyticsContinuent
 
Sql server 2012 - always on deep dive - bob duffy
Sql server 2012 - always on deep dive - bob duffySql server 2012 - always on deep dive - bob duffy
Sql server 2012 - always on deep dive - bob duffyAnuradha
 

Similar to Admin High Availability (20)

The Very Very Latest In Database Development - Lucas Jellema - Oracle OpenWor...
The Very Very Latest In Database Development - Lucas Jellema - Oracle OpenWor...The Very Very Latest In Database Development - Lucas Jellema - Oracle OpenWor...
The Very Very Latest In Database Development - Lucas Jellema - Oracle OpenWor...
 
Introduction to Sqoop Aaron Kimball Cloudera Hadoop User Group UK
Introduction to Sqoop Aaron Kimball Cloudera Hadoop User Group UKIntroduction to Sqoop Aaron Kimball Cloudera Hadoop User Group UK
Introduction to Sqoop Aaron Kimball Cloudera Hadoop User Group UK
 
Intro to sbt-web
Intro to sbt-webIntro to sbt-web
Intro to sbt-web
 
Spring 3 - Der dritte Frühling
Spring 3 - Der dritte FrühlingSpring 3 - Der dritte Frühling
Spring 3 - Der dritte Frühling
 
מיכאל
מיכאלמיכאל
מיכאל
 
Visualizing a Database Structure with SchemaSpy
Visualizing a Database Structure with SchemaSpyVisualizing a Database Structure with SchemaSpy
Visualizing a Database Structure with SchemaSpy
 
04.egovFrame Runtime Environment Workshop
04.egovFrame Runtime Environment Workshop04.egovFrame Runtime Environment Workshop
04.egovFrame Runtime Environment Workshop
 
ORACLE 9i
ORACLE 9iORACLE 9i
ORACLE 9i
 
No sql solutions - 공개용
No sql solutions - 공개용No sql solutions - 공개용
No sql solutions - 공개용
 
3 installation-setup-of-r3
3 installation-setup-of-r33 installation-setup-of-r3
3 installation-setup-of-r3
 
Hw09 Sqoop Database Import For Hadoop
Hw09   Sqoop Database Import For HadoopHw09   Sqoop Database Import For Hadoop
Hw09 Sqoop Database Import For Hadoop
 
Hadoop and Hive Development at Facebook
Hadoop and Hive Development at  FacebookHadoop and Hive Development at  Facebook
Hadoop and Hive Development at Facebook
 
Hadoop and Hive Development at Facebook
Hadoop and Hive Development at FacebookHadoop and Hive Development at Facebook
Hadoop and Hive Development at Facebook
 
Spring 3 - An Introduction
Spring 3 - An IntroductionSpring 3 - An Introduction
Spring 3 - An Introduction
 
Introduction to Hadoop
Introduction to HadoopIntroduction to Hadoop
Introduction to Hadoop
 
SF Big Analytics 20190612: Building highly efficient data lakes using Apache ...
SF Big Analytics 20190612: Building highly efficient data lakes using Apache ...SF Big Analytics 20190612: Building highly efficient data lakes using Apache ...
SF Big Analytics 20190612: Building highly efficient data lakes using Apache ...
 
Datastage details
Datastage detailsDatastage details
Datastage details
 
Four Things to Know About Reliable Spark Streaming with Typesafe and Databricks
Four Things to Know About Reliable Spark Streaming with Typesafe and DatabricksFour Things to Know About Reliable Spark Streaming with Typesafe and Databricks
Four Things to Know About Reliable Spark Streaming with Typesafe and Databricks
 
Replicate from Oracle to data warehouses and analytics
Replicate from Oracle to data warehouses and analyticsReplicate from Oracle to data warehouses and analytics
Replicate from Oracle to data warehouses and analytics
 
Sql server 2012 - always on deep dive - bob duffy
Sql server 2012 - always on deep dive - bob duffySql server 2012 - always on deep dive - bob duffy
Sql server 2012 - always on deep dive - bob duffy
 

More from rsnarayanan

Harish Aspnet Dynamic Data
Harish Aspnet Dynamic DataHarish Aspnet Dynamic Data
Harish Aspnet Dynamic Datarsnarayanan
 
Harish Aspnet Deployment
Harish Aspnet DeploymentHarish Aspnet Deployment
Harish Aspnet Deploymentrsnarayanan
 
Whats New In Sl3
Whats New In Sl3Whats New In Sl3
Whats New In Sl3rsnarayanan
 
Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...
Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...
Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...rsnarayanan
 
Advanced Silverlight
Advanced SilverlightAdvanced Silverlight
Advanced Silverlightrsnarayanan
 
Occasionally Connected Systems
Occasionally Connected SystemsOccasionally Connected Systems
Occasionally Connected Systemsrsnarayanan
 
Developing Php Applications Using Microsoft Software And Services
Developing Php Applications Using Microsoft Software And ServicesDeveloping Php Applications Using Microsoft Software And Services
Developing Php Applications Using Microsoft Software And Servicesrsnarayanan
 
Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...
Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...
Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...rsnarayanan
 
J Query The Write Less Do More Javascript Library
J Query   The Write Less Do More Javascript LibraryJ Query   The Write Less Do More Javascript Library
J Query The Write Less Do More Javascript Libraryrsnarayanan
 
Ms Sql Business Inteligence With My Sql
Ms Sql Business Inteligence With My SqlMs Sql Business Inteligence With My Sql
Ms Sql Business Inteligence With My Sqlrsnarayanan
 
Windows 7 For Developers
Windows 7 For DevelopersWindows 7 For Developers
Windows 7 For Developersrsnarayanan
 
What Is New In Wpf 3.5 Sp1
What Is New In Wpf 3.5 Sp1What Is New In Wpf 3.5 Sp1
What Is New In Wpf 3.5 Sp1rsnarayanan
 
Ux For Developers
Ux For DevelopersUx For Developers
Ux For Developersrsnarayanan
 
A Lap Around Internet Explorer 8
A Lap Around Internet Explorer 8A Lap Around Internet Explorer 8
A Lap Around Internet Explorer 8rsnarayanan
 
App Arch Guide (Dons)
App Arch Guide (Dons)App Arch Guide (Dons)
App Arch Guide (Dons)rsnarayanan
 
Data Access Tech Ed India
Data Access   Tech Ed IndiaData Access   Tech Ed India
Data Access Tech Ed Indiarsnarayanan
 
Federated Identity Architectures Integrating With The Cloud
Federated Identity Architectures   Integrating With The CloudFederated Identity Architectures   Integrating With The Cloud
Federated Identity Architectures Integrating With The Cloudrsnarayanan
 
Pnp Agile Tech Ed India
Pnp Agile Tech Ed IndiaPnp Agile Tech Ed India
Pnp Agile Tech Ed Indiarsnarayanan
 
Prism Tech Ed India
Prism Tech Ed IndiaPrism Tech Ed India
Prism Tech Ed Indiarsnarayanan
 

More from rsnarayanan (20)

Harish Aspnet Dynamic Data
Harish Aspnet Dynamic DataHarish Aspnet Dynamic Data
Harish Aspnet Dynamic Data
 
Harish Aspnet Deployment
Harish Aspnet DeploymentHarish Aspnet Deployment
Harish Aspnet Deployment
 
Whats New In Sl3
Whats New In Sl3Whats New In Sl3
Whats New In Sl3
 
Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...
Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...
Silverlight And .Net Ria Services – Building Lob And Business Applications Wi...
 
Advanced Silverlight
Advanced SilverlightAdvanced Silverlight
Advanced Silverlight
 
Netcf Gc
Netcf GcNetcf Gc
Netcf Gc
 
Occasionally Connected Systems
Occasionally Connected SystemsOccasionally Connected Systems
Occasionally Connected Systems
 
Developing Php Applications Using Microsoft Software And Services
Developing Php Applications Using Microsoft Software And ServicesDeveloping Php Applications Using Microsoft Software And Services
Developing Php Applications Using Microsoft Software And Services
 
Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...
Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...
Build Mission Critical Applications On The Microsoft Platform Using Eclipse J...
 
J Query The Write Less Do More Javascript Library
J Query   The Write Less Do More Javascript LibraryJ Query   The Write Less Do More Javascript Library
J Query The Write Less Do More Javascript Library
 
Ms Sql Business Inteligence With My Sql
Ms Sql Business Inteligence With My SqlMs Sql Business Inteligence With My Sql
Ms Sql Business Inteligence With My Sql
 
Windows 7 For Developers
Windows 7 For DevelopersWindows 7 For Developers
Windows 7 For Developers
 
What Is New In Wpf 3.5 Sp1
What Is New In Wpf 3.5 Sp1What Is New In Wpf 3.5 Sp1
What Is New In Wpf 3.5 Sp1
 
Ux For Developers
Ux For DevelopersUx For Developers
Ux For Developers
 
A Lap Around Internet Explorer 8
A Lap Around Internet Explorer 8A Lap Around Internet Explorer 8
A Lap Around Internet Explorer 8
 
App Arch Guide (Dons)
App Arch Guide (Dons)App Arch Guide (Dons)
App Arch Guide (Dons)
 
Data Access Tech Ed India
Data Access   Tech Ed IndiaData Access   Tech Ed India
Data Access Tech Ed India
 
Federated Identity Architectures Integrating With The Cloud
Federated Identity Architectures   Integrating With The CloudFederated Identity Architectures   Integrating With The Cloud
Federated Identity Architectures Integrating With The Cloud
 
Pnp Agile Tech Ed India
Pnp Agile Tech Ed IndiaPnp Agile Tech Ed India
Pnp Agile Tech Ed India
 
Prism Tech Ed India
Prism Tech Ed IndiaPrism Tech Ed India
Prism Tech Ed India
 

Recently uploaded

"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 

Recently uploaded (20)

"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 

Admin High Availability

  • 1.
  • 2. Amit Bansal CTO eDominer Systems P Ltd | Peopleware India
  • 3. Who is Amit Bansal? CTO, eDominer Systems & Peopleware India Conducted more than 200 workshops on SQL Server & BI for top notch IT companies world wide Microsoft MVP for SQL Server Microsoft Certified Trainer Advisory Council member Speaker at TechED India, TechED US & TechED Europe Technical Reviewer – MSL courses on SQL Server SME – SQL Server 2008 certifications UG Lead (Delhi NCR) – Culminis Manager – www.WeTogether.in, www.DelhiDevs.com, www.BlogB oard.in
  • 4. Agenda? --- TODO Intro to High-Availability/DR Key Terms Always On Technologies Overview, Planned / Unplanned downtime When to use Enhancements in SQL Server 2008 Combining Technologies Summing it up
  • 5. What is Availability? Availability is defined by an implicit or explicit application specific Service Level Agreement Example The ordering system is considered available when orders can complete in less than one minute. The maximum downtime acceptable is five minutes per month. Downtime = the amount of time when the SLA is not met Typically uptime is tracked (i.e. 99.993%), which doesn’t include the “planned” downtime The SLA should be used during design, deployment, and production monitoring phases of the application lifecycle
  • 6. Intro to Disaster Recovery Processes and procedures designed to restore business operations due to a natural or human- induced disaster Typically involves providing redundancy spanning multiple sites or across geographic regions
  • 7. Key Terms SLA Metrics: Recovery Point Objective (RPO) = data loss How much data can you lose? guided by criticality of application data Recovery Time Objective (RTO) = downtime How much downtime can you tolerate? guided by availability requirements Local High-Availability (Local HA) Site Disaster Recovery (Site DR)
  • 8. Always On Technologies Unplanned Downtime SAN/RAID Backup and Restore Log Shipping Database Mirroring Failover Clustering Replication Planned Downtime Rolling Upgrades and Patching Online Operations Resource Governor Database Snapshots
  • 9. Always On Availability Scenarios System Administration Upgrades, Index rebuilds… Logical Errors (User or Application) Incorrect data modifications, accidental changes… Site Disaster Hurricanes, fires… Hardware Failures Memory, network, disks… Software Failures Bugs
  • 10. Categorizing Availability On Solutions High Availability Solution Requirement System Administration Online management Recovery from application or Logical recovery user errors Site disaster protection Database or storage mirroring Database workload scale out Replication with redundancy
  • 11. Online Management Downtime Scenarios Applying a patch or upgrade Moving a table as part of system maintenance Deploying a new version of an application Recovering from a corrupted data file Always On Solutions Rolling Upgrades utilizing Database Mirroring, Log Shipping, or Replication Fast recovery Online alter table, index create, index rebuild Online granular restore
  • 12. Categorizing Availability On Solutions High Availability Solution Requirement System Administration Online management Recovery from application or Logical recovery user errors Site disaster protection Database or storage mirroring Database workload scale out Replication with redundancy
  • 13. Recovery from User or Application Errors Downtime Scenarios A table is accidentally dropped An application makes incorrect updates to data A user possibly made unauthorized changes to data Always On Solutions View point in time snapshots of the system Take database snapshots at intervals Log ship to another site using restore delay/standby options Compare table to older version using tablediff utility Track history of DML statements Use SQL Trace or customized replication
  • 14. Log Shipping How it works Update orders set…. Primary Instance Secondary Instance Primary Secondary DB Log Log DB Backup Restore Transaction Log Backup Transaction Log Backup Log Backup Transaction Log Backup Transaction Log Backup Transaction Log Backup Transaction Log Backup Copy Transaction Log Backup Transaction Log Backup
  • 15. SQL Server - Database Snapshots Create database “HADB Snapshot” on ( filename=<files>) as snapshot of “HADB” Update orders Select from orders set…. where… Maintains the original HADB snapshot view HADB of the database Snapshot from the time of creation Database Pages Database Files V2 V1 Instance
  • 16. Tablediff command line utility Program FilesMicrosoft SQL Server90COMtablediff.exe Tablediff identifies the data usage: tablediff -- Source Options -- differences between two -sourceserver -sourcedatabase Source Host Source Database tables -sourceschema -sourcetable Source Schema Name Source Table or View -sourceuser Source Login Tables must have same -sourcepassword Source Password schema but can be on -sourcelocked Lock the source table/view durring tablediff different servers -- Destination Options -- -destinationserver Destination Host Use the –f option to generate -destinationdatabase -destinationschema Destination Database Destination Schema Name a SQL Server script to fix the -destinationtable -destinationuser Destination Table or View Destination Login out of sync destination version -destinationpassword -destinationlocked Destination Password Lock the destination table/view durring tablediff The diff algorithm uses an -- Misc Options -- -t Timeout efficient hash technique -c Column Level Diff -f Generate Fix SQL (You may also specify a file name and path) -q Quick Row Count -et Specify a table to put the errors into -dt Drop the error table if it exists -o Output file -b Number of bytes to read for blob data types (Default 8000) -strict Strict compare of source and destination schema -rc Number of retries -ri Retry interval
  • 17. Categorizing Availability On Solutions High Availability Solution Requirement System Administration Online management Recovery from application or Logical recovery user errors Site disaster protection Database or storage mirroring Database workload scale out Replication with redundancy
  • 18. Site Disaster Protection Downtime Scenarios Earthquake, fire, or flood causes datacenter outage Always On Solutions Database Mirroring to a secondary site Optimized solution - allows very fast failover times to the secondary site Optionally add log shipping for additional site protection Third party geo-clustering solutions for data center storage level redundancy Find SQL Server Always On reviewed solutions at the Microsoft Always On website: www.microsoft.com/SQL/AlwaysOn
  • 19. Database Mirroring Synchronous mode Mirror is always Application Witness redoing—it remains Commit current Principal Mirror 1 5 2 SQL Server SQL Server 2 >2 4 3 >3 Log Data Log Data
  • 20. Database Mirroring – trade offs Hot-standby + Fastest failover (best RTO) Synchronous + No data loss (RPO=0) - Performance impact for commit Limited to one mirror per database Performance impact increases with number of mirrored databases No read access to mirror
  • 21. Automatic Page Repair in DB Mirroring Name Title Company
  • 22. Categorizing Availability On Solutions High Availability Solution Requirement System Administration Online management Recovery from application or Logical recovery user errors Site disaster protection Database or storage mirroring Database workload scale out Replication with redundancy
  • 23. Database Scale Out with Redundancy Scenario Real time reporting on one or more secondary servers that can also be used for disaster recovery Tier of identical databases for scaling out applications which are partitioned by site Solutions Transactional Replication Peer to Peer Replication
  • 24. Database Scale Out with Redundancy Transactional Replication Peer to Peer Replication Reporting + Redundancy Scale Out* + Redundancy Boston New York England Shanghai New Jersey Tokyo Seattle *Application data modifications must be partitioned by site to prevent conflicts
  • 26. Combining Technologies Database Failover Clustering Replication Scale Out Failover Clustering Local server redundancy For Queries Database Mirroring Primary disaster site for databases Database Mirroring Hot Log Shipping Standby Additional disaster sites for databases App/user error recovery Production Database Replication Log Shipping Warm Database reporting and read scale out Standby with redundancy Always On Partner Solutions Log Shipping With Restore Delay App/User Highest hardware reliability Error Recovery
  • 27. Summary - Unplanned Downtime Redundancy Stack Application Query (Logical) • Replication SQL Server Instance • Failover Clustering • Database Mirroring Log/Database • Log Shipping (Physical) • Backup and Restore Hardware • SAN/RAID
  • 28.
  • 29.
  • 30. © 2009 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.