SQL Server 2012 Always on Availability Groups安装Step by step 3

可用性组我们已经创建成功了,现在测试一下Node2 上读取数据以及Failover.

1.数据测据:Node1上创建表test插入记录

SQL Server 2012 Always on Availability Groups安装Step by step 3

在Node2上访问test数据库,数据可以查到(在Mirror中是不可以查询的,而且数据同步不会导致Node2的连接断掉):

SQL Server 2012 Always on Availability Groups安装Step by step 3

2.Failover测试:

SQL Server 2012 Always on Availability Groups安装Step by step 3

连接到Node2:

SQL Server 2012 Always on Availability Groups安装Step by step 3

SQL Server 2012 Always on Availability Groups安装Step by step 3

SQL Server 2012 Always on Availability Groups安装Step by step 3

Failover后(Primary已经变成Node2):

SQL Server 2012 Always on Availability Groups安装Step by step 3

可以看到Always On group 既保证了高可用性,有可以实现同步数据库的只读访问,提供了硬件的利用率,非常给力的一个功能。

Part1:http://blog.csdn.net/smithliu328/article/details/7886455

Part2:http://blog.csdn.net/smithliu328/article/details/7886513

更多信息可以参考:MicrosoftSQL Server AlwaysOn Solutions Guide for High Availability and Disaster Recoveryhttp://msdn.microsoft.com/en-us/library/hh781257.aspx

SQL Server 2012 AlwaysOn High Availability and Disaster Recovery DesignPatternshttp://sqlcat.com/sqlcat/b/msdnmirror/archive/2011/12/22/sql-server-2012-alwayson-high-availability-and-disaster-recovery-design-patterns.aspx

你可能感兴趣的:(sql,server)