博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[TroubleShooting] The remote copy of database xx has not been rolled forward to a point in time
阅读量:5938 次
发布时间:2019-06-19

本文共 1152 字,大约阅读时间需要 3 分钟。

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.

 

 

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

你可能感兴趣的文章
Create Volume 操作(Part III) - 每天5分钟玩转 OpenStack(52)
查看>>
tomcat 8.0虚拟机配置文档
查看>>
pxc群集搭建
查看>>
JS中加载cssText延时
查看>>
常用的脚本编程知识点
查看>>
XILINX_zynq_详解(6)
查看>>
计算机网络术语总结4
查看>>
新手小白 python之路 Day3 (string 常用方法)
查看>>
soapUI的简单使用(webservice接口功能测试)
查看>>
框架 Hibernate
查看>>
python-while循环
查看>>
手机端上传图片及java后台接收和ajaxForm提交
查看>>
【MSDN 目录】C#编程指南、C#教程、ASP.NET参考、ASP.NET 4、.NET Framework类库
查看>>
jquery 怎么触发select的change事件
查看>>
angularjs指令(二)
查看>>
(原創) 如何建立一个thread? (OS) (Linux) (C/C++) (C)
查看>>
<气场>读书笔记
查看>>
领域驱动设计,构建简单的新闻系统,20分钟够吗?
查看>>
web安全问题分析与防御总结
查看>>
React 组件通信之 React context
查看>>