unable to add witness to DB mirror error 1456

Proposed unable to add witness to DB mirror error 1456

  • Wednesday, May 09, 2007 2:01 PM
     
     
    I can establish the mirror with the principal and mirror but cannot add the witness (error 1456) all machines are SQL Server 2005 standard edition service pack 2 principal and mirror are windows server 2003 and witness is windows xp

All Replies

  • Wednesday, May 09, 2007 3:56 PM
     
     
    You cannot use a witness with Standard Edition, you need to have Enterprise Edition to use one.
  • Thursday, May 10, 2007 9:44 AM
     
     
    Not according to the SQL server 2005 web site, and we have had it working before we installed the service packs
  • Thursday, May 10, 2007 10:32 AM
     
     

    But automatic failover and automatic client redirect are only available in Enterprise Edition, so there is no point in having a witness in Std Edition.

     

    http://www.awprofessional.com/articles/article.asp?p=457500&seqNum=8&rl=1

  • Monday, May 21, 2007 7:10 AM
     
     

    I believe that is wrong. Standard edition can provide full safety

     

    High Availability “Always On” Comparison

    Feature SQL Server 2005 Standard Edition SQL Server 2005 Enterprise Edition

    Failover clustering

    2-nodes Only

    Up to 9 nodes

    Database mirroring

    Safety FULL Only

    All Modes

    http://www.microsoft.com/sql/editions/enterprise/comparison.mspx.

     

    Database Mirroring Feature

    Enterprise Edition

    Developer Edition

    Standard Edition

    Workgroup Edition

    SQL Express

    Partner (Principal or Mirror)

    ü

    ü

    ü

     

     

    Witness

    ü

    ü

    ü

    ü

    ü

    Safety = FULL

    ü

    ü

    ü

     

     

    Safety = OFF

    ü

    ü

     

     

     

    Available during UNDO after failover

    ü

    ü

    ü

     

     

    Parallel REDO

    ü

    ü

     

     

     

  • Monday, May 21, 2007 10:29 AM
     
     

    Now this is what I have been led to beleive all along but since we have upgraded to service pack 2 we have not been able to get the witness to work successfully. 

  • Monday, May 21, 2007 3:06 PM
     
     

    I believe that the table markboyle posted means that Std Ed can be used as a witness, but not that it supports the use of a witness. High availability mode refers to the fact that the principal and the mirror are kept in sync (like 2-phase commit), but it doesn't necessarily include automatic failover. I still believe the use of a witness is EE only, which is why you're getting the errors you are.

     

    I'd like to be proved wrong!

  • Friday, May 25, 2007 12:54 PM
     
     
    Ok I have got it working with MS SQL Server 2005 standard edition service pack 1 going to install service pack 2 on all instances and check again.
  • Tuesday, May 29, 2007 11:05 AM
     
     
    Updated to MS SQL 2005 service pack 2 all still working, may have just proved you wrong??
  • Thursday, May 31, 2007 11:11 PM
     
     
    You definitely can use Standard edition with automatic failover, as per the features lists you can't run it with safety off though which means you can't really sue it except where you have two servers next to each other because they must two-phase commit rather than log-ship and assume all is according to plan.  This is so you can't do multi-site DR with Standard edition it would appear.

    I'm having the same problem though, I've got a principal and mirror running Standard SP2 and another one running SQL 2K5 Express SP2 as the witness.  I can connect fine to the Express server but I can't stop this error.  Without it the mirroring is a bit scary as the principal DB will go offline if we lose the mirror which is rather the opposite of what we're trying to achieve!  Replication would be a seemingly better solution at the moment Sad

    Any ideas how to get it fixed?
    thanks
    Pete
  • Tuesday, June 19, 2007 3:22 AM
     
     
    I also have this error continue to come up everytime I try to invoke the (SQL 2K5 Express) witness to my (SQL 2K5 Standard) mirrored servers.  Has there been a fix for this yet, Pete?
  • Tuesday, June 26, 2007 1:11 PM
     
     

    We decided to give up on using express edition as the witness, and elected to use standard.

    We had to do a clean install of the operating systems and SQL 2005 and manually install the service packs instead of using automatic updates, this resolved the issue we where having. we may try a test with express in the future but for now this is working well.

  • Friday, October 05, 2007 5:13 PM
     
     
    I just want to be the second person to let you guys know that use of witness for automatic failover is available in Stanadard edition as well.

     

  • Friday, October 05, 2007 5:21 PM
     
     
    I can't exactly remember how we got it fixed - I think we basically re-installed the witness and all was well.  It was all to do with the users I think and it not creating the endpoints properly.  Basically if you bin off the whole mirroring setup a re-set it up from scratch then it works fine.
    People only find it works with Standard because really it works when they re-set it up - it would have worked fine on Express to (as it does for us).
    Pete
  • Wednesday, April 09, 2008 7:06 AM
     
     
  • Tuesday, July 01, 2008 5:02 PM
     
     

    I'm actually having a similar problem - we've been able to establish the mirror (SQL 2005 Enterprise Edition) but are unable to add the witness (SQL 2005 Standard).  We had this working before but due to a database upgrade we had to break the mirror.  We keep getting error 1456:

     

    Error: 1456, Severity: 16, State: 3.
    2008-07-01 08:35:44.07 spid55      The ALTER DATABASE command could not be sent to the remote server instance 'tcp://witnessserver.ourcompany:5022'. The database mirroring configuration was not changed. Verify that the server is connected, and try again.

     

    I'm able to telnet to the "witness" server from the principal on port 5022 so the endpoints appear to work.  Any suggestions?  I know this may be a dead thread, but thought I'd try anyway.  Thanks.

  • Wednesday, July 09, 2008 10:51 AM
     
     

    Try trouble shooting at the end of this post

     

    http://forums.microsoft.com/forums/ShowPost.aspx?PostID=3504051&SiteID=1

  • Thursday, July 10, 2008 2:54 PM
     
     Proposed

    Also try restarting SQL Server on the Witness, I have seen many:

     

    The server network address "TCP://X:X" can not be reached or does not exist. Check the network address name and that the ports for the local and remote endpoints are operational.

     

    Errors, which have worked after a restart.

    • Proposed As Answer by koenissegg Friday, February 12, 2010 8:07 AM
    •  
  • Friday, February 12, 2010 8:33 AM
     
     Proposed
    I also had trouble creating a mirror, and received error 1418 numerous times,I solved it using the same local user (ie sqlusr) on the principal, host and wittnes, and configure the SQL Service and the SQL agent service to run under this account.
    CCA!
    • Proposed As Answer by TusharChheda Monday, November 15, 2010 5:14 AM
    •  
  • Wednesday, March 10, 2010 3:05 AM
     
     Proposed
    I've encountered both 1418 and 1456 and fixed both the same way. 
    First I added the sql server service account as a login on the witness.
    Then I issued the grant to connect manually like the following example.

     

    GRANT CONNECT ON ENDPOINT::Mirroring TO [SomeDomain\SomeLogin];

    Finally I was able to mirror as expected.  I still haven't figured out why I had to do this though.


    Joe Moyle
    • Proposed As Answer by Joe Moyle Tuesday, May 25, 2010 6:07 PM
    •  
  • Tuesday, November 15, 2011 9:05 AM
     
     

    I found I had to set the witness SQL server service to run under the same domain account as the two mirroring database service accounts and it worked fine