Solved

Database Mirroring

Posted on 2012-04-09
1
296 Views
Last Modified: 2012-04-10
If I take a full backup of the Principal
and for example take all log backups including the last log backup
and then restore them on the mirror
Do I leave the last t-log backup in the no recovery mode
and if so then how about the t-log still populating with data on the principal but
not the mirror how does sql synchronize the mirror properly if you cannot
restore the last t-log because it is being written to at the time you are setting up the
mirror

Any clarification as to how the synchronization process with the last t-log actually works would be greatly appreciated

Thanks in advance
0
Comment
Question by:VitaminD
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 15

Accepted Solution

by:
Deepak Chauhan earned 500 total points
ID: 37827359
Hi, in database mirroring only one database (principle) can be in operational stat and mirror database is in operational stat.
Reason to restore last TL backup with no recovery is that it will not accessible to user but accessible to principle database. Every time if a transaction is executed on the principal is sent first to mirror for commit if it is configured with synchronous. Transaction log is sent to mirror and restore in no recovery mode.

For more Clarification and Information Please follow below link:
 
http://msdn.microsoft.com/en-us/library/ms179344.aspx
0

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how the fundamental information of how to create a table.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question