SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Mirroring status different for different users
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mattt
Posting Yak Master

194 Posts

Posted - 07/30/2012 :  05:07:31  Show Profile  Reply with Quote
Hi,

We recently had some issues with the failover on a mirrored database: the login kept failing when the primary was down.

On connecting to the database in question with the the login that was failing (in order to check the password) I discovered the reason why. The failover database appeared to be stuck in the "restoring..." state rather than "mirror/synchronised / restoring" as expected.

However I found this slightly peculiar because the primary server was reporting that mirroring was working correctly. On logging in to the failover DB using an administrative account, it's status reported correctly as "mirror/synchronised / restoring".

I've never seen this before - that different accounts looking at the same database can report a different mirroring status. The lower-level access account we usually use behaves in all respects as though the failover DB is stuck in restoring - when you attempt to change permissions, for example, it reports that one of the DB's is inaccessible.

What's caused this curious state of affairs, and how can I fix it?

Cheers,
Matt

sql-lover
Yak Posting Veteran

54 Posts

Posted - 08/04/2012 :  00:51:36  Show Profile  Reply with Quote
Did you reset the SID on the other server after failover? I know, a silly question, but you need to ensure you reset the SID or the login won't work after the fail over, as the users are not the same for SQL.

I would also check network latency between both servers and ensure they both are running same SQL version.

You can visually check on Management Studio the status of both databases. I've never seen both on restoring phase unless there was a failover issue and it never happened. On that case, restore one with recovery, break the mirror and setup again.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000