Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Restore database in a mirrored environment Expand / Collapse
Author
Message
Posted Thursday, October 9, 2008 7:57 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, June 16, 2009 4:28 AM
Points: 1, Visits: 3
We have a SQL server 2005 environment we are testing, with a principal and mirror but no witness. The database copy is quite old and we now have a newer version (from the live environment sql 2000) that we wish to put on.

I am trying to understand what the best process is to restore this new database copy in an already mirrored environment.

All the documents I read refer to setting up mirroring from scratch not this particular scenario.

From what I have read we cannot simply pause mirroring we would have to turn off mirroring completely, either using the interface or a sql command of set partner off (does this need to be run on both machines?)

We then restore the backup to the principal and at the same time restore to the mirror (with no recovery?).

Once the restores have finished set up mirroring again.

I am hoping someone can confirm what the best way of doing this would be?
Post #583324
Posted Thursday, October 9, 2008 6:16 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, October 6, 2011 11:54 AM
Points: 154, Visits: 203
Well I would presume that one has to remove the mirror, restore the database and re-establish the mirror.
I have never done it before.
Let us know how you do it and whats the outcome.
Thanks.
Post #583668
Posted Wednesday, November 30, 2011 7:05 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Monday, January 16, 2012 7:05 AM
Points: 1,149, Visits: 109
How can I restore a database in a mirroring context after removing the database mirroring configuration. I ask that, because I note an alert that says me that the database is in use, I think that because the witness an the secondary server still mantaining a connection to the principal server. How are the correct steps for disabling the mirroring, restoring the database and re-enabling the database mirroring environment?

Thanks in advance.
Post #1213911
Posted Wednesday, November 30, 2011 7:12 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 6:53 PM
Points: 1,932, Visits: 1,589
While a database mirroring session is active, the following restrictions apply:
• Backup and restore of the mirror database are not allowed.
• Backup of the principal database is allowed, but BACKUP LOG WITH NORECOVERY is not allowed.
• Restoring the principal database is not allowed.



Dev

Devendra Shirbad | BIG Data Architect / DBA | Ex-Microsoft CSS (SQL 3T)
*** Open Network for Database Professionals ***

LinkedIn: http://www.linkedin.com/in/devendrashirbad
Post #1213919
Posted Wednesday, November 30, 2011 7:41 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Monday, January 16, 2012 7:05 AM
Points: 1,149, Visits: 109
Yes, I know that, I need to know which are the steps to follow to accomplish this goal, after disabling the mirroring...
Post #1213944
Posted Wednesday, November 30, 2011 7:45 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 6:53 PM
Points: 1,932, Visits: 1,589
franzambesten (11/30/2011)
Yes, I know that, I need to know which are the steps to follow to accomplish this goal, after disabling the mirroring...


Database Mirroring Administration How-to Topics (Database Engine)
http://msdn.microsoft.com/en-us/library/ms175059(v=SQL.90).aspx


Dev

Devendra Shirbad | BIG Data Architect / DBA | Ex-Microsoft CSS (SQL 3T)
*** Open Network for Database Professionals ***

LinkedIn: http://www.linkedin.com/in/devendrashirbad
Post #1213948
Posted Wednesday, November 30, 2011 8:41 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 4:15 PM
Points: 31,210, Visits: 15,654
Once you've removed mirroring (http://msdn.microsoft.com/en-us/library/ms189112%28v=SQL.90%29.aspx), you can just restore both dbs and re-setup mirroring.






Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1213998
Posted Friday, May 30, 2014 11:14 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, June 2, 2014 12:12 PM
Points: 1, Visits: 5
I know this is a really old thread, but I wanted to ask this... In SQL 2012 I see there is a "Pause" mirroring button... would this suffice in order to restore from a .bak backup file? Or do we still need to break and reconfigure the mirroring in order to restore?

Thank you
Post #1576212
Posted Friday, May 30, 2014 2:12 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 4:15 PM
Points: 31,210, Visits: 15,654
I think so, but I could be wrong.

the main issue is mirroring relies on a log chain, just like log shipping (or similar to LS).

If you restore, the chain becomes somewhat broken, depending on what you're restoring (from when/which backup). My suspicion is any restore will require you to reinitialize DM, and that if you're not restoring from an extremely recent backup, this is a reset of mirroring.







Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1576277
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse