SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


how to enable back database mirroring


how to enable back database mirroring

Author
Message
databoy
databoy
Grasshopper
Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)

Group: General Forum Members
Points: 18 Visits: 41
Hi Everyone,

I Have disabled database mirroring on principal server using below command for restoring database over a mirrored database because it was not allowing me to restore.

ALTER DATABASE AdventureWorks2012 SET PARTNER OFF;

after executing above command i was able to restore the database , now i want to enable back database mirroring
can some please help me with the steps.

Thank you in advance for looking into my post.
sharky
sharky
SSC Journeyman
SSC Journeyman (98 reputation)SSC Journeyman (98 reputation)SSC Journeyman (98 reputation)SSC Journeyman (98 reputation)SSC Journeyman (98 reputation)SSC Journeyman (98 reputation)SSC Journeyman (98 reputation)SSC Journeyman (98 reputation)

Group: General Forum Members
Points: 98 Visits: 441
The database and log of the principle database needs to be backed up and restored on the mirrored instance to get them in sync. Only then can the mirrored session be re-established.
- Win
- Win
SSC Veteran
SSC Veteran (240 reputation)SSC Veteran (240 reputation)SSC Veteran (240 reputation)SSC Veteran (240 reputation)SSC Veteran (240 reputation)SSC Veteran (240 reputation)SSC Veteran (240 reputation)SSC Veteran (240 reputation)

Group: General Forum Members
Points: 240 Visits: 625
Restore latest Full backup first and Transaction Log backup with RESTORE WITH NORECOVERY option (db should be in restoring mode).
Then, start configuring DB Mirroring again.

Hope this helps..!

Cheers,
- Win
"Dont Judge a Book by its Cover"
george sibbald
george sibbald
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10306 Visits: 13687
here is a link to a set of instructions - http://www.mssqltips.com/sqlservertip/2464/configure-sql-server-database-mirroring-using-ssms/

before setting it up though read up on the various operating modes and decide which you want and wether you will be using a witness server.

I would suggest using the SQL service account to connect as well rather than sa.

When setting it up script the set up out from the gui.

---------------------------------------------------------------------
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search