Groups | Blog | Home
all groups > sql server replication > april 2005 >

sql server replication : Restore of Publication Database caused error


Peter Nolan
4/7/2005 2:07:03 AM
Dear All,
We are currently using Transactional Replication for a Warm Standby.
We needed to perform a restore of out Publication Database last night and
now we are getting the error :-

DATE/TIME: 07/04/2005 09:50:29

DESCRIPTION: Error: 14151, Severity: 18, State: 1
Replication-Replication Transaction-Log Reader Subsystem: agent
INVEST1-ParisProduction-12 failed. The process could not execute
'sp_repldone/sp_replcounters' on 'INVEST1'.

COMMENT: One of the replications has failed, sort it out

JOB RUN: (None)

My normal fix for this would be to re-synchronise, but as the publication is
rather big I was wondering if there was a better way of doing it.

Thanks
Paul Ibison
4/7/2005 3:31:07 AM
It looks like the distribution database's xact number is
ahead of the logreader. You could restore a backup of the
distribution database which is from before the publisher's
backup, but then there could be the issue of primary key
errors on the subscriber as commands will be resent. In
short, I'd reinitialize in this case.
Rgds,
Paul Ibison, SQL Server MVP,
www.replicationanswers.com/default.asp
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
..
Hilary Cotter
4/7/2005 8:56:19 PM
try sp_replrestart or sp_repldone (EXEC sp_repldone @xactid = NULL,
@xact_segno = NULL, @numtrans = 0, @time = 0, @reset = 1)
--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
Peter Nolan
4/8/2005 2:35:02 AM
Thanks Guys,

Peter

[quoted text, click to view]
AddThis Social Bookmark Button