[Troubleshooting] The remote copy of database XX has not been rolled forward

Source: Internet
Author: User
Tags management studio

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 the wizard to set Mirror.

It'll show Error: "The remote copy of database" Dbmirrortest "has not been rolled forward to a point in time that's enc Ompassed in the local copy of the database log. "

Or

1. ALTERDATABASETESTBACKUP01SETPARTNER=' tcp://isrv04.xxx:50221 ';

2. Tasks, Mirror->mirroring, Config Security

Solutions:

RESTORE DATABASE  from DISK  with FILE = 1, NORECOVERY, nounload; RESTORE LOG  from DISK  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 is no problem when I restored through the "Restore Database"-dialog. My manually written sql-commands were missing the "Nounload" part.

Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

[Troubleshooting] The remote copy of database XX has not been rolled forward

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.