|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Today @ 1:08 AM
Points: 126,
Visits: 350
|
|
Dear,
I have configured mirroring with high safety without automatic failover mode. For testing purpose I want to failover between Principal and Mirror. Say, Principal server gets down. Now I want to switch role of Mirror to Principal. But how? Please let me know.
Imagine, Mirror is now Principal and former Principal Server is live again. At this time I want that former Principal takes the role of Principal and start functioning. But how? please let me know.
Regards, Akbar
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Monday, June 10, 2013 4:11 AM
Points: 1,474,
Visits: 2,344
|
|
Run this on whichever is the principle at the time: ALTER DATABASE dbname SET PARTNER FAILOVER
They'll need to be synchronized first though.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Today @ 1:08 AM
Points: 126,
Visits: 350
|
|
Actually my Principal server got down. It will take some hours to be ok. That's why I have to use Mirror database to run my application. In Mirror database it is stated as myDB (Mirror, Disconnected/ In Recovery). But I configured mirroring with high safety without automatic failover mode. So I have to make Mirror as Principal. But how?
I can't do it. Please help me.
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 2:58 PM
Points: 5,242,
Visits: 11,259
|
|
If the principal is down and you want to bring the mirror up you will need to force service using
ALTER DATABASE mydb SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs"
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Monday, June 10, 2013 4:11 AM
Points: 1,474,
Visits: 2,344
|
|
| Apologies, misread the question. Perry's command is what you need.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Today @ 1:08 AM
Points: 126,
Visits: 350
|
|
| Thank you, Sir. Actually Perry's command worked for me.
|
|
|
|