两台sql server2005的服务器,今天突然有几台服务器的状态显示(主体-挂机)
在服务器上执行 ALTER DATABASE DB1 SET PARTNER RESUME,执行之后便会"主体,已同步",但是过了几秒,又变成"主体 挂起"
如此反复,每次执行一下以上代码之后就又马上变成"主体 挂起"
请问这个是什么原因?

解决方案 »

  1.   

    主体数据库没有错误,在镜像服务器上发现这个提示消息
    While acting as a mirroring partner for database 'DB', server instance 'DBServer-02' encountered error 9004, status 3, severity 21. Database mirroring will be suspended.  Try to resolve the error and resume mirroring.
      

  2.   

    遇到 error 9004, status 3, severity 21.
    上面这些信息是关键,百度一下吧,都是专业E文
      

  3.   

    In most cases, this error is just seen in the ERRORLOG or Windows Application Event Log with EventID = 9004 because the operation processing the log is not based on a direct user command (such as recovery running when the SQL Server Engine starts. In these situations this error is often seen with Error 3414). However, some queries such as ALTER DATABASE could require a processing of the log and therefore will see these errors. Since the error is Severity=21, the user session is disconnected.
      

  4.   

    在镜像服务器里果然有这个提示 服务器实例 'DBServer-02-02' 在充当数据库 'DB' 的镜像伙伴时遇到错误 9004,状态 3,严重性 21。数据库镜像将挂起。请尝试纠正该错误,然后恢复镜像。