配置SQL Server AlwaysOn高可用性组

本文详细介绍了如何分步配置SQL Server的AlwaysOn高可用性组,包括创建服务帐户、配置管理员权限、启用AlwaysOn功能、创建共享位置等关键步骤,以实现两个节点间的高可用性。
摘要由CSDN通过智能技术生成

In this article, we will learn the step by step configuration of SQL Server AlwaysOn High availability Group for two nodes. Once nodes are added to the cluster group, we will able to use the AlwaysOn feature in the SQL server.

在本文中,我们将学习两个节点SQL Server AlwaysOn高可用性组的分步配置。 将节点添加到群集组后,我们将能够使用SQL Server中的AlwaysOn功能。

In the following steps, we will create a Service account to connect SQL server instances. The Service account will be used to connect the SQL instance from both the node servers.

在以下步骤中,我们将创建一个服务帐户来连接SQL Server实例。 服务帐户将用于从两个节点服务器连接SQL实例。

创建服务帐户 (Create a Service Account)

We will log in to the Domain controller and perform the following steps.

我们将登录到域控制器并执行以下步骤。

Open Server Manager, Tools and Click Active Directory Users and Computers.

打开服务器管理器工具,然后单击“ Active Directory用户和计算机”

Create a Service Account

In Active Directory Users and Computers window, Right-Click Users > New > User as shown in the following Fig.

在“ Active Directory用户和计算机”窗口中, 右键单击“用户”>“新建”>“用户” ,如下图所示。

Active directory, new user

In this step, we will create a Service account username, Specify the service account login name and Click Next

在此步骤中,我们将创建一个服务帐户用户名,指定服务帐户登录名,然后单击“下一步”。

create a Service account username

Specify a Password and tick the options for User cannot change password and Password never expires. We need to select Password never expires option because, if the password expired, the service account login would fail, and it will cause a problem to the high availability configuration.

指定密码,然后勾选“ 用户无法更改密码密码永不过期”选项 。 我们需要选择“ 密码永不过期”选项,因为如果密码过期,则服务帐户登录将失败,这将对高可用性配置造成问题。

SQL Server AlwaysOn High Availability - password expiration

Click Finish to complete the service account creation process.

单击完成以完成服务帐户创建过程。

SQL Server AlwaysOn High Availability - finish adding object

配置管理员权限,Windows用户和服务帐户的登录名 (Configure Administrator permission, windows user and login for the service account)

Once the Service account created on the Domain controller, we need to add service account as a member of the administrator account on both nodes.

在域控制器上创建服务帐户后,我们需要在两个节点上将服务帐户添加为管理员帐户的成员。

Connect to both node servers SQL1 and SQL2 and perform below steps

连接到两个节点服务器SQL1和SQL2并执行以下步骤

  • Add Service account as an Administrator

    将服务帐户添加为管理员
  • Create a Windows user for the Service account

    为服务帐户创建Windows用户
  • Create a Windows authentication login for a service account login in the SQL database instance

    在SQL数据库实例中为服务帐户登录创建Windows身份验证登录

Open Server manager and Select Tools and Computer Management

打开服务器管理器,然后选择“ 工具计算机管理”

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值