September 7, 2013 at 5:05 am
Hi,
Principal server unexpected shutdown and also not available Primary database , in that situation secondary server MIRROR database should be bring online mode for user access as well as application connectivity (mirror configured High Performance mode - version SQL2K8R2)
What command should be executed in secondary database server for bring online? Please confirm as below command
Option 1
Use master
Go
ALTER DATABASE <Databasename> SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS
Go
RESTORE DATABASE <Databasename> WITH RECOVERY
option 2
Use master
Go
ALTER DATABASE <Databasename> SET PARTNER OFF
GO
RESTORE DATABASE <Databasename> WITH RECOVERY
September 7, 2013 at 5:20 am
ananda.murugesan (9/7/2013)
Hi,Principal server unexpected shutdown and also not available Primary database , in that situation secondary server MIRROR database should be bring online mode for user access as well as application connectivity (mirror configured High Performance mode - version SQL2K8R2)
What command should be executed in secondary database server for bring online? Please confirm as below command
Option 1
Use master
Go
ALTER DATABASE <Databasename> SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS
Go
RESTORE DATABASE <Databasename> WITH RECOVERY
option 2
Use master
Go
ALTER DATABASE <Databasename> SET PARTNER OFF
GO
RESTORE DATABASE <Databasename> WITH RECOVERY
Option 1 without the RESTORE DATABASE.
Option 2 will break database mirroring.
September 7, 2013 at 5:40 am
Is it any data loss after firing as below command? pl. confirm
Use master
Go
ALTER DATABASE <Databasename> SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS
Thanks
ananda
September 7, 2013 at 6:11 am
ananda.murugesan (9/7/2013)
Is it any data loss after firing as below command? pl. confirm
Use master
Go
ALTER DATABASE <Databasename> SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS
Thanks
ananda
If I read your original post correctly, meaning that you are running asynchronously, then yes you could lose some data.
September 7, 2013 at 6:21 am
Ok.. understand.. Thanks for reply
1. High performance mode - there is some data loss due to ackownledgement not received to Principal server from secondary server ..( so how to resolve zero data loss in that mode)
2. High safty mode - committed ackownledgement recived to Principal server from secondary server. so there is no data loss when ever shutdown principal server.
September 7, 2013 at 9:20 am
ananda.murugesan (9/7/2013)
Ok.. understand.. Thanks for reply1. High performance mode - there is some data loss due to ackownledgement not received to Principal server from secondary server ..( so how to resolve zero data loss in that mode)
2. High safty mode - committed ackownledgement recived to Principal server from secondary server. so there is no data loss when ever shutdown principal server.
If your mirroring mode is set to high performance, then change it to high safety mode before failing over....this is one way to make sure that they are insync.
However, if your mirror is in high performance mode and if principal goes down, then definitely there will be some data loss.
Regards,
SQLisAwe5oMe.
September 7, 2013 at 10:43 am
SQLisAwE5OmE (9/7/2013)
However, if your mirror is in high performance mode and if principal goes down, then definitely there will be some data loss.
Not definitely. There may be some data loss.
Depends whether or not the mirroring was in the synchronised state at the time of failure or not. If it was, then there'll be no data loss. if it was synchronising, then there will be data loss.
The force service option is required in both cases as the mirror has no way of knowing whether or not it was in sync if running in asynchronous mode.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 7, 2013 at 2:47 pm
GilaMonster (9/7/2013)
SQLisAwE5OmE (9/7/2013)
However, if your mirror is in high performance mode and if principal goes down, then definitely there will be some data loss.Not definitely. There may be some data loss.
Depends whether or not the mirroring was in the synchronised state at the time of failure or not. If it was, then there'll be no data loss. if it was synchronising, then there will be data loss.
The force service option is required in both cases as the mirror has no way of knowing whether or not it was in sync if running in asynchronous mode.
Yes Gail, you are correct. Thanks for clarifying.
Regards,
SQLisAwe5oMe.
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply