Replication issue

aemhD 1 Reputation point
2021-11-15T13:23:20.423+00:00

I have a sudden replication issue.
I am working on SQL 2008R2 with Transactional replication with updated transactions, suddenly the data are not synced from the publisher to any subscriber.

I am receiving the following, while checking the replication monitor view, in the Log Reader Agent:
"The process is running and is waiting for a response from the server"
"the process could not execute sp_replcmds "

I have checked both:

  • Connection is Correct
  • Database security is OK

I have now more that 1 million record resulting from Sp_replcounters

Also, adding the "-Output "D:\VerboseLog\Log.txt" -Outputverboselevel 3" to the job properties doesn't show any additional info.

Swift reply will be appreciated.

SQL Server Other
0 comments No comments
{count} votes

7 answers

Sort by: Most helpful
  1. aemhD 1 Reputation point
    2021-11-18T11:05:47.467+00:00

    Thanks, yes it seems working and needed more time, it finally deliver the transactions to each subscriber after more than a day.
    Many thanks.

    Is there any way to rapid the process for each subscriber ? I have over million undistributed commands for each subscriber now.


  2. Seeya Xi-MSFT 16,586 Reputation points
    2021-11-19T02:08:28.437+00:00

    Hi @aemhD ,

    There are some other methods for your reference.
    Way 1: CREATE New SQL Stored Procedure
    It will help execute the Stored Procedure article on the Subscriber instead of replicating all individual data changes that were happening.
    Way 2: Configuring MaxCmdsInTran, ReadBatchSize, and ReadBatchThreshold Log Reader Agent Parameters
    Way 3: Configuring the Best Values for SubscriptionStreams Parameter
    The default value is 1 suggesting only one stream or connection from the distribution to the subscriber database. Values can be any between 1 to 64. If more Subscription streams are added, it might end up on CXPACKET congestion (in other words, parallelism). Hence, you should take care while configuring this option in Production.

    For more details and explanation, please see the link i post before.

    Best regards,
    Seeya


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.