zoukankan      html  css  js  c++  java
  • [TroubleShooting] The remote copy of database xx has not been rolled forward to a point in time

    Steps:

    1. backup database TestMirror on Pricipal server

    2. backup database log of TestMirror on Pricipal server

    3. copy db and log backup files to Mirror server

    4. restore db with norecovery

    5. restore log with norecovery

    6. create endpoints on both Pricipal serverand Mirror server

     

    Issue:

    If you use sql command or Mirror wizard to set mirror machine.

    It will show error: "The remote copy of database "DBmirrorTest" has not been rolled forward to a point in time that is encompassed in the local copy of the database log."

    Or

    1.  ALTERDATABASETestBackup01SETPARTNER='TCP://isrv04.xxx:50221';

    2. Tasks -> Mirror ->Mirroring -> Config Security

    Solutions:

    RESTORE DATABASE @dbname FROM DISK = @backupfile WITH FILE = 1, NORECOVERY, NOUNLOAD;
    RESTORE LOG @dbname FROM DISK = @backupfile WITH FILE = 2, NORECOVERY, NOUNLOAD;
    


    These did the trick for me. I generated the commands through the "Script"-menu within the "Restore Database"-dialog of the Management Studio, because enabling mirroring was no problem when I restored through the "Restore Database"-dialog. My manually written SQL-commands were missing the "NOUNLOAD" part.

    版权声明:本文博客原创文章,博客,未经同意,不得转载。

  • 相关阅读:
    android中样式和自定义button样式
    android——实现多语言支持
    sizeof,数组,指针
    C++预处理相关
    内联函数
    牛客C++刷题
    leetcode刷题列表
    ends在linux和Windows下输出结果不同
    计算机负数为什么使用补码及浮点型计算
    个人技术博客:VUE:0基础入门
  • 原文地址:https://www.cnblogs.com/bhlsheji/p/4727969.html
Copyright © 2011-2022 走看看