Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1300851
  • 博文数量: 127
  • 博客积分: 2286
  • 博客等级: 大尉
  • 技术积分: 1943
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-10 10:37
文章分类

全部博文(127)

文章存档

2018年(1)

2015年(2)

2014年(1)

2013年(30)

2012年(88)

2011年(5)

分类: 数据库开发技术

2012-07-09 15:26:10

Replication
===============================================
  1. based on publish-subscribe model\
  2. Standard Edition
  3. near real time replication
  4. manual fail-over, need to use VIP or ask the application to change database IP 
  5. is probably the most complex, specifically when it comes down to troubleshooting or management

There are some limitations we have to consider:
  • cannot truncate table. otherwise need to re-create the replication
  • all tables should have Primary keys
  • no transitional in triggers
  • special steps should be taken for text, ntext and image data type
  • schema change is complex, need some steps from the replication side whenever we do below changes
    • add/drop objects
    • alter table
    • Alter view
    • Alter procedure
    • Alter function
    • Alter triggers
  • replication is often broken, we need to investigate the reason and resolve it manually.



Log Shipping
===============================================
  1. based on backup/restore model
  2. supported by Standard Edition
  3. replication lag is the biggest
  4. manual fail-over, need to use VIP or ask the application to change database IP
  5. simple and stable, very easy for maintenance



Database Mirror
===============================================
  1. Based on transaction, no transactional data losing
  2. Standard Edition only offers high-safety mode(synchronous replication) and Enterprise Edition supports high-performance mode(asynchronously)
  3. real time replication
  4. automatic fail-over, the standby database becomes active and clients are redirected without any data loss or downtime
  5. complex and stable

阅读(1809) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~