返回顶部
首页 > 资讯 > 数据库 >[AlwaysOn] 创建SQL Server高可用性组T-SQL语法:AVAILABILITY_MODE参数
  • 924
分享到

[AlwaysOn] 创建SQL Server高可用性组T-SQL语法:AVAILABILITY_MODE参数

2024-04-02 19:04:59 924人浏览 薄情痞子
摘要

AVAILABILITY_MODE = { SYNCHRONOUS_COMMIT | ASYNCHRONOUS_COMMIT | CONFIGURATION_ONLY } 同步提交或异步提交指定在主副

AVAILABILITY_MODE = { SYNCHRONOUS_COMMIT | ASYNCHRONOUS_COMMIT | CONFIGURATION_ONLY }

同步提交或异步提交指定在主副本可以提交给定主数据库上的事务之前,主副本是否必须等待辅助副本确认将日志记录硬化(写入)到磁盘。SYNCHRONOUS_COMMIT or ASYNCHRONOUS_COMMIT specifies whether the primary replica has to wait for the secondary replica to acknowledge the hardening (writing) of the log records to disk before the primary replica can commit the transaction on a given primary database. 同一主副本上不同数据库上的事务可以独立提交。The transactions on different databases on the same primary replica can commit independently. SQL Server 2017 CU 1引入仅配置选项。sql Server 2017 CU 1 introduces CONFIGURATION_ONLY.仅配置副本仅适用于群集类型为“外部”或“无”的可用性组。CONFIGURATION_ONLY replica only applies to availability groups with CLUSTER_TYPE = EXTERNAL or CLUSTER_TYPE = NONE.

同步提交 SYNCHRONOUS_COMMIT

指定主副本等待提交事务,直到在此次副本(同步提交模式)上对它们进行了固化。Specifies that the primary replica waits to commit transactions until they have been hardened on this secondary replica (synchronous-commit mode). 您可以为最多三个副本(包括主副本)指定同步提交。You can specify SYNCHRONOUS_COMMIT for up to three replicas, including the primary replica.

异步提交 ASYNCHRONOUS_COMMIT

指定主副本提交事务而不等待辅助副本固化日志(同步提交可用性模式)。Specifies that the primary replica commits transactions without waiting for this secondary replica to harden the log (synchronous-commit availability mode). 您可以为最多五个可用性副本(包括主副本)指定异步提交。You can specify ASYNCHRONOUS_COMMIT for up to five availability replicas, including the primary replica.

CONFIGURATION_ONLY

指定主副本将可用性组配置元数据同步提交到此副本上的主数据库。Specifies that the primary replica synchronously commit availability group configuration metadata to the master database on this replica. 副本将不包含用户数据。The replica will not contain user data. 此选项:This option:

l   可以托管在任何版本的SQL Server上,包括Express版本。Can be hosted on any edition of SQL Server, including Express Edition.

l   要求配置唯一副本的数据镜像终结点为见证类型。Requires the data mirroring endpoint of the CONFIGURATION_ONLY replica to be type WITNESS.

l   不能更改。Can not be altered.

l   当集群类型为WSFC时无效。Is not valid when CLUSTER_TYPE = WSFC.

有关详细信息,请参阅仅配置副本。For more infORMation, see Configuration only replica.

AVAILABILITY_MODE 子句是必需的。The AVAILABILITY_MODE clause is required.有关详细信息,请参阅可用性模式(始终在可用性组上)。For more information, see Availability Modes (Always On Availability Groups).

您可能感兴趣的文档:

--结束END--

本文标题: [AlwaysOn] 创建SQL Server高可用性组T-SQL语法:AVAILABILITY_MODE参数

本文链接: https://lsjlt.com/news/45057.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作