[TroubleShooting] The server network address can not be reached or does not exist

Backtround:

I‘m trying to set up mirroring between two sql 2008 R2 databases on different servers in my internal network, as a test run before doing the same thing with two live servers in different locations.

When I actually try and switch the mirroring on the target DB (with

ALTER DATABASE xxxdb SET PARTNER = TCP://myserverAddress:50221‘) I‘m getting an error telling me that the server network address can not be reached or does not exist. A little research suggests this is a fairly unhelpful message that pops up due to a number
of possible causes, some of which are not directly related to the server existing or otherwise.

In fact, this is error is not clear for us.Checking the log, I‘m seeing the following errors. "Database
mirroring connection error 5 ‘Connection handshake failed. The certificate used by the peer is invalid due to the following reason: Certificate not found. State 89.‘ for ‘TCP://myserverAddress:50221‘." in
event viewer(eventvwr).

Solution:

You can manual copying the certificates around(Principal, Mirror and Witness). and drop login, user. and then create login, user with certificate responsed. Last, Grant
connect endpoint.

CREATE LOGIN HOST_pro_login WITH PASSWORD =‘Password01!‘;
CREATE USER HOST_pro_user FOR LOGIN HOST_pro_login;
-- drop CERTIFICATE HOST_pro_cert
CREATE CERTIFICATE HOST_pro_cert AUTHORIZATION HOST_pro_user FROM FILE =‘D:\Hot backup\HOST_pro_cert.cer‘;
GRANT CONNECT ON ENDPOINT::Endpoint_Mirroring TO [HOST_pro_login];

Other Suggestions:

The solution to the above problem is very simple and as follows.

Fix/WorkAround/Solution: Try all the suggestions one by one.

Suggestion 1: Make sure that on Mirror Server the database is restored with NO RECOVERY option (This is the most common problem).

Suggestion 2: Make sure that from Principal the latest LOG backup is restored to mirror server. (Attempt this one more time even though the full backup has been restored recently).

-- Back up:
GO
BACKUP DATABASE [dbName] TO  DISK = N‘D:\Hot backup\testbackup01.bak‘ WITH NOFORMAT, NOINIT,  NAME = N‘TestBackup01-Full Database Backup‘, SKIP, NOREWIND, NOUNLOAD,  STATS = 10
GO

BACKUP LOG [dbName] TO  DISK = N‘D:\Hot backup\TestBackup01.trn‘ WITH NOFORMAT, NOINIT,  NAME = N‘TestBackup01-Transaction Log  Backup‘, SKIP, NOREWIND, NOUNLOAD,  STATS = 10
GO

-- Restore
RESTORE DATABASE dbName FROM DISK = ‘D:\Hot backup\backup_TestBackup01.bak‘ WITH FILE = 1, NORECOVERY, NOUNLOAD;
RESTORE LOG dbName FROM DISK = ‘D:\Hot backup\backup_TestBackup01.trn‘ WITH FILE = 2, NORECOVERY, NOUNLOAD

Suggestion 3: Check if you can telnet to your ports using command TELNET ServerName Ports like “telnet SQLServerName 50221″.(Please add feature lelnet client|Server in server 2k8, if it not exsit.)

Suggestion 4: Make sure your firewall is turned off.

Suggestion 5: Verify that the endpoints are started on the partners by using the
state or state_desc column the of the sys.database_mirroring_endpoints catalog view. You can start end point by executing an ALTER ENDPOINT statement.

Suggestion 6: Try the following command as one of the last options.

GRANT CONNECT ON ENDPOINT::Mirroring TO ALL

Suggestion 7: Delete the end points and recreate them.

Suggestion 8: Check SQL log.

If any of above solutions does not fix your problem, do leave comment here. Based on the comment, I will update this article with additional suggestions.

Please note that some of the above suggestions can be security threat to your system. Please use them responsibly and review your system with security expert in your company.

[TroubleShooting] The server network address can not be reached or does not exist,码迷,mamicode.com

时间: 2024-11-08 19:20:12

[TroubleShooting] The server network address can not be reached or does not exist的相关文章

Internet protocol security (ipsec) packet processing for multiple clients sharing a single network address

Embodiments of the present invention address deficiencies of the art in respect to secure communications for multiple hosts in an address translation environment and provide a method, system and computer program product for IPsec SA management for mu

[转]Peer-to-Peer Communication Across Network Address Translators

Peer-to-Peer Communication Across Network Address Translators Bryan Ford Massachusetts Institute of Technology baford (at) mit.edu Pyda Srisuresh Caymas Systems, Inc. srisuresh (at) yahoo.com Dan Kegel dank (at) kegel.com J'fais des trous, des petits

IBM WebSphere Application Server Network Deployment 8.5.0.X 安装配置及补丁升级指南之Windows系统篇

自从IBM WebSphere Application Server(简称WAS)8.0发布以来,这个版本以及更高版本的安装与之前的WAS 5.x.6.x.7.x版本(也称传统的WAS版本)直接安装的方式做了一些变动,都需要通过IBM Installation Manager(简称IIM)安装管理工具来进行. 为方便新用户在安装时更加容易地完成安装与配置,特书写此安装指南以备参考. 下载地址为:http://www.java2class.net/bbs/viewthread.php?tid=24

Network Address Translation(转载)

Network Address Translation  来源:http://alexanderlaw.blog.hexun.com/9791596_d.html       地址转换用来改变源/目的地址/端口,是netfilter的一部分,也是通过hook点上注册相应的结构来工作       Nat注册的hook点和conntrack相同,只是优先级不同,数据包进入netfilter之后先经过conntrack,再经过nat.而在数据包离开netfilter之前先经过nat,再经过conntr

NAT (Network Address Translation)

NAT Introduction NAT: Provides the translation of private address to public address. ? NAT has many uses, but its primary use is to conserve public IPv4 addresses. It does this by allowing networks to use private IPv4 addresses internally and providi

NAT(Network Address Translation)网络地址转换

为了缓解ipv4将要枯竭的这种现状 通过使用动态nat可以将私有地址转换为公有地址的方式访问英特网从而节省ipv4 动态nat配置思路 1.配置内网和外网设备的IP地址    pc1ip 192.168.10.1     网关192.168.10.254 pc2  192.168.10.2       网关192.168.10.254 2.配置网关设备上的默认路由 <Huawei>system-view       ----- 进入系统视图 [Huawei]interface GigabitE

NTA(Network Address Translation)

本人没有系统的学过计算机网络,但是对计算机网络又特别好奇,可是每每看到那些讲解网络的大部头,就累觉不爱了. 但是,经过零零总总的学习,对网络多多少少还是有点了解的. 应用层     传输层 数据包 gateway 网络层 IP分组 router 数据链路层 帧 bridge 物理层 比特流 repeater 虽然不喜欢看那么多文字描述,但是总是试图把从我这台电脑上到你那台电脑上的流程想清楚. 比如,我在qq上打“I love you”,怎么就在你就知道我爱上你了呢. 首先,这个肯定是经过Sock

iptables 网址转译 (Network Address Translation,NAT)

当封包流经NAT電腦時,其位址/通訊端口會被修改,以達到改变包目的地(或旅程),或是让目的地误以为包是源自NAT电脑的效果.換言之,对封包执行NAT的电脑,可以成为新包的来源或目的地,或是成为真正来源与目的地之间的中继站. ***************************** 警告: NAT需要连线追踪的能力,而连线追踪又需要电脑能看到所有包才有效,所以,如果你的防火墙是有多台电脑构行,请小心避免破坏连线追踪. ***************************** 利用NAT的位址/

NAT(地址转换技术): Network Address Translation Protocol解析

版权声明:本文为@小小呆原创文章,出处! https://blog.csdn.net/gui951753/article/details/79593307 目录 NAT产生背景ip地址基础知识NAT技术的工作原理和特点静态NAT动态NATNAT重载(经常应用到实际中)NAT技术的优缺点优点缺点NAT穿越技术应用层网关(ALG)ALG的实际应用NAT技术的未来参考文献 NAT产生背景 今天,无数快乐的互联网用户在尽情享受Internet带来的乐趣.他们浏览新闻,搜索资料,下载软件,广交新朋,分享信