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


Mirroring failover : SQL Server 2008 R2


Mirroring failover : SQL Server 2008 R2

Author
Message
Neeraj Dwivedi
Neeraj Dwivedi
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: 1131 Visits: 1336
We use database mirroring ( high safety) for our HA needs.
Our application uses db_datareader & db_datawriter role for running the applications.

I had set up the application user account on mirror using the SID of primary.

But when ever the fail-over happens, I have to explicitly assign the role to the new primary.(old mirror)

Am i missing something? Is there any way that I should not involve myself when ever the fail-over happens?

Environment :- SQL Server 2008 R2 Standard Edition.
Neeraj Dwivedi
Neeraj Dwivedi
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: 1131 Visits: 1336
Anybody...Please..
Lynn Pettis
Lynn Pettis
SSC-Forever
SSC-Forever (41K reputation)SSC-Forever (41K reputation)SSC-Forever (41K reputation)SSC-Forever (41K reputation)SSC-Forever (41K reputation)SSC-Forever (41K reputation)SSC-Forever (41K reputation)SSC-Forever (41K reputation)

Group: General Forum Members
Points: 41476 Visits: 38567
Neeraj Dwivedi (5/10/2013)
We use database mirroring ( high safety) for our HA needs.
Our application uses db_datareader & db_datawriter role for running the applications.

I had set up the application user account on mirror using the SID of primary.

But when ever the fail-over happens, I have to explicitly assign the role to the new primary.(old mirror)

Am i missing something? Is there any way that I should not involve myself when ever the fail-over happens?

Environment :- SQL Server 2008 R2 Standard Edition.


If all you were given is the informatioin above, no access to the systems or anything else, do you think you could answer the question?

Really need more informatiion about the systems, etc. if you want to get a good answer. I set up DB Mirroring and a previous employer, and I had to set it up such that on failover that the SQL users used by the application were synced to that servers logins for those users. This was automated so I didn't have to get involved.

From your description of the problem I'm not sure what you are doing or why at the moment. Unfortunately I also don't have access to a mirrored system to do any exploratory testing.

Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Lempster
Lempster
Hall of Fame
Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)

Group: General Forum Members
Points: 3285 Visits: 1657
So if I understand correctly, you have created a login and associated user on the Mirror that match those on the Primary; is that correct?
On the mirror, did you also add the user as a member of the db_datareader and db_datawriter roles when you created it?
Neeraj Dwivedi
Neeraj Dwivedi
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: 1131 Visits: 1336
Yes, that's right and also using the same SID as of primary.
Neeraj Dwivedi
Neeraj Dwivedi
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: 1131 Visits: 1336
Lynn,

Please let me know what information you want. I will provide as much as information I could give.

It is standard mirroring set up with high safety.

All the Servers are :-

SQL Server is : Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64)

OS is - Windows Server 2008 R2 enterprises.
Lynn Pettis
Lynn Pettis
SSC-Forever
SSC-Forever (41K reputation)SSC-Forever (41K reputation)SSC-Forever (41K reputation)SSC-Forever (41K reputation)SSC-Forever (41K reputation)SSC-Forever (41K reputation)SSC-Forever (41K reputation)SSC-Forever (41K reputation)

Group: General Forum Members
Points: 41476 Visits: 38567
Sorry, not enough info and even if I had a sandbox to play in not enough to even try to emulate your environment.

Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Neeraj Dwivedi
Neeraj Dwivedi
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: 1131 Visits: 1336
Thank Lynn,

At least you tried.
Lempster
Lempster
Hall of Fame
Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)

Group: General Forum Members
Points: 3285 Visits: 1657
Lempster (5/10/2013)

On the mirror, did you also add the user as a member of the db_datareader and db_datawriter roles when you created it?


You didn't specifically answer my second question. Did you add the user to the two roles?
Also, are you using a Witness server and failing over automatically or are you invoking a manual failover?

Regards
Lempster
Neeraj Dwivedi
Neeraj Dwivedi
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: 1131 Visits: 1336
Yes, I add the user to 2 roles in mirror and it is high safety and failing over automatically.
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