63
Introduction In this article, I want to tell you about some general Microsoft SQL Server replication's topics: replication topologies, replication types, replication agents; and about Snapshot replication: how to check necessary conditions for this replication type, how to backup and restore databases participated in this replication scenario, and how to setting up Snapshot replication step by step. Because it's only test example, I used only one server to replicate data: Publisher, Subscriber and Distributor databases were resided on the same machine. General concepts Replication is the process whereby data is copied between database s on the same server or different servers connected by LANs, WANs, or the Internet. Microsoft SQL Server replication uses a publisher, distributor and subscriber metaphor. Publisher is the server or database that sends its data to another server or database. Subscriber is the server or database that receives data from another server or database. Distributor is the server that manages the flow of data through the replication system. This server contains the distribution database. Publisher contains publication/publications . Publication is a collection of one or more articles that is sent to a subscriber server or database. Article is the basic unit of replication and can be a table or a subset of a table. Subscription is the group of data that a server or database will receive. There are push and pull subscription s. Push subscription is subscription when the publishing server will periodically push transactions out to the subscribing server or database. Pull subscriptio n is subscription when the subscribing server will periodically connect to the distribution database and pull information. The Distribution database is a system database, which is stored on the Distributor and does not contain any user tables. This database is used to store snapshot jobs and all transactions waiting to be distributed to Subscribers. Replication topologies Microsoft SQL Server supports the following replication topologies: Central publisher Central subscriber Central publisher with remote distributor Central distributor Publishing subscriber Central publisher This is one of the most used replication topologies. In this scenario, one server is configured as Publisher and Distributor and another server/servers is/are configured as Subscriber/Subscribe rs. Central subscriber 1

Replication Concepts

Embed Size (px)

Citation preview

Page 1: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 1/63

Page 2: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 2/63

Page 3: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 3/63

Page 4: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 4/63

Page 5: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 5/63

Page 6: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 6/63

Page 7: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 7/63

Page 8: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 8/63

Page 9: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 9/63

Page 10: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 10/63

Page 11: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 11/63

Page 12: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 12/63

Page 13: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 13/63

Page 14: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 14/63

Page 15: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 15/63

Page 16: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 16/63

Page 17: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 17/63

Page 18: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 18/63

Page 19: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 19/63

Page 20: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 20/63

Page 21: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 21/63

Page 22: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 22/63

Page 23: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 23/63

Page 24: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 24/63

Page 25: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 25/63

Page 26: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 26/63

Page 27: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 27/63

Page 28: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 28/63

Page 29: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 29/63

Page 30: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 30/63

Page 31: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 31/63

Page 32: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 32/63

Page 33: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 33/63

Page 34: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 34/63

Page 35: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 35/63

Page 36: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 36/63

Page 37: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 37/63

Page 38: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 38/63

Page 39: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 39/63

Page 40: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 40/63

Page 41: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 41/63

Page 42: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 42/63

Page 43: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 43/63

Page 44: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 44/63

Page 45: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 45/63

Page 46: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 46/63

Page 47: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 47/63

Page 48: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 48/63

Page 49: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 49/63

Page 50: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 50/63

Page 51: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 51/63

Page 52: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 52/63

Page 53: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 53/63

Page 54: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 54/63

Page 55: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 55/63

Page 56: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 56/63

Page 57: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 57/63

Page 58: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 58/63

Page 59: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 59/63

Page 61: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 61/63

Page 62: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 62/63

Page 63: Replication Concepts

8/6/2019 Replication Concepts

http://slidepdf.com/reader/full/replication-concepts 63/63