Groups | Blog | Home
all groups > sql server replication > july 2007 >

sql server replication : "Mark for re-initialization" hangs


Hilary Cotter
7/25/2007 12:00:00 AM
can you issue this command in qa on the publisher in the publication
database?

sp_reinitsubscription
'publicationname','all','SubscriberName','subscriptionDatabase'

--
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]

hmb1963
7/25/2007 3:18:44 AM
Hi, I have a problem with a SQL 2000 transactional replication.
It is a replication with subscriptions on several world wide located
servers.
A WAN connection has been disabled for some time and as result one
subscription has been marked inactive.
Message: "The subscription(s) have been marked inactive and must be
reinitialized. NoSync subscriptions will need to be dropped and
recreated."
In the past this problem could been solved by re-initializing the
subscription but in this case
the Enterprise Manager hangs, when I tried to mark the subscription
for re-initialization.
Both SQL servers (publisher and subscriber) have been re-started but
the problem remained.
There are no sessions on the subscriber database which could block the
initialization.
The subscription can not be deleted.
What more can I do?
Hilary Cotter
7/26/2007 12:00:00 AM
use sp_who2 to identify locks/deadlocks caused by the replication processes
and selectively kill them,

Then try again.

--
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]

hmb1963
7/26/2007 2:44:37 AM
I tried out the stored procedure but the result was a hanging qa
without any status or error message.

hmb1963
7/27/2007 4:38:24 AM
Success!
I have killed again all sessions both on the publisher and subscriber
databases and
then the stored procedure sp_reinitsubscription worked.
Many thanks for your support.
Martin

AddThis Social Bookmark Button