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


Automatic mirroing failover and application connectivity


Automatic mirroing failover and application connectivity

Author
Message
Minaz Amin
Minaz Amin
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1134 Visits: 1750
Hi All,

We are planning to setup DB mirroing for our prod server with automatic failover.

I need your suggestions and recomendation on the same. There were few concerns raised by the team and Iam not clear how this is handled in mirroing. On sql 2008 on window 2008

If I have setup mirroing of three DBS and if one of them goes doen or crashed. Will the crashed database will failover to mirroed server?
If yes, how the aaplication communicate to it? 2 databases will be on pricipal server and the crased db will failover to mirroed and how the application communicate with all these three DBS.

Will there be any downtime , cxoonection time out during this failover?

Please clearify my doubts.

Thank you.

"More Green More Oxygen !! Plant a tree today"
SQL Show
SQL Show
SSChasing Mays
SSChasing Mays (655 reputation)SSChasing Mays (655 reputation)SSChasing Mays (655 reputation)SSChasing Mays (655 reputation)SSChasing Mays (655 reputation)SSChasing Mays (655 reputation)SSChasing Mays (655 reputation)SSChasing Mays (655 reputation)

Group: General Forum Members
Points: 655 Visits: 1078
Automatic failover will happen. After this, application will be directed to new principal server(earlier it was mirrored) and will find only one database (in your case). Other two databases will remain in old primary server which will be unreachable to your application.To solve this, you have to setup a alert for failover event, and force your other databases too to failover.

Failover will result in running "recovery" in mirrored database. Downtime will depend on how much transactions to be recovered.

http://www.mssqltips.com/sqlservertip/1564/database-mirroring-automating-failover-for-multiple-sql-server-databases/
Perry Whittle
Perry Whittle
SSC-Insane
SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)SSC-Insane (20K reputation)

Group: General Forum Members
Points: 20226 Visits: 17244
Minaz Amin (11/27/2012)
If yes, how the aaplication communicate to it?

If you're using ADO.NET or SQL Native client there is a "Failover Partner" option specifically for database mirroring sessions


Minaz Amin (11/27/2012)
2 databases will be on pricipal server and the crased db will failover to mirroed and how the application communicate with all these three DBS.

The failover is per database, Failover clustering affects all databases on an instance


Minaz Amin (11/27/2012)
Will there be any downtime , cxoonection time out during this failover?

Please clearify my doubts.

Thank you.

Yes, as already stated it depends on the log queue that is waiting and the time to recover the database, in extreme cases it can take some time for the database to come online

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
Minaz Amin
Minaz Amin
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1134 Visits: 1750
Thank you all for the response. This has really helped me.

"More Green More Oxygen !! Plant a tree today"
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