SQL Server 镜像 - 具有多个 SQL 实例的端点设置

发布于 2024-11-19 17:09:54 字数 318 浏览 5 评论 0原文

我目前有 2 个 SQL Server:SQL01 和 SQL02。这些服务器中的每一个都有两个实例: SQL01\Prod、SQL01\uat、SQL02\prod 和 SQL02\uat

我目前在 SQL01\uat 和 SQL02\uat 之间进行了镜像设置,工作正常。

现在我们即将结束测试,我们想要设置 prod 实例。但是我们在产品中设置镜像时遇到了问题,错误类似于找不到远程数据库。

看起来每个服务器都有一个端点端口。

是否可以为每个实例创建一个镜像端点。例如,SQL01\uat 的端口为 5022,SQL01\prod 的端口为 5023?

I currently have 2 SQL Servers: SQL01 and SQL02. Each of these servers have two instances:
SQL01\Prod, SQL01\uat, SQL02\prod and SQL02\uat

I currently have mirroring setup between SQL01\uat and SQL02\uat, this is working fine.

Now that we are moving out of testing we want to setup the prod instance. But we are having trouble setting up the mirroring in prod, the error is something akin to cannot find the remote database.

It appears that each server has a single endpoint port.

Is it possible to create a mirroring endpoint per instance. For example so that SQL01\uat has a port of 5022 and SQL01\prod has a port of 5023?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

强者自强 2024-11-26 17:09:54

是的,您可以在创建端点时指定 TCP 端口:

CREATE ENDPOINT endpoint_mirroring
    STATE = STARTED
    AS TCP ( LISTENER_PORT = 5022)
    FOR DATABASE_MIRRORING (
       AUTHENTICATION = WINDOWS KERBEROS,
       ENCRYPTION = SUPPORTED,
       ROLE=ALL);
GO

Yes, you can specify the TCP port when creating the endpoint:

CREATE ENDPOINT endpoint_mirroring
    STATE = STARTED
    AS TCP ( LISTENER_PORT = 5022)
    FOR DATABASE_MIRRORING (
       AUTHENTICATION = WINDOWS KERBEROS,
       ENCRYPTION = SUPPORTED,
       ROLE=ALL);
GO
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文