Chapter 15: Achieving High Availability Through Replication.

Slides:



Advertisements
Similar presentations
Database Systems: Design, Implementation, and Management
Advertisements

ISOM Distributed Databases Arijit Sengupta. ISOM Learning Objectives Understand the concept and necessity of distributed databases Understand the types.
© 2012 VMware Inc. All rights reserved What’s New in vCloud Director and vCloud Automation Center Joe Desmond, VMware Certified Instructor.
Mecanismos de alta disponibilidad con Microsoft SQL Server 2008 Por: ISC Lenin López Fernández de Lara.
Database Management System MIS 520 – Database Theory Fall 2001 (Day) Lecture 13.
Distributed databases
SQL Server Replication
Transaction.
©2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 5 Slide 1 IT390 Business Database Administration Unit 5 :
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Chapter 13 (Web): Distributed Databases
Moving data using replication Anthony Brown
Overview Distributed vs. decentralized Why distributed databases
Definition of terms Definition of terms Explain business conditions driving distributed databases Explain business conditions driving distributed databases.
Working with SQL and PL/SQL/ Session 1 / 1 of 27 SQL Server Architecture.
Module 14: Scalability and High Availability. Overview Key high availability features available in Oracle and SQL Server Key scalability features available.
Distributed Databases
Distributed Database and Replication. Distributed Database A logically interrelated collection of shared data and a description of this data physically.
Module 9: SQL Server 2005 Replication. Overview Overview of Replication Enhancements New Types of Replication Configuring Replication.
Chapter 2 Administrating DB Engine. Database Engine  The Database Engine is the core service for storing, processing, and securing data.  It provides.
SQL Server Replication
SQL Server 2008 Implementation and Maintenance Chapter 7: Performing Backups and Restores.
70-294: MCSE Guide to Microsoft Windows Server 2003 Active Directory, Enhanced Chapter 7: Active Directory Replication.
SQL Server Replication By Karthick P.K Technical Lead, Microsoft SQL Server.
IMS 4212: Distributed Databases 1 Dr. Lawrence West, Management Dept., University of Central Florida Distributed Databases Business needs.
Module 4: Implementing Transactional Replication.
Module 3: Managing Database Files. Overview Introduction to Data Structures Creating Databases Managing Databases Placing Database Files and Logs Optimizing.
© Paradigm Publishing Inc. 9-1 Chapter 9 Database and Information Management.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
DISTRIBUTED DATABASES IN ADBMS Shilpa Seth
Database Management System Module 5 DeSiaMorewww.desiamore.com/ifm1.
Architecture Rajesh. Components of Database Engine.
Module 2: Creating Efficient Replication Solutions.
Lecture 5: Sun: 1/5/ Distributed Algorithms - Distributed Databases Lecturer/ Kawther Abas CS- 492 : Distributed system &
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 12 Distributed Database Management Systems.
Professor Michael J. Losacco CIS 1110 – Using Computers Database Management Chapter 9.
Module 1: Exploring Replication. Overview Understanding SQL Server Replication Setting Up Replication Understanding Agents in Replication Securing Replication.
Overview – Chapter 11 SQL 710 Overview of Replication
Module 6: Implementing SQL Server Replication in an Enterprise Environment.
1 Chapter Overview Introducing Replication Planning for Replication Implementing Replication Monitoring and Administering Replication.
Planning Server Deployments Lesson 20. Skills Matrix.
Module 11: Introducing Replication. Overview Introduction to Distributed Data Introduction to SQL Server Replication SQL Server Replication Agents SQL.
7. Replication & HA Objectives –Understand Replication and HA Contents –Standby server –Failover clustering –Virtual server –Cluster –Replication Practicals.
Chapter 12: Designing a Data- Archiving Solution MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design Study Guide (70-443)
1 Distributed Databases BUAD/American University Distributed Databases.
 Replication is the process of copying database information  Replication is used for:  Backing up your database  Migrating to a new server  Mirroring.
SQL Server 2005 Implementation and Maintenance Chapter 12: Achieving High Availability Through Replication.
Ing. Erick López Ch. M.R.I. Replicación Oracle. What is Replication  Replication is the process of copying and maintaining schema objects in multiple.
Module 5: Implementing Merge Replication. Overview Understanding Merge Replication Architecture Implementing Conflict Resolution Planning and Deploying.
Connect with life Vinod Kumar Technology Evangelist - Microsoft
Introduction to Distributed Databases Yiwei Wu. Introduction A distributed database is a database in which portions of the database are stored on multiple.
DATABASE REPLICATION DISTRIBUTED DATABASE. O VERVIEW Replication : process of copying and maintaining database object, in multiple database that make.
 Distributed Database Concepts  Parallel Vs Distributed Technology  Advantages  Additional Functions  Distribution Database Design  Data Fragmentation.
Distributed DBMS, Query Processing and Optimization
Ch 12. Replication. Replication Place copies of data to a different location Use: Reduce locking conflict when multiple sites want to work on same set.
1 Lecture 10: Distributed Databases – Replication and Fragmentation Advanced Databases CG096 Nick Rossiter.
1 Lecture 8 Distributed Data Bases: Replication and Fragmentation.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
Distributed Databases
In this session, you will learn to: Manage databases Manage tables Objectives.
LM 9. Distributed Database Dr. Lei Li 1. Note: The content of the slides including figures are mainly based on a publicly available textbook chapter:
Temporal Databases Microsoft SQL Server 2016
Transactional Replication Deep Dive
Distributed Database Management Systems
Glasgow, SQL Server Meetup
Introduction to transactional replication
Temporal Databases Microsoft SQL Server 2016
Getting Started With SQL Server Replication
Introduction to Replication
Chapter 10 Transaction Management and Concurrency Control
Presentation transcript:

Chapter 15: Achieving High Availability Through Replication

Introduction  Use replication to copy data to different locations in your enterprise  There are several reasons Move data closer to the users To reduce locking conflictsTo allow site autonomy To remove the impact of read- intensive operations © Wiley Inc All Rights Reserved.

Publisher/Subscriber Metaphor  There are several key terms used in replication Publisher  the source database where replication begins. It makes data available for replication Subscriber  the destination database where replication ends Distributor  the intermediary between the publisher and subscriber. It receives published transactions or snapshots and then stores and forwards these publications to the subscribers Publication  is the storage container for different articles. A subscriber can  subscribe to an individual article or an entire publication. Article  the data, transactions, or stored procedures that are stored within a publication. This is the actual information that is going to be replicated. © Wiley Inc All Rights Reserved.

Articles  An article is data in a table  It can be the whole table or just a subset Horizontal partitioning  Rows are filtered out Vertical partitioning  Columns are filtered out © Wiley Inc All Rights Reserved.

Publications  A publication is a logical collection of articles  Subscribers subscribe to a publication They do not need to read all of the articles though © Wiley Inc All Rights Reserved.

Replication Factors  Factors that affect replication are Autonomy  Level of subscriber independence Will the replicated data be considered read-only? How long will the data at a subscriber be valid? How often do you need to connect to the distributor to download more data? Latency  Frequency of data updates Transactional Consistency  Do all the transactions that are stored need to be applied at the same time and in order? What happens if there is a delay in the processing? © Wiley Inc All Rights Reserved.

Using Transactional Replication  Transactions from the publisher are stored on the distributor  Subscribers receive and apply transactions They should treat data as read-only  Some latency and autonomy can be introduced  Subscribers do not need to be in contact with publishers at all times © Wiley Inc All Rights Reserved.

Using Snapshot Replication  Moves an entire copy of the published items © Wiley Inc All Rights Reserved.

Snapshot With Updating Subscribers  Initial replication works just like snapshot replication  Subscribers use 2PC to update the publisher  Publishers must approve subscriber updates © Wiley Inc All Rights Reserved.

Using Merge Replication  This allows subscribers to make changes to their local data  All changes are merged with all other subscribers When all subscribers have the same data, they are in convergence © Wiley Inc All Rights Reserved.

Using Queued Updating  Used with transactional and snapshot replication  Allows subscribers to update publishers  Updates are queued, not immediate  There are other Restrictions © Wiley Inc All Rights Reserved.

Replication Internals  There are two types of subscriptions  Push Configured and maintained at the publisher  Pull Configured and maintained at the subscriber © Wiley Inc All Rights Reserved.

Publication Issues  Timestamp datatype This is replicated as binary data in transactional and snapshot Data is not replicated in merge  Identity values You can assign a range of values to replicate  User-defined datatypes These must be created on each subscriber  Not for replication Prevents objects from being replicated © Wiley Inc All Rights Reserved.

Publication Restrictions  Replicated tables must have a primary key. Except in snapshot replication.  Publications cannot span multiple databases.  Varchar(max), nvarchar(max), and varbinary(max) data is not replicated in transactional or merge replication. Because of their size, these objects must be refreshed by running a snapshot.  You cannot replicate from the master, model, MSDB, or tempdb databases. © Wiley Inc All Rights Reserved.

Distributor Issues  Ensure you have enough hard disk space for the Distribution working folder and the distribution database.  Do not let the distribution database’s transaction log fill up.  The distribution database will store all transactions from the publisher to the subscriber. It will also track when those transactions were applied.  Snapshots and merge data are stored in the Distribution working folder.  Be aware of the size and number of articles being published.  Text, ntext, and image datatypes are replicated only when you use a snapshot.  A higher degree of latency can significantly increase your storage space requirements.  Know how many transactions per synchronization cycle there are. © Wiley Inc All Rights Reserved.

Replication Backup  There are four possible strategies Publisher only Publisher and distributor Publisher and subscriber(s) Publisher, distributor and subscriber(s) © Wiley Inc All Rights Reserved.