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


Enable back DB Mirroring


Enable back DB 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.
Sherwin Anderson
Sherwin Anderson
SSCrazy
SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)

Group: General Forum Members
Points: 2364 Visits: 1419
You will need to re-setup mirroring from scratch. Restore the database and transaction logs to the mirror with NORECOVERY then setup mirroring under the mirroring tab of the database properties for the principal database.
Yuri55
Yuri55
Say Hey Kid
Say Hey Kid (696 reputation)Say Hey Kid (696 reputation)Say Hey Kid (696 reputation)Say Hey Kid (696 reputation)Say Hey Kid (696 reputation)Say Hey Kid (696 reputation)Say Hey Kid (696 reputation)Say Hey Kid (696 reputation)

Group: General Forum Members
Points: 696 Visits: 2025
Just did this yesterday night, i.e. break/restore Mirror:
1. restore Full backup with NoRecovery
2. restore all sequential TrLog backups with NoRecovery
3. setup partners on Principal and Mirror to point to each other:
ALTER DATABSE DB_Name SET PARTNER = PRT_Name
4. At this moment Mirror session should start automatically
5. Change Safety Mode if not High Safety (defualt)
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