Hello Everyone,
We are using MultiSubnet AlwaysOn Avilability Group and Transaction Replication. I followed instructions mention on below link.
https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/configure-replication-for-always-on-availability-groups-sql-server?view=sql-server-ver15
Initially I did a test with one test database and everything woked fine for me. Multisubnet failover & Failback was tested as well.
But when I implemented that on Actual Prod, we are facing some issue:
Scenario: AlwaysOn Setup: Node 1,2,3 in Datacenter DC1 and Node 4,5 in Datacenter DC2. Total 4 Publications from 3 different databases. Separate dedicated Server for Replication Distributor Role with a dedicated distributor DB for that AlwaysOn setup. Node 1 is Primary node. Currently Replication is configured with following flow: Node 1 -> Distributor -> Subscriber. Whenever I run sys.sp_redirect_publisher stored proc to redirect publisher from node 1 to Availability Group Listener Name, Log Reader Agent started thowing error:
2020-02-06 14:49:20.787 Status: 32768, code: 53044, text: 'Validating publisher'.
2020-02-06 14:51:47.484 Status: 0, code: 21879, text: 'Unable to query the redirected server 'AlwaysOnListenerName' for original publisher 'Node 1' and publisher database 'PublicationDB' to determine the name of the remote server; Error 7303, Error message 'Error 7303, Level 16, State 1, Message: Cannot initialize the data source object of OLE DB provider "SQLNCLI11" for linked server "[25A3CE0F-294E-4BC1-B4F3-4E87B305855C]".'.'.
2020-02-06 14:51:47.484 Status: 0, code: 22037, text: 'Errors were logged when validating the redirected publisher.'.
2020-02-06 14:51:47.484 Errors were logged when validating the redirected publisher.
2020-02-06 14:51:47.796 Disconnecting from OLE DB DistLog 'DistributorServerName'
2020-02-06 14:51:47.796 Disconnecting from OLE DB Publisher 'Node 1'
Anyone faced this situation in past and if yes, please share the solution.
Thank you!
We are using MultiSubnet AlwaysOn Avilability Group and Transaction Replication. I followed instructions mention on below link.
https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/configure-replication-for-always-on-availability-groups-sql-server?view=sql-server-ver15
Initially I did a test with one test database and everything woked fine for me. Multisubnet failover & Failback was tested as well.
But when I implemented that on Actual Prod, we are facing some issue:
Scenario: AlwaysOn Setup: Node 1,2,3 in Datacenter DC1 and Node 4,5 in Datacenter DC2. Total 4 Publications from 3 different databases. Separate dedicated Server for Replication Distributor Role with a dedicated distributor DB for that AlwaysOn setup. Node 1 is Primary node. Currently Replication is configured with following flow: Node 1 -> Distributor -> Subscriber. Whenever I run sys.sp_redirect_publisher stored proc to redirect publisher from node 1 to Availability Group Listener Name, Log Reader Agent started thowing error:
2020-02-06 14:49:20.787 Status: 32768, code: 53044, text: 'Validating publisher'.
2020-02-06 14:51:47.484 Status: 0, code: 21879, text: 'Unable to query the redirected server 'AlwaysOnListenerName' for original publisher 'Node 1' and publisher database 'PublicationDB' to determine the name of the remote server; Error 7303, Error message 'Error 7303, Level 16, State 1, Message: Cannot initialize the data source object of OLE DB provider "SQLNCLI11" for linked server "[25A3CE0F-294E-4BC1-B4F3-4E87B305855C]".'.'.
2020-02-06 14:51:47.484 Status: 0, code: 22037, text: 'Errors were logged when validating the redirected publisher.'.
2020-02-06 14:51:47.484 Errors were logged when validating the redirected publisher.
2020-02-06 14:51:47.796 Disconnecting from OLE DB DistLog 'DistributorServerName'
2020-02-06 14:51:47.796 Disconnecting from OLE DB Publisher 'Node 1'
Anyone faced this situation in past and if yes, please share the solution.
Thank you!