Groups | Blog | Home
all groups > sql server replication > june 2006 >

sql server replication : Subscriptions being marked inactive


Mor DeRor
6/28/2006 1:21:03 PM
Hi everyone,

We have transactional replication between a data entry and reporting
servers. Now, in addition, we added another subscriber which is a test
server. This new subscriber has a strange problem that stopping and starting
a distribution agent can cause a subscription to be marked inactive, or
sometimes it will mark subscriptions inactive for no apparent reason
whatsoever.

This is a part of a typical error message:
The subscription(s) have been marked inactive and must be reinitialized.
NoSync subscriptions will need to be dropped and recreated

Subscriptions never expire is set on all publications.

Thanks,

Hilary Cotter
6/28/2006 9:54:10 PM
Set the history retention period to the same time period as your retention
period. Examine msrepl_errors and the distribution agent history to find out
what is causing this agent to fail, and to expire.

--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com



[quoted text, click to view]

Mor DeRor
6/29/2006 7:33:02 AM
Thanks, Hilary,

But these settings that you are talking about are publication specific. The
problem, howver is subcsriber specific. I think this way because there are
two subscriptions to the same publication, and only one of them is giving
errors.
Here is an example:
"Replication-Replication Distribution Subsystem: agent <DISTRIBUTION AGENT
JOB NAME> failed. The subscription(s) have been marked inactive and must be
reinitialized. NoSync subscriptions will need to be dropped and recreated."

MSREPL_ERROR for the time of error shows error text NULL and command_id -1

[quoted text, click to view]
Hilary Cotter
7/2/2006 12:00:00 AM
Expiration is the lesser of the retention setting, transaction retention
setting, and history retention setting. So with a large retention you must
set the transaction and history retention to the same amount otherwise it
will expire.

--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com



[quoted text, click to view]

Mor DeRor
7/2/2006 7:20:02 AM
Are you talking about the "transaction retention" and "history retention"
settings that are available on the distributor? I really need to find
something subscriber specific, otherwise it does not make sense that two
subscriber that use the same publisher, and same distributor should have
different behaviour.

[quoted text, click to view]
Mor DeRor
7/2/2006 12:17:01 PM
Yes, that is what I imagine is the problem. But I don't know of any setting
that controls subscriber specific timeouts.

[quoted text, click to view]
Paul Ibison
7/2/2006 8:08:36 PM
It still could be 'subscriber-specific', if one subscriber hasn't
synchronized for a while whereas the other synchronises more frequently -
perhaps this is the case?
Paul Ibison

AddThis Social Bookmark Button