SlideShare ist ein Scribd-Unternehmen logo
1 von 56
Downloaden Sie, um offline zu lesen
Database Mirroring & Snapshots
      SQL Server 2008

                                                DB Architechs, USA 1
                                                DB Architechs, France
           Copyright 2009 all rights reserved
Agenda – SQL Server User Group
Database Mirroring – SQL Server 2008
Database Mirroring 2005 vs 2008 benchmark
Database Snapshots – SQL Server 2008
SQL Performance & Tuning Tool (SSV)
Database Architechs
Principals

               Paul Bertucci
                   Founder Database Architechs
                   Former Chief Data Architect – Veritas & Symantec
                   Currently Chief Architect - Autodesk
                   Author of SQL Server 2000, 2005 & 2008 Unleashed!
                   Co-Author of ADO.NET in 24 hours
                   Author MS SQL Server High Availability
                   Author Sybase Performance & Tuning
                   Author Sybase Physical DB Design
                   Veritas SQL Server Performance Series
                         pbertucci@dbarchitechs.com



    Thierry Gerardin
    • Managing Principal - Database Architechs
        - Management, Research and Development, DB Design and P&T for
          MS SQL Server, Sybase and Oracle
    • European focus until recently/company growth leader – multiple years
    • Expanding DB ARCH consulting practices to USA and Asia
    • Sybase P&T and DBA Certified Professional
    • Contributor to SQL Server 2005 Unleashed!
              tgerardin@dbarchitechs.com                                     3
                                Copyright 2009 all rights reserved
Database Architechs
                Primary Services
                            Data Analysis
                             & Modeling

                                                              Database Design
  Business Intelligence &
      Data Delivery
        Platforms


                                                                   Data Architecture
Distributed Data &
 Data Replication

                                                                  Performance &
                                                                      Tuning
          Master Data
          Management
                                      High Availability
                                                                          Database Education
                                                                              & Training
                                                                                               4
                             Copyright 2009 all rights reserved
Past and Current
Customers


            Intel               Applied Materials
            Cisco               Apple Computers
            Charles Schwab      PG&E
            Aplia               Thomson Learning
            AGIS                Sybase
            Veritas             Symantec Corporation
            Honda Motors        Nissan Motors
            Toshiba Computers   Breg International
            Juniper Networks    CSAA
            Safeway Stores      Federal Express
            Wells Fargo         Bank of America
            Robert Half         Merrill Lynch
            Metalinc            many others….
Database Mirroring?


                                                           =
                                Adventure                         Adventure
                                Works DB                          Works DB



A “complete” copy of a database that is created and
maintained with as up to the second completeness
that is possible  a mirror image.




               What’s new or improved?
                Compression in log transactions across topology
                Various other performance enhancements
                Page fixing on the mirror side (AUTO)
                                                                              6
                3 years of production execution success!
                             Copyright 2009 all rights reserved
Log Shipping
                                       “Source”
                                                                                          “Destination”
                                      SQL Server 2008

                                                                                           SQL Server 2008
                                                               TxnLog
                                  Primary    CallOne DB                                   Secondary
                                                               backups
                                  Server                                                    Server
                                               translog
                                                                                            CallOne DB
                                    BackupCallOne_tlog_200405141120.TRN
Last log shipped
                   Delay Answer




                                                LogShareCallOne_tlog_200405141120.TRN             TxnLog
                                  TxnLog
                                                                                                    Restores
                                  Copies
                                                                    “Monitor”

                                                                   SQL Server 2008                Delay between
                                                                                                   logs loaded
                                                                                                    Delay Answer
                                                               Monitor
                                                                             MSDB DB
                                                               Server

                                                                                                                   7
                                             Don’t buildCopyright 2009 all rights reserved deprecated !
                                                         on this, it is being
Client           Client            Client             Client


                                   Network

                      A
                                                                 SQL Server 2008
    SQL Server 2008
   DB                                                          Mirror Server

MirroringAdventure         D
 Principal                                                       Adventure    D
           Works DB
                                             B                   Works DB
   Server
              translog
                                                                  translog
                                                    C


                                 SQL Server xyz


                          Witness
                                             MSDB DB
                          Server
                                                                                   8
                          Copyright 2009 all rights reserved
Copy-on-write Technology
The new “copy-on-write” technology that Microsoft has created, is at the core of
the database mirroring capability. A transaction from a client connection to the
principal server (arrow label A) is written to the adventure works database
(label D). Once the transaction is written to the principal servers transaction log,
it is immediately copied (arrow label B) and written to the Mirror Server (also
labeled D). When this physical log record is written to the mirror server, it sends
back an acknowledgement (arrow label C) to the principal of its write success.
This is the “copy-on-write” technology. The end result is that the mirror server
is in the exact same state as the principal server (when the physical log record
has been successfully written on the mirror side).




                                                                                       9
                              Copyright 2009 all rights reserved
DB Mirroring Terms
The Principal database server - is the source of the mirroring. You can mirror one
or more databases on a single SQL Server instance to another SQL Server instance.
You cannot mirror a database on one SQL Server instance to itself (the same SQL
Server instance).
The Mirror database server - will be the recipient of the mirroring from the principal
database server. This mirrored database will be kept in a hot standby mode and
cannot be used directly in any way. In fact, once you have configured database
mirroring, this database will show its status as in continuous “restore mode”.

The Witness database server - is used when you want to be continuously checking
to see if any failures have occurred to the primary database server and to help make
the decision to failover to the mirror database server. It is optional, but a sound way
to configure database mirroring. If you do not identify a witness server, the principal
and mirror are left on their own to decide to fail-over or not.




                                                                                         10
                                  Copyright 2009 all rights reserved
DB Mirroring Modes
 High-availability mode, High-protection mode, and High-performance mode.
             [you must sacrifice levels of protection for performance]

Synchronous operation - a committed transaction will be committed (written) on
both partners of the database mirroring pair. This obviously adds some latency cost
to a complete transaction (it is across two servers). High-availability mode and
High-protection mode use synchronous operations (termed High safety)

Asynchronous operation - transactions commit without waiting for the mirror server
to write the log to disk. This can speed up performance significantly.
High-performance mode uses asynchronous operations.

   Whether the operations are asynchronous or synchronous depends on the
   “transaction safety” setting. This is controlled by the SAFETY option when
   configuring with Transact-SQL commands (Set to FULL for synchronous
   operations, set to OFF for asynchronous operations).



                                                                                      11
                                Copyright 2009 all rights reserved
Fail-over methods
Automatic failover - is enabled with a three-server configuration; a principal, a
mirror, and a witness server. Synchronous operations are required and the mirror
database must already be synchronized (in sync with the transactions as they are
being written to the principal). Role switching is done automatically. This is for high-
availability mode.

Manual failover - is needed when there is no witness server and is also doing
synchronous operations. The principal and the mirror are connected to each other
and the mirror database must already be synchronized. Role switching is done
manually. This is for high-protection mode.

Forced Service - in the case where there is a mirror server available, but it might
not be synchronized. It can be forced to take over when the principal server has
failed. This will possibly have data loss, since the transactions were not
synchronized. This is for either high-protection or high-performance mode.



                                                                                       12
                                  Copyright 2009 all rights reserved
Rule-of-Thumb
 You should use database mirroring:
 • If you need to increase the availability of the database layer
 • If you need to have automatic data protection (redundant storage of data)
 • If you need to decrease the downtime that would normally be required to
   do upgrades



And very often:
• If you need to off load reporting (periodic data snapshots) without impacting
the transactional system use database mirroring with database snapshots.
• Combo Needs: If you need data distribution, high availability and high data
resiliency - use data replication with database mirroring.




                                                                                  13
                               Copyright 2009 all rights reserved
Cannot be used with:
Database Mirroring cannot be used for any of SQL Server’s internal
databases    TempDB, Master DB, MSDB, or Model DB.

Database Mirroring is NOT supported in SQL Server Workgroup
Edition or Express Edition. However, these server editions could be
used as Witness servers.

You cannot have database mirroring for databases enabled with
FILESTREAM storage.




                                                                      14
                         Copyright 2009 all rights reserved
Availability Continuum
                                        Characteristic               Availability Range

                                     Near zero downtime!
  Extreme Availability                                                (99.5% - 100%)


    High Availability
          HA                                                          (95% - 99.4%)
            HA                          Minimal downtime



 Standard Availability               With some downtime                (83% - 94%)
                                           tolerance



  Acceptable Availability                                              (70%-82%)
                                     Non-critical Applications




   Marginal Availability                                               (up to 69%)
                                   Non-production Applications




Availability Range describes the percentage of time relative to the “planned” hours of operations


             8,760 hours/year | 168 hours/week | 24 hours/day
       525,600 minutes/year | 7,200 minutes/week | 1,440 minutes/day                          15
                                Copyright 2009 all rights reserved
SQL Clustering basic configuration
   SQL
                                                                               CLUSTER1
Connections
                                                                         C:
                                                                                Local
                                                                               Binaries
                      Windows 2003 EE
                                                         MSCS                  Cluster Group
                                                                                Resources
               SQL Server 2008 (physical)
                                                                                   MS DTC
                                                                          S:          SQL Agent
                                                                                         SQL Full Text
                                                                                            Search

                                                                                   Master DB
               SQL Server 2008
                                                                  SCSI
                                                                                   TempDB
              (Virtual SQL Server)
                                                                                   Appl 1 DB
                  VSQLSERVER2008
                                                                                     Quorum
                                                                     Q:
                                                                                      Disk
               SQL Server 2008 (physical)
                                                       MSCS
                       Windows 2003 EE
                                                                               CLUSTER2
                                                                         C:
                                                                                Local
                                                                                                   16
                                                                               Binaries
                             Copyright 2009 all rights reserved
Instance: SQL08DE01                                          Instance: SQL08DE02
Endpoint name: “EndPoint4DBMirroring1430”                     Endpoint name: “EndPoint4DBMirroring1440”
Role: PARTNER                                                 Role: PARTNER

 Example 2008                                                             SQL Server 2008
     SQL Server
                                                                        Mirror Server
Configuratio
  Principal Adventure                                                     Adventure
      n        Works DB                                                   Works DB
   Server
                    translog                                               translog

       TCP: Listener_Port: 1430                                    TCP: Listener_Port: 1440


                                    SQL Server 2008


                               Witness
                                                 MSDB DB
                               Server

                               TCP: Listener_Port: 1450

                        Instance: SQL08DE03
                        Endpoint name: “EndPoint4DBMirroring1450”
                        Role: WITNESS                                                               17
                                   Copyright 2009 all rights reserved
1




                                     18
Copyright 2009 all rights reserved
2




                                         19
Copyright 2009 all rights reserved
3




                                     20
Copyright 2009 all rights reserved
Creating Endpoints
   -- create endpoint for PRINCIPAL server --
   CREATE ENDPOINT [EndPoint4DBMirroring1430]
             STATE=STARTED
             AS TCP (LISTENER_PORT = 1430, LISTENER_IP = ALL)
             FOR DATA_MIRRORING (ROLE = PARTNER,
                             AUTHENTICATION = WINDOWS NEGOTIATE
   , ENCRYPTION = REQUIRED ALGORITHM RC4)




SQL Server Log entry
01/05/2009 13:17:23,spid55,Unknown,The Database Mirroring protocol transport is now listening for
connections.
01/05/2009 13:17:23,spid55,Unknown,Server is listening on [ 'any' <ipv4> 1430].




                                                                                                    21
                                        Copyright 2009 all rights reserved
Creating Endpoints
-- create endpoint for MIRROR server --
CREATE ENDPOINT [EndPoint4DBMirroring1440]
          STATE=STARTED
          AS TCP (LISTENER_PORT = 1440, LISTENER_IP = ALL)
          FOR DATA_MIRRORING (ROLE = PARTNER,
                         AUTHENTICATION = WINDOWS NEGOTIATE
, ENCRYPTION = REQUIRED ALGORITHM RC4)


         -- create endpoint for WITNESS server --
         CREATE ENDPOINT [EndPoint4DBMirroring1450]
                   STATE=STARTED
                   AS TCP (LISTENER_PORT = 1450, LISTENER_IP = ALL)
                   FOR DATA_MIRRORING (ROLE = WITNESS,
                                 AUTHENTICATION = WINDOWS NEGOTIATE
         , ENCRYPTION = REQUIRED ALGORITHM RC4)



                                                                 22
                        Copyright 2009 all rights reserved
Backup Principal
BACKUP DATABASE [AdventureWorks]
   TO DISK = N'C:Program FilesMicrosoft SQL
              N'C:         Files
ServerMSSQL10.SQL08DE01MSSQLBackupAdventureWorks4Mirror.bak'
Server MSSQL10.SQL08DE01 MSSQL Backup
   WITH FORMAT
GO
-- Processed 17672 pages for database 'AdventureWorks', file 'AdventureWorks_Data' on file 1.
                                                              'AdventureWorks_Data'
-- Processed 3 pages for database 'AdventureWorks', file 'AdventureWorks_Log' on file 1.
                                                         'AdventureWorks_Log'
-- BACKUP DATABASE successfully processed 17675 pages in 7.718 seconds (17.890 MB/sec).
                                                                      seconds

BACKUP LOG [AdventureWorks] TO
DISK = N'C:Program FilesMicrosoft SQL
        N'C:       Files
ServerMSSQL10.SQL08DE01MSSQLBackupAdventureWorks4MirrorLog.bak'
Server MSSQL10.SQL08DE01 MSSQL Backup
GO
-- Processed 1849 pages for database 'AdventureWorks', file 'AdventureWorks_Log' on file 1.
                                                            'AdventureWorks_Log'
-- BACKUP LOG successfully processed 1849 pages in 0.862 seconds (16.757 MB/sec).
                                                                      (16.757
Restore to Mirror
RESTORE FILELISTONLY
 FROM DISK = N'C:Program FilesMicrosoft SQL
              N'C:       Files
ServerMSSQL10.SQL08DE01MSSQLBackupAdventureWorks4Mirror.bak'
Server MSSQL10.SQL08DE01 MSSQL Backup

RESTORE DATABASE AdventureWorks
 FROM DISK = N'C:Program FilesMicrosoft SQL
              N'C:       Files
ServerMSSQL10.SQL08DE01MSSQLBackupAdventureWorks4Mirror.bak'
Server MSSQL10.SQL08DE01 MSSQL Backup
 WITH NORECOVERY,
    MOVE 'AdventureWorks_Data' TO 'C:Program FilesMicrosoft SQL
                                    'C:      Files
ServerMSSQL10.SQL08DE02MSSQLDATAAdventureWorks_Data.mdf',
Server MSSQL10.SQL08DE02 MSSQL DATA
    MOVE 'AdventureWorks_Log' TO 'C:Program FilesMicrosoft SQL
                                   'C:       Files
ServerMSSQL10.SQL08DE02MSSQLDATAAdventureWorks_Log.ldf'
Server MSSQL10.SQL08DE02 MSSQL DATA
GO
-- Processed 17672 pages for database 'AdventureWorks', file 'AdventureWorks_Data' on file 1.
                                                              'AdventureWorks_Data'
-- Processed 3 pages for database 'AdventureWorks', file 'AdventureWorks_Log' on file 1.
                                                         'AdventureWorks_Log'
-- RESTORE DATABASE successfully processed 17675 pages in 6.716 seconds (20.560 MB/sec).
                                                                        seconds


RESTORE LOG AdventureWorks
 FROM DISK = N'C:Program FilesMicrosoft SQL
              N'C:       Files
ServerMSSQL10.SQL08DE01MSSQLBackupAdventureWorks4MirrorLog.bak'
Server MSSQL10.SQL08DE01 MSSQL Backup
 WITH FILE = 1, NORECOVERY;
GO
-- Processed 0 pages for database 'AdventureWorks', file 'AdventureWorks_Data' on file 1.
                                                         'AdventureWorks_Data'
-- Processed 1849 pages for database 'AdventureWorks', file 'AdventureWorks_Log' on file 1.
                                                             'AdventureWorks_Log'
-- RESTORE LOG successfully processed 1849 pages in 1.083 seconds (13.338 MB/sec).
7




                                     25
Copyright 2009 all rights reserved
9




                                     26
Copyright 2009 all rights reserved
11




                                     27
Copyright 2009 all rights reserved
12




                                     28
Copyright 2009 all rights reserved
13




                                     29
Copyright 2009 all rights reserved
14




                                     30
Copyright 2009 all rights reserved
15




                                     31
Copyright 2009 all rights reserved
16




                                     32
Copyright 2009 all rights reserved
Instance: SQL2008xyz
                                   Endpoint Name: “endpoint4mirroring”
                                    Role: PARTNER    PH Topology

                                                  SQL Server 2008

                                                                         Instance: SQL2008zzz
                                              Principal
                                                                         Endpoint Name: “endpoint4mirroring”
                                               Server
                                                                         Role: PARTNER
OLTP Application




                                                                                   SQL Server 2008
                                             Active                            Mirror Server
                                 Clustered
                   Replication




                                                                                 Adventure
                                                             Adventure
                                                                                 Works DB
                                                             Works DB
                                                                                   translog
                                                              translog

                                       Passive
                                    PH
                                  Topology
                                   Principal
                                               Server

                                                      SQL Server 2008
DB Mirroring 2005 Benchmarks
Repl_rows stored procedure 9999999


                            Send Rate
DB Mirroring 2008 Benchmarks
              Send Rate




   41% More
DB Mirroring 2005 Benchmarks

            Restore Rate
DB Mirroring 2008 Benchmarks
           Restore Rate




    52% more
DB Mirroring 2005 Benchmarks
DB Mirroring 2008 Benchmarks
DB Mirroring Benchmark Summary

Overall send rate 41 % faster (2005 vs 2008)
Overall restore rate 52% faster (2005 vs 2008)

Overall availability topology inherits the restore rate ~ 50% more available

Example:
       743 ms Transaction (in 2005 mirroring configuration)
       379 ms Transaction (in 2008 mirroring configuration)

In failover, what would have been 20 seconds before mirror becomes principal
turns into roughly 8-10 seconds (or 3seconds turns into 1.5 seconds, so on).




                                                                               40
                            Copyright 2009 all rights reserved
Snapshots




                                      41
 Copyright 2009 all rights reserved
Tr
                                                          an
                                                            s
                                                         Us acti
                                                            er on
                                                              s al



 SQL Server 2008

       01   AdventureWork
Source                                CREATE DB ‘xyz’
                s DB
Server                               AS SNAPSHOT OF
                                      AdventureWorks
                translog
                                 Database
                                 Snapshot
      --- Reverting --- if needed ---
             RESTORE DB
            AdventureWorks
  FROM DATABASE_SNAPSHOT = ‘xyz’




                                                               d- U e
                                                                     y) s
                                                             ea ing tim
                                                                   nl r
                                                                 O se
                                                           (R rt in-
                                                              po nt-
                                                            Re Poi
Source Data
                        Pages

  Source

    02
SQL Server 2008


                                                Sparse
     SQL
    Server                                       File
                                                Pages       Snapshot
      AdventureWork                                        AdventureWork
          s DB                                                 s DB




                                          Empty Sparse file
                                     of a Snapshot just created
                                      (no updates to original
                                   data pages have occurred yet)
                                                                           43
                      Copyright 2009 all rights reserved
Source
                                 Data
                                Pages

       Source

         03
     SQL Server 2008


                                                        Sparse
          SQL
         Server                                          File
                                                        Pages            Snapshot
           AdventureWork                                                AdventureWork
               s DB                                                         s DB




 System Catalog                                              Copy of original
of changed pages                                            pages for snapshot
                                                       only when a page is changed
                                                              (Copy-on-write)

                                                                                        44
                           Copyright 2009 all rights reserved
Snapshot
                                                                        Users
                           Source Data
                             Pages
                                                                 SELECT …..data…….
                                                                 FROM AdventureWorks
                                                                        SNAPSHOT
         04
     SQL Server 2008


          SQL
         Server
                                                                          Snapshot
           AdventureWork                                                AdventureWork
               s DB                                                         s DB




 System Catalog                                      Sparse
of changed pages                                      File
                                                     Pages


                                                                                        45
                            Copyright 2009 all rights reserved
Transactional
            Users
                                                   Data
                                                  Pages

                                      A
                     C


                                 Update Row
                     Committed
   SQL Server 2008
           05
                                                           Sparse
        SQL
       Server                                                File
                                                          B Pages            Snapshot
             AdventureWork
                                              B                            AdventureWork
                 s DB                                                          s DB

                translog
                                          B

 System Catalog
of changed pages                                                 Copy of original
                                                             pages for snapshot use
               B
                                                           only when a page is changed
                                                                 (Copy-on-write)
Us All
                                                       er
                                                         s




 SQL Server 2008

      06                                UPDATE AWSource.tableX
         AdventureWorks
Source        DB                          set xyz = …
Server                                  FROM AWSnapshot6:00AM.tableX
            translog
                          Database
                                           6:00AM Snapshot
                          Snapshot
                            Database
                                                12:00PM Snapshot
                            Snapshot
   Restore from                Database
                                                  6:00PM Snapshot
                               Snapshot
  Any Point-in-time
                                     Database       12:00AM Snapshot
 Snapshot if needed                  Snapshot
Us
                                                          er
                           Generating                       s
                          Mass Changes


 SQL Server 2008

      07
Source                               UPDATE AWSource.tableX
         AdventureWorks                set xyz = …
Server        DB                     FROM AWSafegaurd6:00AM.tableX

                          Database
                                      SAFEGUARD Snapshot
                          Snapshot
                                     (Before the mass changes)
   Restore from snapshot
(if changes are not correct)
Te
                                                    Us stin
                                                      er g
                                                        s



      SQL Server 2008

         08
  Source
            AdventureWorks
  Server         DB


                             Database
                                        BEFORE TEST Snapshot
                             Snapshot

 Restore from the BEFORE snapshot
after testing cycle is complete and can
         continue with next test.
Tr
                                              an
                                                s
                                             Us act
                                                er ion
                                                  s al

                                                          Re Poi
                                                            po nt-i
                                                         (R rt n-
                                                           e a i n g ti m
                                                              d- U e
                                                                O se
   SQL Server 2008
                                                                  nl r s
                                                                    y)
     09  AdventureWorks
Source        DB
Server
            translog
                          Database
                                     6:00AM Reporting Snapshot
                          Snapshot
                          Database
                                     12:00PM Reporting Snapshot
                          Snapshot
                          Database
                                     6:00PM Reporting Snapshot
                          Snapshot
                          Database   12:00AM Reporting Snapshot
                          Snapshot
SQL Server 2008
              SQL Server 2008
                                                                                Mirror Server
           10
 Principal
                       AdventureWorks
  Server                                                                         AdventureWorks
                            DB                                                        DB

                          translog                                                  translog
                                                                                             Database
        Database
                                                                                             Snapshot
        Snapshot
becomes the mirror.
 If this server node




                                           SQL Server 2008


                                        Witness




                                                                                                         rk
                                                                                                        rk


                                                                                                                    s
                                                                                                      oo


                                                                                                                 er
                                                        MSDB DB




                                                                                                     tw
                                        Server




                                                                                                    tw

                                                                                                              Us
                                                                                                  Ne
                                                                                                 Ne


                                                                                                        g
                                                                                                n
                                                                                             rti
                                                                                          po
                                                                                        Re
                                                                                                                        51
                                           Copyright 2009 all rights reserved
Instance: SQL2008xyz
                                   Endpoint Name: “endpoint4mirroring”
                                    Role: PARTNER         PH Topology With Snapshots

                                                  SQL Server 2008

                                                                                                   Instance: SQL2008zzz
                                              Principal
                                                                                                   Endpoint Name: “endpoint4mirroring”
                                               Server
                                                                                                   Role: PARTNER
OLTP Application




                                                                                                             SQL Server 2008
                                             Active                                                      Mirror Server
                                 Clustered
                   Replication




                                                                                                           Adventure
                                                             Adventure
                                                                                                           Works DB
                                                             Works DB
                                                                                                             translog
                                                              translog
                                                                                                                               Database
                                       Passive
                                    PH                                                                                         Snapshot

                                                                                                                                Network
                                  Topology                                                                                     Network
                                   Principal
                                               Server

                                                      SQL Server 2008
                                                                                                                                      52
                                                                                                                          Reporting Users
                                                              Copyright 2009 all rights reserved
DB Mirror and
          Publisher

                                                                      Replication
SQL Server 2008       SQL Server 2008



  Principal              Mirror                                               SQL Server 2008

   Server                Server
                                                                              Subscriber

                                         Distributor
                             SQL Server 2008                SQL Server 2008



                               Principal                            Mirror
                                Server                              Server
SQL Server 2008


                                                                              SQL Server 2008
  Witness
  Server
                                                                              Subscriber

                                                                                                53
                               Copyright 2009 all rights reserved
Distributing Data
                                  Sites
Data Access Latency Autonomy               Frequency Network Machines Owner                Other         REPLICATION
                               (locations)

                                                                                      Each site only
 Read Only                                                                                               Central Publisher
                                                        fast/      1                                     Transactional repl
              short    high     many        high                          1 OLTP needs regional
 Reporting
               Database Mirroring                       stable server/site site                          filter by region
                                                                                 data


                                                                                      Each site only
 Read Only                                                                                               Central Publisher
                                                        fast/      1                                     Snapshot repl
              long     high     many        low                           1 OLTP needs regional
 Reporting
               Database Mirroring                       stable server/site site                          filter by region
                                                                                 data

                                                                                      Regional updates Central Publisher
 Read Mostly
                                                        fast/      1                                     Transactional repl
A few updates short    high     < 10     medium                           1 OLTP on one table
                                                        stable server/site site                          Updating Subs


                                                                                      Regional update
 Read Mostly                                                                                             Central Publisher
                                                       slow/        1         All                        Merge repl
A few updates medium   high     < 10     medium                                    all tables
                                                       unreliab server/site update

                                                                                      Regional update
 Read equal                                                                                               Peer-to-Peer
                                                       fast/          1         All                       Transactional
Equal updates short    high     < 10     medium                                      all tables
                                                       stable     server/site update                          repl



                                                                                  Each site only
   Inserts                                                                   1                          Central Subscriber
                                                        fast/      1                                    Transactional repl
 (new orders) short    high     many        high                                  needs regional
                                                        stable server/site report data
                                                                            site


                                                                                                         Central Publisher
Hot/Warm       Very                                     fast/      1                   Fail-over         Remote Distributor
                       high     <2          high                          1 OLTP
   Spare       short                                    stable server/site site                          Transactional repl
                Database Mirroring
                                                                                                                              54
                                          Copyright 2009 all rights reserved
Questions
        Is there any time left????




Send your questions to:
     pbertucci@dbarchitechs.com
                  or
     tgerardin@dbarchitechs.com


             Copyright 2009 all rights reserved
Products
Database Products


            SQL SuperVision – Sybase
            SQL SuperVision – Oracle
         SQL SuperVision – MS SQL Server

Weitere ähnliche Inhalte

Was ist angesagt?

State of the art of MySQL replication and clustering
State of the art of MySQL replication and clusteringState of the art of MySQL replication and clustering
State of the art of MySQL replication and clusteringGiuseppe Maxia
 
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - d...
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - d...SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - d...
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - d...dbi services
 
21st Century Service Oriented Architecture
21st Century Service Oriented Architecture21st Century Service Oriented Architecture
21st Century Service Oriented ArchitectureBob Rhubart
 
Real-Time Loading to Sybase IQ
Real-Time Loading to Sybase IQReal-Time Loading to Sybase IQ
Real-Time Loading to Sybase IQSybase Türkiye
 
Hp Polyserve Database Utility For Sql Server Consolidation
Hp Polyserve Database Utility For Sql Server ConsolidationHp Polyserve Database Utility For Sql Server Consolidation
Hp Polyserve Database Utility For Sql Server ConsolidationCB UTBlog
 
Jfokus 2012: PaaSing a Java EE Application
Jfokus 2012: PaaSing a Java EE ApplicationJfokus 2012: PaaSing a Java EE Application
Jfokus 2012: PaaSing a Java EE ApplicationArun Gupta
 
Implementing the Future of PostgreSQL Clustering with Tungsten
Implementing the Future of PostgreSQL Clustering with TungstenImplementing the Future of PostgreSQL Clustering with Tungsten
Implementing the Future of PostgreSQL Clustering with TungstenCommand Prompt., Inc
 
Database Lifecycle Management and Cloud Management - Hands on Lab (OOW2014)
Database Lifecycle Management and Cloud Management - Hands on Lab (OOW2014)Database Lifecycle Management and Cloud Management - Hands on Lab (OOW2014)
Database Lifecycle Management and Cloud Management - Hands on Lab (OOW2014)Hari Srinivasan
 
Liquidity Risk Management powered by SAP HANA
Liquidity Risk Management powered by SAP HANALiquidity Risk Management powered by SAP HANA
Liquidity Risk Management powered by SAP HANASAP Technology
 
Solaris cluster roadshow day 1 technical presentation
Solaris cluster roadshow day 1 technical presentationSolaris cluster roadshow day 1 technical presentation
Solaris cluster roadshow day 1 technical presentationxKinAnx
 
Top five reasons for selecting react.js for your next web application
Top five reasons for selecting react.js for your next web applicationTop five reasons for selecting react.js for your next web application
Top five reasons for selecting react.js for your next web applicationSolution Analysts
 
Why Upgrade to Oracle Database 12c?
Why Upgrade to Oracle Database 12c?Why Upgrade to Oracle Database 12c?
Why Upgrade to Oracle Database 12c?DLT Solutions
 

Was ist angesagt? (19)

State of the art of MySQL replication and clustering
State of the art of MySQL replication and clusteringState of the art of MySQL replication and clustering
State of the art of MySQL replication and clustering
 
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - d...
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - d...SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - d...
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - d...
 
21st Century Service Oriented Architecture
21st Century Service Oriented Architecture21st Century Service Oriented Architecture
21st Century Service Oriented Architecture
 
Real-Time Loading to Sybase IQ
Real-Time Loading to Sybase IQReal-Time Loading to Sybase IQ
Real-Time Loading to Sybase IQ
 
Hp Polyserve Database Utility For Sql Server Consolidation
Hp Polyserve Database Utility For Sql Server ConsolidationHp Polyserve Database Utility For Sql Server Consolidation
Hp Polyserve Database Utility For Sql Server Consolidation
 
Profile narendraredy
Profile narendraredyProfile narendraredy
Profile narendraredy
 
Jfokus 2012: PaaSing a Java EE Application
Jfokus 2012: PaaSing a Java EE ApplicationJfokus 2012: PaaSing a Java EE Application
Jfokus 2012: PaaSing a Java EE Application
 
Implementing the Future of PostgreSQL Clustering with Tungsten
Implementing the Future of PostgreSQL Clustering with TungstenImplementing the Future of PostgreSQL Clustering with Tungsten
Implementing the Future of PostgreSQL Clustering with Tungsten
 
Database Lifecycle Management and Cloud Management - Hands on Lab (OOW2014)
Database Lifecycle Management and Cloud Management - Hands on Lab (OOW2014)Database Lifecycle Management and Cloud Management - Hands on Lab (OOW2014)
Database Lifecycle Management and Cloud Management - Hands on Lab (OOW2014)
 
Ta3
Ta3Ta3
Ta3
 
Liquidity Risk Management powered by SAP HANA
Liquidity Risk Management powered by SAP HANALiquidity Risk Management powered by SAP HANA
Liquidity Risk Management powered by SAP HANA
 
Oracle Enterprise Manager 11g
Oracle Enterprise Manager 11gOracle Enterprise Manager 11g
Oracle Enterprise Manager 11g
 
Solaris cluster roadshow day 1 technical presentation
Solaris cluster roadshow day 1 technical presentationSolaris cluster roadshow day 1 technical presentation
Solaris cluster roadshow day 1 technical presentation
 
Top five reasons for selecting react.js for your next web application
Top five reasons for selecting react.js for your next web applicationTop five reasons for selecting react.js for your next web application
Top five reasons for selecting react.js for your next web application
 
Oow Ppt 2
Oow Ppt 2Oow Ppt 2
Oow Ppt 2
 
Why Upgrade to Oracle Database 12c?
Why Upgrade to Oracle Database 12c?Why Upgrade to Oracle Database 12c?
Why Upgrade to Oracle Database 12c?
 
Oracle RAC 12c Overview
Oracle RAC 12c OverviewOracle RAC 12c Overview
Oracle RAC 12c Overview
 
Right Availability in RAC environment. Playing with Oracle clusterware infras...
Right Availability in RAC environment. Playing with Oracle clusterware infras...Right Availability in RAC environment. Playing with Oracle clusterware infras...
Right Availability in RAC environment. Playing with Oracle clusterware infras...
 
saurabh soni rac
saurabh soni racsaurabh soni rac
saurabh soni rac
 

Andere mochten auch

Teknologi bluetooth dan implikasinya
Teknologi bluetooth dan implikasinyaTeknologi bluetooth dan implikasinya
Teknologi bluetooth dan implikasinyaMateri Kuliah Online
 
15011 10-915861063479
15011 10-91586106347915011 10-915861063479
15011 10-915861063479Lina Ernita
 
1. Komunikasi 101 oleh Antonius Setiawan
1. Komunikasi 101 oleh Antonius Setiawan1. Komunikasi 101 oleh Antonius Setiawan
1. Komunikasi 101 oleh Antonius Setiawanjohnoei
 
16406239 digital-culture-periode-pengembangan-2006-2007
16406239 digital-culture-periode-pengembangan-2006-200716406239 digital-culture-periode-pengembangan-2006-2007
16406239 digital-culture-periode-pengembangan-2006-2007Lina Ernita
 
Ses pemrograman-web-database-dg-php-dan-my sql
Ses pemrograman-web-database-dg-php-dan-my sqlSes pemrograman-web-database-dg-php-dan-my sql
Ses pemrograman-web-database-dg-php-dan-my sqlomenk gokile
 
Modul pelatihan-web-joomla
Modul pelatihan-web-joomlaModul pelatihan-web-joomla
Modul pelatihan-web-joomlaomenk gokile
 
High Availability Linux Clusters
High Availability Linux ClustersHigh Availability Linux Clusters
High Availability Linux Clustersdavisable
 
16067356 teknologi-jaringan-bawah-air
16067356 teknologi-jaringan-bawah-air16067356 teknologi-jaringan-bawah-air
16067356 teknologi-jaringan-bawah-airLina Ernita
 
11 komunikasi-broadband
11 komunikasi-broadband11 komunikasi-broadband
11 komunikasi-broadbandChoiruddin Doy
 
Mengadministrasi server dalam jaringan
Mengadministrasi server dalam jaringanMengadministrasi server dalam jaringan
Mengadministrasi server dalam jaringanEko Supriyadi
 

Andere mochten auch (11)

Teknologi bluetooth dan implikasinya
Teknologi bluetooth dan implikasinyaTeknologi bluetooth dan implikasinya
Teknologi bluetooth dan implikasinya
 
15011 10-915861063479
15011 10-91586106347915011 10-915861063479
15011 10-915861063479
 
1. Komunikasi 101 oleh Antonius Setiawan
1. Komunikasi 101 oleh Antonius Setiawan1. Komunikasi 101 oleh Antonius Setiawan
1. Komunikasi 101 oleh Antonius Setiawan
 
16406239 digital-culture-periode-pengembangan-2006-2007
16406239 digital-culture-periode-pengembangan-2006-200716406239 digital-culture-periode-pengembangan-2006-2007
16406239 digital-culture-periode-pengembangan-2006-2007
 
Ses pemrograman-web-database-dg-php-dan-my sql
Ses pemrograman-web-database-dg-php-dan-my sqlSes pemrograman-web-database-dg-php-dan-my sql
Ses pemrograman-web-database-dg-php-dan-my sql
 
Multimedia Networks
Multimedia NetworksMultimedia Networks
Multimedia Networks
 
Modul pelatihan-web-joomla
Modul pelatihan-web-joomlaModul pelatihan-web-joomla
Modul pelatihan-web-joomla
 
High Availability Linux Clusters
High Availability Linux ClustersHigh Availability Linux Clusters
High Availability Linux Clusters
 
16067356 teknologi-jaringan-bawah-air
16067356 teknologi-jaringan-bawah-air16067356 teknologi-jaringan-bawah-air
16067356 teknologi-jaringan-bawah-air
 
11 komunikasi-broadband
11 komunikasi-broadband11 komunikasi-broadband
11 komunikasi-broadband
 
Mengadministrasi server dalam jaringan
Mengadministrasi server dalam jaringanMengadministrasi server dalam jaringan
Mengadministrasi server dalam jaringan
 

Ähnlich wie SQL Server User Group 02/2009

SQL Server 2008 Migration Workshop 04/29/2009
SQL Server 2008 Migration Workshop 04/29/2009SQL Server 2008 Migration Workshop 04/29/2009
SQL Server 2008 Migration Workshop 04/29/2009Database Architechs
 
An overview of microsoft data mining technology
An overview of microsoft data mining technologyAn overview of microsoft data mining technology
An overview of microsoft data mining technologyMark Tabladillo
 
An overview of Microsoft data mining technology
An overview of Microsoft data mining technologyAn overview of Microsoft data mining technology
An overview of Microsoft data mining technologyMark Tabladillo
 
Migrate to share point 2013 with avepoint 2.14.13
Migrate to share point 2013 with avepoint 2.14.13Migrate to share point 2013 with avepoint 2.14.13
Migrate to share point 2013 with avepoint 2.14.13Mary Leigh Mackie
 
Secrets of Enterprise Data Mining
Secrets of Enterprise Data Mining Secrets of Enterprise Data Mining
Secrets of Enterprise Data Mining Mark Tabladillo
 
SQL Server Reporting Services: IT Best Practices
SQL Server Reporting Services: IT Best PracticesSQL Server Reporting Services: IT Best Practices
SQL Server Reporting Services: IT Best PracticesDenny Lee
 
Ms Sql Server Black Book
Ms Sql Server Black BookMs Sql Server Black Book
Ms Sql Server Black BookLiquidHub
 
2009 Q2 WSO2 Technical Update
2009 Q2 WSO2 Technical Update2009 Q2 WSO2 Technical Update
2009 Q2 WSO2 Technical UpdateWSO2
 
Microsoft SQL Server Distributing Data with R2 Bertucci
Microsoft SQL Server Distributing Data with R2 BertucciMicrosoft SQL Server Distributing Data with R2 Bertucci
Microsoft SQL Server Distributing Data with R2 BertucciMark Ginnebaugh
 
OOW09 Ebs Tuning Final
OOW09 Ebs Tuning FinalOOW09 Ebs Tuning Final
OOW09 Ebs Tuning Finaljucaab
 
Checking the health of your active directory enviornment
Checking the health of your active directory enviornmentChecking the health of your active directory enviornment
Checking the health of your active directory enviornmentSpiffy
 
SQLUG event: An evening in the cloud: the old, the new and the big
 SQLUG event: An evening in the cloud: the old, the new and the big  SQLUG event: An evening in the cloud: the old, the new and the big
SQLUG event: An evening in the cloud: the old, the new and the big Mike Martin
 
04.egovFrame Runtime Environment Workshop
04.egovFrame Runtime Environment Workshop04.egovFrame Runtime Environment Workshop
04.egovFrame Runtime Environment WorkshopChuong Nguyen
 
Extreme performance - IDF UG
Extreme performance - IDF UGExtreme performance - IDF UG
Extreme performance - IDF UGsqlserver.co.il
 
2011 04-dsi-javaee-in-the-cloud-andreadis
2011 04-dsi-javaee-in-the-cloud-andreadis2011 04-dsi-javaee-in-the-cloud-andreadis
2011 04-dsi-javaee-in-the-cloud-andreadisdandre
 
SQL Server 2008 Fast Track Data Warehouse
SQL Server 2008 Fast Track Data WarehouseSQL Server 2008 Fast Track Data Warehouse
SQL Server 2008 Fast Track Data WarehouseMark Ginnebaugh
 
SANKAR_PRASAD_SAHU_SQL_DBA
SANKAR_PRASAD_SAHU_SQL_DBASANKAR_PRASAD_SAHU_SQL_DBA
SANKAR_PRASAD_SAHU_SQL_DBASankar Sahu
 

Ähnlich wie SQL Server User Group 02/2009 (20)

SQL Server 2008 Migration Workshop 04/29/2009
SQL Server 2008 Migration Workshop 04/29/2009SQL Server 2008 Migration Workshop 04/29/2009
SQL Server 2008 Migration Workshop 04/29/2009
 
An overview of microsoft data mining technology
An overview of microsoft data mining technologyAn overview of microsoft data mining technology
An overview of microsoft data mining technology
 
An overview of Microsoft data mining technology
An overview of Microsoft data mining technologyAn overview of Microsoft data mining technology
An overview of Microsoft data mining technology
 
Confio presentation
Confio presentationConfio presentation
Confio presentation
 
MySQL高可用
MySQL高可用MySQL高可用
MySQL高可用
 
Migrate to share point 2013 with avepoint 2.14.13
Migrate to share point 2013 with avepoint 2.14.13Migrate to share point 2013 with avepoint 2.14.13
Migrate to share point 2013 with avepoint 2.14.13
 
Secrets of Enterprise Data Mining
Secrets of Enterprise Data Mining Secrets of Enterprise Data Mining
Secrets of Enterprise Data Mining
 
SQL Server Reporting Services: IT Best Practices
SQL Server Reporting Services: IT Best PracticesSQL Server Reporting Services: IT Best Practices
SQL Server Reporting Services: IT Best Practices
 
Ms Sql Server Black Book
Ms Sql Server Black BookMs Sql Server Black Book
Ms Sql Server Black Book
 
2009 Q2 WSO2 Technical Update
2009 Q2 WSO2 Technical Update2009 Q2 WSO2 Technical Update
2009 Q2 WSO2 Technical Update
 
Microsoft SQL Server Distributing Data with R2 Bertucci
Microsoft SQL Server Distributing Data with R2 BertucciMicrosoft SQL Server Distributing Data with R2 Bertucci
Microsoft SQL Server Distributing Data with R2 Bertucci
 
OOW09 Ebs Tuning Final
OOW09 Ebs Tuning FinalOOW09 Ebs Tuning Final
OOW09 Ebs Tuning Final
 
Checking the health of your active directory enviornment
Checking the health of your active directory enviornmentChecking the health of your active directory enviornment
Checking the health of your active directory enviornment
 
Introduction to Hadoop
Introduction to HadoopIntroduction to Hadoop
Introduction to Hadoop
 
SQLUG event: An evening in the cloud: the old, the new and the big
 SQLUG event: An evening in the cloud: the old, the new and the big  SQLUG event: An evening in the cloud: the old, the new and the big
SQLUG event: An evening in the cloud: the old, the new and the big
 
04.egovFrame Runtime Environment Workshop
04.egovFrame Runtime Environment Workshop04.egovFrame Runtime Environment Workshop
04.egovFrame Runtime Environment Workshop
 
Extreme performance - IDF UG
Extreme performance - IDF UGExtreme performance - IDF UG
Extreme performance - IDF UG
 
2011 04-dsi-javaee-in-the-cloud-andreadis
2011 04-dsi-javaee-in-the-cloud-andreadis2011 04-dsi-javaee-in-the-cloud-andreadis
2011 04-dsi-javaee-in-the-cloud-andreadis
 
SQL Server 2008 Fast Track Data Warehouse
SQL Server 2008 Fast Track Data WarehouseSQL Server 2008 Fast Track Data Warehouse
SQL Server 2008 Fast Track Data Warehouse
 
SANKAR_PRASAD_SAHU_SQL_DBA
SANKAR_PRASAD_SAHU_SQL_DBASANKAR_PRASAD_SAHU_SQL_DBA
SANKAR_PRASAD_SAHU_SQL_DBA
 

Mehr von Database Architechs

2010/10 - Database Architechs - Perf. & Tuning Tools
2010/10 - Database Architechs - Perf. & Tuning Tools2010/10 - Database Architechs - Perf. & Tuning Tools
2010/10 - Database Architechs - Perf. & Tuning ToolsDatabase Architechs
 
2010/09 - Database Architechs - Performance & Tuning Tool
2010/09 - Database Architechs - Performance & Tuning Tool2010/09 - Database Architechs - Performance & Tuning Tool
2010/09 - Database Architechs - Performance & Tuning ToolDatabase Architechs
 
2010/10 - Database Architechs presentation
2010/10 - Database Architechs presentation2010/10 - Database Architechs presentation
2010/10 - Database Architechs presentationDatabase Architechs
 
2010/08 - Database Architechs - Presentation
2010/08 - Database Architechs - Presentation2010/08 - Database Architechs - Presentation
2010/08 - Database Architechs - PresentationDatabase Architechs
 
2009/12 - Database Architechs - Presentation
2009/12 - Database Architechs - Presentation2009/12 - Database Architechs - Presentation
2009/12 - Database Architechs - PresentationDatabase Architechs
 
Paraccel/Database Architechs Press Release
Paraccel/Database Architechs Press ReleaseParaccel/Database Architechs Press Release
Paraccel/Database Architechs Press ReleaseDatabase Architechs
 
2009/11 Database Architechs Presentation
2009/11   Database Architechs Presentation2009/11   Database Architechs Presentation
2009/11 Database Architechs PresentationDatabase Architechs
 
ASG - Power Alignment Facilitation
ASG - Power Alignment FacilitationASG - Power Alignment Facilitation
ASG - Power Alignment FacilitationDatabase Architechs
 
Informatica World 2006 - MDM Data Quality
Informatica World 2006 - MDM Data QualityInformatica World 2006 - MDM Data Quality
Informatica World 2006 - MDM Data QualityDatabase Architechs
 
2010/10 - Database Architechs Consulting Services Summary
2010/10 - Database Architechs Consulting Services Summary2010/10 - Database Architechs Consulting Services Summary
2010/10 - Database Architechs Consulting Services SummaryDatabase Architechs
 
2010/10 - Database Architechs - Data Services Summary
2010/10 - Database Architechs - Data Services Summary2010/10 - Database Architechs - Data Services Summary
2010/10 - Database Architechs - Data Services SummaryDatabase Architechs
 
Master Data Management methodology
Master Data Management methodologyMaster Data Management methodology
Master Data Management methodologyDatabase Architechs
 

Mehr von Database Architechs (13)

2010/10 - Database Architechs - Perf. & Tuning Tools
2010/10 - Database Architechs - Perf. & Tuning Tools2010/10 - Database Architechs - Perf. & Tuning Tools
2010/10 - Database Architechs - Perf. & Tuning Tools
 
2010/09 - Database Architechs - Performance & Tuning Tool
2010/09 - Database Architechs - Performance & Tuning Tool2010/09 - Database Architechs - Performance & Tuning Tool
2010/09 - Database Architechs - Performance & Tuning Tool
 
2010/10 - Database Architechs presentation
2010/10 - Database Architechs presentation2010/10 - Database Architechs presentation
2010/10 - Database Architechs presentation
 
2010/08 - Database Architechs - Presentation
2010/08 - Database Architechs - Presentation2010/08 - Database Architechs - Presentation
2010/08 - Database Architechs - Presentation
 
2009/12 - Database Architechs - Presentation
2009/12 - Database Architechs - Presentation2009/12 - Database Architechs - Presentation
2009/12 - Database Architechs - Presentation
 
Paraccel/Database Architechs Press Release
Paraccel/Database Architechs Press ReleaseParaccel/Database Architechs Press Release
Paraccel/Database Architechs Press Release
 
2009/11 Database Architechs Presentation
2009/11   Database Architechs Presentation2009/11   Database Architechs Presentation
2009/11 Database Architechs Presentation
 
ASG - Power Alignment Facilitation
ASG - Power Alignment FacilitationASG - Power Alignment Facilitation
ASG - Power Alignment Facilitation
 
Informatica World 2006 - MDM Data Quality
Informatica World 2006 - MDM Data QualityInformatica World 2006 - MDM Data Quality
Informatica World 2006 - MDM Data Quality
 
2010/10 - Database Architechs Consulting Services Summary
2010/10 - Database Architechs Consulting Services Summary2010/10 - Database Architechs Consulting Services Summary
2010/10 - Database Architechs Consulting Services Summary
 
2010/10 - Database Architechs - Data Services Summary
2010/10 - Database Architechs - Data Services Summary2010/10 - Database Architechs - Data Services Summary
2010/10 - Database Architechs - Data Services Summary
 
Master Data Management methodology
Master Data Management methodologyMaster Data Management methodology
Master Data Management methodology
 
SQL Shot 4.2.10 User Manual
SQL Shot 4.2.10 User ManualSQL Shot 4.2.10 User Manual
SQL Shot 4.2.10 User Manual
 

Kürzlich hochgeladen

Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 

Kürzlich hochgeladen (20)

Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

SQL Server User Group 02/2009

  • 1. Database Mirroring & Snapshots SQL Server 2008 DB Architechs, USA 1 DB Architechs, France Copyright 2009 all rights reserved
  • 2. Agenda – SQL Server User Group Database Mirroring – SQL Server 2008 Database Mirroring 2005 vs 2008 benchmark Database Snapshots – SQL Server 2008 SQL Performance & Tuning Tool (SSV)
  • 3. Database Architechs Principals Paul Bertucci Founder Database Architechs Former Chief Data Architect – Veritas & Symantec Currently Chief Architect - Autodesk Author of SQL Server 2000, 2005 & 2008 Unleashed! Co-Author of ADO.NET in 24 hours Author MS SQL Server High Availability Author Sybase Performance & Tuning Author Sybase Physical DB Design Veritas SQL Server Performance Series pbertucci@dbarchitechs.com Thierry Gerardin • Managing Principal - Database Architechs - Management, Research and Development, DB Design and P&T for MS SQL Server, Sybase and Oracle • European focus until recently/company growth leader – multiple years • Expanding DB ARCH consulting practices to USA and Asia • Sybase P&T and DBA Certified Professional • Contributor to SQL Server 2005 Unleashed! tgerardin@dbarchitechs.com 3 Copyright 2009 all rights reserved
  • 4. Database Architechs Primary Services Data Analysis & Modeling Database Design Business Intelligence & Data Delivery Platforms Data Architecture Distributed Data & Data Replication Performance & Tuning Master Data Management High Availability Database Education & Training 4 Copyright 2009 all rights reserved
  • 5. Past and Current Customers Intel Applied Materials Cisco Apple Computers Charles Schwab PG&E Aplia Thomson Learning AGIS Sybase Veritas Symantec Corporation Honda Motors Nissan Motors Toshiba Computers Breg International Juniper Networks CSAA Safeway Stores Federal Express Wells Fargo Bank of America Robert Half Merrill Lynch Metalinc many others….
  • 6. Database Mirroring? = Adventure Adventure Works DB Works DB A “complete” copy of a database that is created and maintained with as up to the second completeness that is possible a mirror image. What’s new or improved? Compression in log transactions across topology Various other performance enhancements Page fixing on the mirror side (AUTO) 6 3 years of production execution success! Copyright 2009 all rights reserved
  • 7. Log Shipping “Source” “Destination” SQL Server 2008 SQL Server 2008 TxnLog Primary CallOne DB Secondary backups Server Server translog CallOne DB BackupCallOne_tlog_200405141120.TRN Last log shipped Delay Answer LogShareCallOne_tlog_200405141120.TRN TxnLog TxnLog Restores Copies “Monitor” SQL Server 2008 Delay between logs loaded Delay Answer Monitor MSDB DB Server 7 Don’t buildCopyright 2009 all rights reserved deprecated ! on this, it is being
  • 8. Client Client Client Client Network A SQL Server 2008 SQL Server 2008 DB Mirror Server MirroringAdventure D Principal Adventure D Works DB B Works DB Server translog translog C SQL Server xyz Witness MSDB DB Server 8 Copyright 2009 all rights reserved
  • 9. Copy-on-write Technology The new “copy-on-write” technology that Microsoft has created, is at the core of the database mirroring capability. A transaction from a client connection to the principal server (arrow label A) is written to the adventure works database (label D). Once the transaction is written to the principal servers transaction log, it is immediately copied (arrow label B) and written to the Mirror Server (also labeled D). When this physical log record is written to the mirror server, it sends back an acknowledgement (arrow label C) to the principal of its write success. This is the “copy-on-write” technology. The end result is that the mirror server is in the exact same state as the principal server (when the physical log record has been successfully written on the mirror side). 9 Copyright 2009 all rights reserved
  • 10. DB Mirroring Terms The Principal database server - is the source of the mirroring. You can mirror one or more databases on a single SQL Server instance to another SQL Server instance. You cannot mirror a database on one SQL Server instance to itself (the same SQL Server instance). The Mirror database server - will be the recipient of the mirroring from the principal database server. This mirrored database will be kept in a hot standby mode and cannot be used directly in any way. In fact, once you have configured database mirroring, this database will show its status as in continuous “restore mode”. The Witness database server - is used when you want to be continuously checking to see if any failures have occurred to the primary database server and to help make the decision to failover to the mirror database server. It is optional, but a sound way to configure database mirroring. If you do not identify a witness server, the principal and mirror are left on their own to decide to fail-over or not. 10 Copyright 2009 all rights reserved
  • 11. DB Mirroring Modes High-availability mode, High-protection mode, and High-performance mode. [you must sacrifice levels of protection for performance] Synchronous operation - a committed transaction will be committed (written) on both partners of the database mirroring pair. This obviously adds some latency cost to a complete transaction (it is across two servers). High-availability mode and High-protection mode use synchronous operations (termed High safety) Asynchronous operation - transactions commit without waiting for the mirror server to write the log to disk. This can speed up performance significantly. High-performance mode uses asynchronous operations. Whether the operations are asynchronous or synchronous depends on the “transaction safety” setting. This is controlled by the SAFETY option when configuring with Transact-SQL commands (Set to FULL for synchronous operations, set to OFF for asynchronous operations). 11 Copyright 2009 all rights reserved
  • 12. Fail-over methods Automatic failover - is enabled with a three-server configuration; a principal, a mirror, and a witness server. Synchronous operations are required and the mirror database must already be synchronized (in sync with the transactions as they are being written to the principal). Role switching is done automatically. This is for high- availability mode. Manual failover - is needed when there is no witness server and is also doing synchronous operations. The principal and the mirror are connected to each other and the mirror database must already be synchronized. Role switching is done manually. This is for high-protection mode. Forced Service - in the case where there is a mirror server available, but it might not be synchronized. It can be forced to take over when the principal server has failed. This will possibly have data loss, since the transactions were not synchronized. This is for either high-protection or high-performance mode. 12 Copyright 2009 all rights reserved
  • 13. Rule-of-Thumb You should use database mirroring: • If you need to increase the availability of the database layer • If you need to have automatic data protection (redundant storage of data) • If you need to decrease the downtime that would normally be required to do upgrades And very often: • If you need to off load reporting (periodic data snapshots) without impacting the transactional system use database mirroring with database snapshots. • Combo Needs: If you need data distribution, high availability and high data resiliency - use data replication with database mirroring. 13 Copyright 2009 all rights reserved
  • 14. Cannot be used with: Database Mirroring cannot be used for any of SQL Server’s internal databases TempDB, Master DB, MSDB, or Model DB. Database Mirroring is NOT supported in SQL Server Workgroup Edition or Express Edition. However, these server editions could be used as Witness servers. You cannot have database mirroring for databases enabled with FILESTREAM storage. 14 Copyright 2009 all rights reserved
  • 15. Availability Continuum Characteristic Availability Range Near zero downtime! Extreme Availability (99.5% - 100%) High Availability HA (95% - 99.4%) HA Minimal downtime Standard Availability With some downtime (83% - 94%) tolerance Acceptable Availability (70%-82%) Non-critical Applications Marginal Availability (up to 69%) Non-production Applications Availability Range describes the percentage of time relative to the “planned” hours of operations 8,760 hours/year | 168 hours/week | 24 hours/day 525,600 minutes/year | 7,200 minutes/week | 1,440 minutes/day 15 Copyright 2009 all rights reserved
  • 16. SQL Clustering basic configuration SQL CLUSTER1 Connections C: Local Binaries Windows 2003 EE MSCS Cluster Group Resources SQL Server 2008 (physical) MS DTC S: SQL Agent SQL Full Text Search Master DB SQL Server 2008 SCSI TempDB (Virtual SQL Server) Appl 1 DB VSQLSERVER2008 Quorum Q: Disk SQL Server 2008 (physical) MSCS Windows 2003 EE CLUSTER2 C: Local 16 Binaries Copyright 2009 all rights reserved
  • 17. Instance: SQL08DE01 Instance: SQL08DE02 Endpoint name: “EndPoint4DBMirroring1430” Endpoint name: “EndPoint4DBMirroring1440” Role: PARTNER Role: PARTNER Example 2008 SQL Server 2008 SQL Server Mirror Server Configuratio Principal Adventure Adventure n Works DB Works DB Server translog translog TCP: Listener_Port: 1430 TCP: Listener_Port: 1440 SQL Server 2008 Witness MSDB DB Server TCP: Listener_Port: 1450 Instance: SQL08DE03 Endpoint name: “EndPoint4DBMirroring1450” Role: WITNESS 17 Copyright 2009 all rights reserved
  • 18. 1 18 Copyright 2009 all rights reserved
  • 19. 2 19 Copyright 2009 all rights reserved
  • 20. 3 20 Copyright 2009 all rights reserved
  • 21. Creating Endpoints -- create endpoint for PRINCIPAL server -- CREATE ENDPOINT [EndPoint4DBMirroring1430] STATE=STARTED AS TCP (LISTENER_PORT = 1430, LISTENER_IP = ALL) FOR DATA_MIRRORING (ROLE = PARTNER, AUTHENTICATION = WINDOWS NEGOTIATE , ENCRYPTION = REQUIRED ALGORITHM RC4) SQL Server Log entry 01/05/2009 13:17:23,spid55,Unknown,The Database Mirroring protocol transport is now listening for connections. 01/05/2009 13:17:23,spid55,Unknown,Server is listening on [ 'any' <ipv4> 1430]. 21 Copyright 2009 all rights reserved
  • 22. Creating Endpoints -- create endpoint for MIRROR server -- CREATE ENDPOINT [EndPoint4DBMirroring1440] STATE=STARTED AS TCP (LISTENER_PORT = 1440, LISTENER_IP = ALL) FOR DATA_MIRRORING (ROLE = PARTNER, AUTHENTICATION = WINDOWS NEGOTIATE , ENCRYPTION = REQUIRED ALGORITHM RC4) -- create endpoint for WITNESS server -- CREATE ENDPOINT [EndPoint4DBMirroring1450] STATE=STARTED AS TCP (LISTENER_PORT = 1450, LISTENER_IP = ALL) FOR DATA_MIRRORING (ROLE = WITNESS, AUTHENTICATION = WINDOWS NEGOTIATE , ENCRYPTION = REQUIRED ALGORITHM RC4) 22 Copyright 2009 all rights reserved
  • 23. Backup Principal BACKUP DATABASE [AdventureWorks] TO DISK = N'C:Program FilesMicrosoft SQL N'C: Files ServerMSSQL10.SQL08DE01MSSQLBackupAdventureWorks4Mirror.bak' Server MSSQL10.SQL08DE01 MSSQL Backup WITH FORMAT GO -- Processed 17672 pages for database 'AdventureWorks', file 'AdventureWorks_Data' on file 1. 'AdventureWorks_Data' -- Processed 3 pages for database 'AdventureWorks', file 'AdventureWorks_Log' on file 1. 'AdventureWorks_Log' -- BACKUP DATABASE successfully processed 17675 pages in 7.718 seconds (17.890 MB/sec). seconds BACKUP LOG [AdventureWorks] TO DISK = N'C:Program FilesMicrosoft SQL N'C: Files ServerMSSQL10.SQL08DE01MSSQLBackupAdventureWorks4MirrorLog.bak' Server MSSQL10.SQL08DE01 MSSQL Backup GO -- Processed 1849 pages for database 'AdventureWorks', file 'AdventureWorks_Log' on file 1. 'AdventureWorks_Log' -- BACKUP LOG successfully processed 1849 pages in 0.862 seconds (16.757 MB/sec). (16.757
  • 24. Restore to Mirror RESTORE FILELISTONLY FROM DISK = N'C:Program FilesMicrosoft SQL N'C: Files ServerMSSQL10.SQL08DE01MSSQLBackupAdventureWorks4Mirror.bak' Server MSSQL10.SQL08DE01 MSSQL Backup RESTORE DATABASE AdventureWorks FROM DISK = N'C:Program FilesMicrosoft SQL N'C: Files ServerMSSQL10.SQL08DE01MSSQLBackupAdventureWorks4Mirror.bak' Server MSSQL10.SQL08DE01 MSSQL Backup WITH NORECOVERY, MOVE 'AdventureWorks_Data' TO 'C:Program FilesMicrosoft SQL 'C: Files ServerMSSQL10.SQL08DE02MSSQLDATAAdventureWorks_Data.mdf', Server MSSQL10.SQL08DE02 MSSQL DATA MOVE 'AdventureWorks_Log' TO 'C:Program FilesMicrosoft SQL 'C: Files ServerMSSQL10.SQL08DE02MSSQLDATAAdventureWorks_Log.ldf' Server MSSQL10.SQL08DE02 MSSQL DATA GO -- Processed 17672 pages for database 'AdventureWorks', file 'AdventureWorks_Data' on file 1. 'AdventureWorks_Data' -- Processed 3 pages for database 'AdventureWorks', file 'AdventureWorks_Log' on file 1. 'AdventureWorks_Log' -- RESTORE DATABASE successfully processed 17675 pages in 6.716 seconds (20.560 MB/sec). seconds RESTORE LOG AdventureWorks FROM DISK = N'C:Program FilesMicrosoft SQL N'C: Files ServerMSSQL10.SQL08DE01MSSQLBackupAdventureWorks4MirrorLog.bak' Server MSSQL10.SQL08DE01 MSSQL Backup WITH FILE = 1, NORECOVERY; GO -- Processed 0 pages for database 'AdventureWorks', file 'AdventureWorks_Data' on file 1. 'AdventureWorks_Data' -- Processed 1849 pages for database 'AdventureWorks', file 'AdventureWorks_Log' on file 1. 'AdventureWorks_Log' -- RESTORE LOG successfully processed 1849 pages in 1.083 seconds (13.338 MB/sec).
  • 25. 7 25 Copyright 2009 all rights reserved
  • 26. 9 26 Copyright 2009 all rights reserved
  • 27. 11 27 Copyright 2009 all rights reserved
  • 28. 12 28 Copyright 2009 all rights reserved
  • 29. 13 29 Copyright 2009 all rights reserved
  • 30. 14 30 Copyright 2009 all rights reserved
  • 31. 15 31 Copyright 2009 all rights reserved
  • 32. 16 32 Copyright 2009 all rights reserved
  • 33. Instance: SQL2008xyz Endpoint Name: “endpoint4mirroring” Role: PARTNER PH Topology SQL Server 2008 Instance: SQL2008zzz Principal Endpoint Name: “endpoint4mirroring” Server Role: PARTNER OLTP Application SQL Server 2008 Active Mirror Server Clustered Replication Adventure Adventure Works DB Works DB translog translog Passive PH Topology Principal Server SQL Server 2008
  • 34. DB Mirroring 2005 Benchmarks Repl_rows stored procedure 9999999 Send Rate
  • 35. DB Mirroring 2008 Benchmarks Send Rate 41% More
  • 36. DB Mirroring 2005 Benchmarks Restore Rate
  • 37. DB Mirroring 2008 Benchmarks Restore Rate 52% more
  • 38. DB Mirroring 2005 Benchmarks
  • 39. DB Mirroring 2008 Benchmarks
  • 40. DB Mirroring Benchmark Summary Overall send rate 41 % faster (2005 vs 2008) Overall restore rate 52% faster (2005 vs 2008) Overall availability topology inherits the restore rate ~ 50% more available Example: 743 ms Transaction (in 2005 mirroring configuration) 379 ms Transaction (in 2008 mirroring configuration) In failover, what would have been 20 seconds before mirror becomes principal turns into roughly 8-10 seconds (or 3seconds turns into 1.5 seconds, so on). 40 Copyright 2009 all rights reserved
  • 41. Snapshots 41 Copyright 2009 all rights reserved
  • 42. Tr an s Us acti er on s al SQL Server 2008 01 AdventureWork Source CREATE DB ‘xyz’ s DB Server AS SNAPSHOT OF AdventureWorks translog Database Snapshot --- Reverting --- if needed --- RESTORE DB AdventureWorks FROM DATABASE_SNAPSHOT = ‘xyz’ d- U e y) s ea ing tim nl r O se (R rt in- po nt- Re Poi
  • 43. Source Data Pages Source 02 SQL Server 2008 Sparse SQL Server File Pages Snapshot AdventureWork AdventureWork s DB s DB Empty Sparse file of a Snapshot just created (no updates to original data pages have occurred yet) 43 Copyright 2009 all rights reserved
  • 44. Source Data Pages Source 03 SQL Server 2008 Sparse SQL Server File Pages Snapshot AdventureWork AdventureWork s DB s DB System Catalog Copy of original of changed pages pages for snapshot only when a page is changed (Copy-on-write) 44 Copyright 2009 all rights reserved
  • 45. Snapshot Users Source Data Pages SELECT …..data……. FROM AdventureWorks SNAPSHOT 04 SQL Server 2008 SQL Server Snapshot AdventureWork AdventureWork s DB s DB System Catalog Sparse of changed pages File Pages 45 Copyright 2009 all rights reserved
  • 46. Transactional Users Data Pages A C Update Row Committed SQL Server 2008 05 Sparse SQL Server File B Pages Snapshot AdventureWork B AdventureWork s DB s DB translog B System Catalog of changed pages Copy of original pages for snapshot use B only when a page is changed (Copy-on-write)
  • 47. Us All er s SQL Server 2008 06 UPDATE AWSource.tableX AdventureWorks Source DB set xyz = … Server FROM AWSnapshot6:00AM.tableX translog Database 6:00AM Snapshot Snapshot Database 12:00PM Snapshot Snapshot Restore from Database 6:00PM Snapshot Snapshot Any Point-in-time Database 12:00AM Snapshot Snapshot if needed Snapshot
  • 48. Us er Generating s Mass Changes SQL Server 2008 07 Source UPDATE AWSource.tableX AdventureWorks set xyz = … Server DB FROM AWSafegaurd6:00AM.tableX Database SAFEGUARD Snapshot Snapshot (Before the mass changes) Restore from snapshot (if changes are not correct)
  • 49. Te Us stin er g s SQL Server 2008 08 Source AdventureWorks Server DB Database BEFORE TEST Snapshot Snapshot Restore from the BEFORE snapshot after testing cycle is complete and can continue with next test.
  • 50. Tr an s Us act er ion s al Re Poi po nt-i (R rt n- e a i n g ti m d- U e O se SQL Server 2008 nl r s y) 09 AdventureWorks Source DB Server translog Database 6:00AM Reporting Snapshot Snapshot Database 12:00PM Reporting Snapshot Snapshot Database 6:00PM Reporting Snapshot Snapshot Database 12:00AM Reporting Snapshot Snapshot
  • 51. SQL Server 2008 SQL Server 2008 Mirror Server 10 Principal AdventureWorks Server AdventureWorks DB DB translog translog Database Database Snapshot Snapshot becomes the mirror. If this server node SQL Server 2008 Witness rk rk s oo er MSDB DB tw Server tw Us Ne Ne g n rti po Re 51 Copyright 2009 all rights reserved
  • 52. Instance: SQL2008xyz Endpoint Name: “endpoint4mirroring” Role: PARTNER PH Topology With Snapshots SQL Server 2008 Instance: SQL2008zzz Principal Endpoint Name: “endpoint4mirroring” Server Role: PARTNER OLTP Application SQL Server 2008 Active Mirror Server Clustered Replication Adventure Adventure Works DB Works DB translog translog Database Passive PH Snapshot Network Topology Network Principal Server SQL Server 2008 52 Reporting Users Copyright 2009 all rights reserved
  • 53. DB Mirror and Publisher Replication SQL Server 2008 SQL Server 2008 Principal Mirror SQL Server 2008 Server Server Subscriber Distributor SQL Server 2008 SQL Server 2008 Principal Mirror Server Server SQL Server 2008 SQL Server 2008 Witness Server Subscriber 53 Copyright 2009 all rights reserved
  • 54. Distributing Data Sites Data Access Latency Autonomy Frequency Network Machines Owner Other REPLICATION (locations) Each site only Read Only Central Publisher fast/ 1 Transactional repl short high many high 1 OLTP needs regional Reporting Database Mirroring stable server/site site filter by region data Each site only Read Only Central Publisher fast/ 1 Snapshot repl long high many low 1 OLTP needs regional Reporting Database Mirroring stable server/site site filter by region data Regional updates Central Publisher Read Mostly fast/ 1 Transactional repl A few updates short high < 10 medium 1 OLTP on one table stable server/site site Updating Subs Regional update Read Mostly Central Publisher slow/ 1 All Merge repl A few updates medium high < 10 medium all tables unreliab server/site update Regional update Read equal Peer-to-Peer fast/ 1 All Transactional Equal updates short high < 10 medium all tables stable server/site update repl Each site only Inserts 1 Central Subscriber fast/ 1 Transactional repl (new orders) short high many high needs regional stable server/site report data site Central Publisher Hot/Warm Very fast/ 1 Fail-over Remote Distributor high <2 high 1 OLTP Spare short stable server/site site Transactional repl Database Mirroring 54 Copyright 2009 all rights reserved
  • 55. Questions Is there any time left???? Send your questions to: pbertucci@dbarchitechs.com or tgerardin@dbarchitechs.com Copyright 2009 all rights reserved
  • 56. Products Database Products SQL SuperVision – Sybase SQL SuperVision – Oracle SQL SuperVision – MS SQL Server