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

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

时间:2014-04-29 13:33:20      阅读:444      评论:0      收藏:0      [点我收藏+]

标签:sql   sql server 2012   microsoft   

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

标签:sql   sql server 2012   microsoft   

原文地址:http://blog.csdn.net/wzhiu/article/details/24630281

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