创建博客 登录  
 关注
   显示下一条  |  关闭

做最好的自己

我梦想终于有一天,我说服了我自己...

 
 
 

日志

 
 

Sql Server Replication 简介  

2008-08-12 09:39:19|  分类: SQLServer |  标签: |字号 订阅

reference:http://www.mssqlcity.com/FAQ/Replic/LinkSetRepl.htm

 

 数据库复制技术:在LANs, WANs 或Internet上的相同或不同的服务器上的数据库对象的拷贝。

General Concepts

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.

Publication is a collection of one or more articles that is sent to a subscriber server or database.Publisher contains publication/publications.

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.

Push subscription is subscription when the publishing server will periodically push transactions out to the subscribing server or database.(Publisher->Subscriber)

Pull subscription is subscription when the subscribing server will periodically connect to the distribution database and pull information.(Subscriber->Publisher)

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 是最常用的拓扑结构。

Central publisher

Central subscriber 一般用于data wrehoursing。 多个服务或数据库复制各自的数据到单一的服务或数据库中。Central subscriber

Central publisher with remote distributor 当复制操作比较频繁和重要,网络资源受限等情况下采用这种拓扑结构可以降低Publisher的负载,提高整个网络的通信流量。

Central publisher with remote distributor

 

Central distributor 这种拓扑最不常见,因为一旦dstributor服务器故障后,整个系统就无法工作了。

Central distributor


 Publishing subscriber This is a dual role topology. In this topology, two servers publish the same data. One publishing server sends data to subscriber, and then this subscriber publish data to any number of other subscribers. This is useful when a Publisher should send data to Subscribers over a slow or expensive communications link.

Publishing subscriber

Replication types

Microsoft SQL Server supports the following replication types:

  • Snapshot 从Publisher完全拷贝数据到Subscriber,适合数据容量不是很大,变化比较频繁的场景。
  • Transactional 捕捉所有articles中的变化,存储Intert,Update, Delete等操作到distribution database,然后由distributor将更改发送到subscriber按序执行。适合数据容量较大,变化较频繁的场景。
  • Merge Merge replication is a most difficult replication type. It allows making autonomous changes to replicated data on the Publisher and on the Subscriber. With Merge replication, SQL Server captures all incremental data changes in the source and in the target databases, and reconciles conflicts according to rules you configure or using a custom resolver you create. Merge replication is best used when you want to support autonomous changes the replicated data on the Publisher and on the Subscriber.

Replication agents

Microsoft SQL Server 7.0/2000 supports the following replication agents:

  • Snapshot Agent
  • Log Reader Agent
  • Distribution Agent
  • Merge Agent

The Snapshot Agent is a replication agent that makes snapshot files, stores the snapshot on the Distributor, and records information about the synchronization status in the distribution database. The Snapshot Agent is used in all replication types (Snapshot, Transactional, and Merge replications), and can be administered by using SQL Server Enterprise Manager.

The Log Reader Agent is a replication agent that moves transactions marked for replication from the transaction log on the Publisher to the distribution database. This replication agent is not used in Snapshot replication.

The Distribution Agent is a replication agent that moves the snapshot jobs from the distribution database to Subscribers, and moves all transactions waiting to be distributed to Subscribers. The Distribution Agent is used in Snapshot and Transactional replications, and can be administered by using SQL Server Enterprise Manager.

The Merge Agent is a replication agent that applies initial snapshot jobs from the publication database tables to Subscribers, and merges incremental data changes that have occurred since the initial snapshot was created. The Merge Agent is used only in Merge replication.

  评论这张
转发至微博
转发至微博
0   分享到:        
阅读(341)| 评论(0)| 引用 (0) |举报

历史上的今天

相关文章

最近读者

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--相关文章--> <#--历史上的今天--> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2012