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


Database mirroring question


Database mirroring question

Author
Message
cygne17_2 77208
cygne17_2 77208
SSC Veteran
SSC Veteran (250 reputation)SSC Veteran (250 reputation)SSC Veteran (250 reputation)SSC Veteran (250 reputation)SSC Veteran (250 reputation)SSC Veteran (250 reputation)SSC Veteran (250 reputation)SSC Veteran (250 reputation)

Group: General Forum Members
Points: 250 Visits: 92
Hi,
We use database mirroring in sql server 2008 r2.
We have 1 primary server and 1 mirror server.
Our application connect to the primary instance with ip address.
If our primary server is down and we failover to the mirror server, Our application will not be able to connect.
Our plan is to put the ip address of the old primary server to the mirror (new primary).
BUT, Does changing the ip address will confuse the database mirroring setting ?
Can we do that if we think about the endpoint config ?

regards,
GilaMonster
GilaMonster
SSC Guru
SSC Guru (219K reputation)SSC Guru (219K reputation)SSC Guru (219K reputation)SSC Guru (219K reputation)SSC Guru (219K reputation)SSC Guru (219K reputation)SSC Guru (219K reputation)SSC Guru (219K reputation)

Group: General Forum Members
Points: 219855 Visits: 46279
Read up on "Transparent Client Redirect". If you're using ADO.net or SNAC to connect, you don't need to do any of what you're suggesting.

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

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


cygne17_2 77208
cygne17_2 77208
SSC Veteran
SSC Veteran (250 reputation)SSC Veteran (250 reputation)SSC Veteran (250 reputation)SSC Veteran (250 reputation)SSC Veteran (250 reputation)SSC Veteran (250 reputation)SSC Veteran (250 reputation)SSC Veteran (250 reputation)

Group: General Forum Members
Points: 250 Visits: 92
Okay, but if we do not use ADO or SNAC, can we change the ip address of the mirror wihtout confuse the database mirroring or should we instead change the connectivity on the application side ?
GilaMonster
GilaMonster
SSC Guru
SSC Guru (219K reputation)SSC Guru (219K reputation)SSC Guru (219K reputation)SSC Guru (219K reputation)SSC Guru (219K reputation)SSC Guru (219K reputation)SSC Guru (219K reputation)SSC Guru (219K reputation)

Group: General Forum Members
Points: 219855 Visits: 46279
No, don't mess with the IP on the mirror.

Read up on transparent client redirect first. You could also give the app both server's names to try, or do a DNS change when there's a failover.

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

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


KumarVelayutham
KumarVelayutham
SSC-Addicted
SSC-Addicted (458 reputation)SSC-Addicted (458 reputation)SSC-Addicted (458 reputation)SSC-Addicted (458 reputation)SSC-Addicted (458 reputation)SSC-Addicted (458 reputation)SSC-Addicted (458 reputation)SSC-Addicted (458 reputation)

Group: General Forum Members
Points: 458 Visits: 1352
In Database mirroring ,mirror server name should be specified in two modes.

1.Implicit mode

No need to specify failover partner here.By the use of SQL provider ,failover will done with mirror server identification from the memory cache,

2.Explicit mode

We need to specify failover partner in the connection string.
Failover Partner=<servername>” (where <servername> is the name of your mirror server).

Regards,
Kumar
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