I am running two Windows Servers 2012 R2 with SQL Server 2014 Standard Edition. I have strange issue on mirroring.
I configured mirroring on for 15 databases, no Witness server. The Principal server show all database is Principal, Synchronized and the Mirror is Mirror, Synchronized/Restoring.
When I open Database Mirror Monitor I see Role Principal is in Mirroring State Synchronized but the Mirror's Role is not connected. I have fail over in both directions and the database came up on the mirror server normally. data is replicating for troubleshooting purpose I have done below steps.
-
I have seen in error log in principle nothing is related to mirroring traced I can see most of the errors in principle are Error: 18456, Severity: 14, State: 38.
-
I have seen errors in mirroring server for all the databases are Database mirroring connection error 4 'An error occurred while receiving data: '10054(An existing connection was forcibly closed by the remote host.)'.' for 'TCP://server.company.com:5022'. Error: 1474, Severity: 16, State:
-
I have tried to resolve by stop and start the endpoint its was not resolved.
-
I have tried pause and resume it is also not resolved.
-
I have verified TCP/IP it is enabled on both the servers.
-
I have tried to configure alias it is also not resolve.
-
I have telnet from each other, it seems have no communication issues
-
I have verified connect rights to domain level same service account for both principle and mirror.
-
Earlier it is SQL server 2014 sp2 ,today I have updated with latest service sp3 even though still I can see same in mirror monitor Not connected to mirror.
Please help on this issue, how to resolve this?
Best Answer
SQL 2014 std does not support AlWays on Availability Group , You need Enterprise Edition, But SQL 2016 std edition supports basic availability group features
you can check the state of the mirror by using the query below.
this will give you a starting point for further investigations.
make sure the sql server service account has all the relevant permissions on both servers.
I am not sure of your environment, but depending on the query below, and what I could find in the logs, on a convenient time, plan a restarting of the sql server service (which will cause a failover) and back.
Another thing that has worked for me in the past, is scripting the whole thing, then dropping it, and then setting it up again through the script, one database a time.
that way you can try to narrow down the problem.
there is a very similar question: Database Mirroring error, but everything looks OK
the answer recommends looking at the permissions. Do that first.
another thing is to do a failover following the example below: (the original had many databases, I left only one DB per server, but you can get the idea)