Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 123»»»

Mirroring failover : SQL Server 2008 R2 Expand / Collapse
Author
Message
Posted Friday, May 10, 2013 8:14 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Tuesday, September 23, 2014 10:34 AM
Points: 826, Visits: 1,177
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.
Post #1451617
Posted Friday, May 10, 2013 3:23 PM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Tuesday, September 23, 2014 10:34 AM
Points: 826, Visits: 1,177
Anybody...Please..
Post #1451748
Posted Friday, May 10, 2013 3:55 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Yesterday @ 11:08 PM
Points: 20,696, Visits: 32,330
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.



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)
Post #1451762
Posted Friday, May 10, 2013 4:15 PM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 2:17 PM
Points: 2,119, Visits: 1,446
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?
Post #1451774
Posted Friday, May 10, 2013 7:31 PM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Tuesday, September 23, 2014 10:34 AM
Points: 826, Visits: 1,177
Yes, that's right and also using the same SID as of primary.
Post #1451793
Posted Friday, May 10, 2013 7:41 PM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Tuesday, September 23, 2014 10:34 AM
Points: 826, Visits: 1,177
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.

Post #1451796
Posted Friday, May 10, 2013 8:03 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Yesterday @ 11:08 PM
Points: 20,696, Visits: 32,330
Sorry, not enough info and even if I had a sandbox to play in not enough to even try to emulate your environment.



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)
Post #1451797
Posted Friday, May 10, 2013 8:08 PM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Tuesday, September 23, 2014 10:34 AM
Points: 826, Visits: 1,177
Thank Lynn,

At least you tried.
Post #1451798
Posted Sunday, May 12, 2013 1:30 PM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Yesterday @ 2:17 PM
Points: 2,119, Visits: 1,446
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
Post #1451927
Posted Sunday, May 12, 2013 2:22 PM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Tuesday, September 23, 2014 10:34 AM
Points: 826, Visits: 1,177
Yes, I add the user to 2 roles in mirror and it is high safety and failing over automatically.
Post #1451933
« Prev Topic | Next Topic »

Add to briefcase 123»»»

Permissions Expand / Collapse