码迷,mamicode.com
首页 > 数据库 > 详细

[TroubleShooting]Neither the partner nor the witness server instance for database is availble

时间:2018-12-02 12:25:11      阅读:244      评论:0      收藏:0      [点我收藏+]

标签:The   mod   class   tis   name   pen   release   cte   clear   

Problem:

You are trying to setup a mirroring on a Database called xxxDB(SQL server 2012).

You are getting this error while trying to setup mirroring.
“Neither the partner nor the witness server instance for database “xxxDB” is available. Reissue the command when at least one of the instances becomes available. (Microsoft SQL Server, Error: 1431)”

Cause:

This can happen if the mirroring breaks.The principal server is not configured for mirroring any more  , but the mirror server still thinks that he is the mirror partner. The state of the Mirror server is  “Disconnected”.

Solution:

At the Mirror server open Microsoft SQL Managment Studio , and run the command

ALTER DATABASE “DBNAME” SET PARTNER OFF

This will remove the mirroring partnership from the mirror server.

Then run the mirroring wizard again , on the principal server.

[TroubleShooting]Neither the partner nor the witness server instance for database is availble

标签:The   mod   class   tis   name   pen   release   cte   clear   

原文地址:https://www.cnblogs.com/ldxsuanfa/p/10052151.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!