Re: sp_replcmds

From: Hilary Cotter (hilary.cotter_at_gmail.com)
Date: 08/31/04


Date: Mon, 30 Aug 2004 22:43:39 -0400

run a dbcc opentran

see if there is an open transaction you can identify as not belonging to an
active process and kill it. It is possible that there is an open transaction
which is holding your transaction log open.

I'd call PSS to see if they can't help you through this one.

You can also issue an sp_repldone to mark your tlog as replicated and then
truncate your transaction log. Look up the syntax for this command in BOL.
The problem is that your publisher and subscriber(s) will be out of sync.
You will then need to reinitalize and regenerate and redistribute your
snapshots to all subscribers.

-- 
Hilary Cotter
Looking for a book on SQL Server replication?
http://www.nwsu.com/0974973602.html
"Andre" <no@spam.com> wrote in message
news:%23DpnSYvjEHA.3852@tk2msftngp13.phx.gbl...
> Hillary,
>
> I bounced my publisher and am having the same exact issue with the Log
> Reader retrying.  Any other suggestions?  I really don't want to blow away
> my subscriptions but I'm afraid I might have to do that because my tran
log
> is full.  I've expanded it a little but 60 GB is pretty much my max...
>
> Thanks again, Andre
>
>
> "Hilary Cotter" <hilary.cotter@gmail.com> wrote in message
> news:%23ENhbAqjEHA.3664@TK2MSFTNGP11.phx.gbl...
> > This is caused by a resource problem on your Publisher. Unfortunately
the
> > way to stop it is to try the following sequence.
> >
> > Stop SQL Server agent, restart it and see if this clears the error.
> > Stop SQL Server, restart it and see if this clears the error.
> > Bounce your OS and see if this clears the error.
> >
> > -- 
> > Hilary Cotter
> > Looking for a book on SQL Server replication?
> > http://www.nwsu.com/0974973602.html
> >
> >
> > "Andre" <no@spam.com> wrote in message
> > news:OwJt$0pjEHA.1040@TK2MSFTNGP10.phx.gbl...
> > > Thanks for both of the replies.  I used the link Hillary provided and
> did
> > > see the issue that Paul mentioned - 'Another log reader is replicating
> the
> > > database.'.
> > > So I ran sp_replflush and it seemed like the Log Reader was going to
> work.
> > > But this time it timed out, as you can see below.  Now it seems to be
> > stuck
> > > in a loop where it's "Initializing".  I'm not sure why it can't talk
to
> > the
> > > publication server because I'm having no problems at all.  I pulled up
> QA
> > on
> > > REP01 and was able to logon and run queries on SQL01 just fine.
> > >
> > > Any suggestions?
> > >
> > > Thanks, Andre
> > >
> > > Server:
> > > DBMS: Microsoft SQL Server
> > > Version: 08.00.0818
> > > user name: dbo
> > > API conformance: 2
> > > SQL conformance: 1
> > > transaction capable: 2
> > > read only: N
> > > identifier quote char: "
> > > non_nullable_columns: 1
> > > owner usage: 31
> > > max table name len: 128
> > > max column name len: 128
> > > need long data len: Y
> > > max columns in table: 1024
> > > max columns in index: 16
> > > max char literal len: 524288
> > > max statement len: 524288
> > > max row size: 524288
> > >
> > > [8/30/2004 7:06:42 AM]SQL01.LIVE: select @@SERVERNAME
> > > [8/30/2004 7:06:42 AM]SQL01.LIVE: sp_MSgetversion
> > > Status: 4096, code: 20024, text: 'Initializing'.
> > > The agent is running. Use Replication Monitor to view the details of
> this
> > > agent session.
> > > Publisher: {call sp_repldone ( 0x00051a7500003a050004,
> > > 0x00051a7500003a050004, 0, 0)}
> > > Status: 2, code: 0, text: 'The process could not execute
> > > 'sp_repldone/sp_replcounters' on 'SQL01'.'.
> > > The process could not execute 'sp_repldone/sp_replcounters' on
'SQL01'.
> > > Status: 2, code: 18752, text: 'Another log reader is replicating the
> > > database.'.
> > > Status: 0, code: 22017, text: 'The process could not set the last
> > > distributed transaction.'.
> > > Disconnecting from Publisher 'SQL01'
> > > The agent failed with a 'Retry' status. Try to run the agent at a
later
> > > time.
> > > Microsoft SQL Server Log Reader Agent 8.00.760
> > > Copyright (c) 2000 Microsoft Corporation
> > > Microsoft SQL Server Replication Agent: SQL01-LIVE-2
> > >
> > > Connecting to Publisher 'SQL01.LIVE'
> > >
> > > [8/30/2004 7:07:51 AM]SQL01.LIVE: select @@SERVERNAME
> > > [8/30/2004 7:07:51 AM]SQL01.LIVE: sp_MSgetversion
> > > Status: 4096, code: 20024, text: 'Initializing'.
> > > The agent is running. Use Replication Monitor to view the details of
> this
> > > agent session.
> > > Publisher: {call sp_repldone ( 0x00051a7500003a050004,
> > > 0x00051a7500003a050004, 0, 0)}
> > > Publisher: {call sp_replcmds (500, 0)}
> > > Status: 2, code: 0, text: 'The process could not execute 'sp_replcmds'
> on
> > > 'SQL01'.'.
> > > The process could not execute 'sp_replcmds' on 'SQL01'.
> > > Status: 2, code: 0, text: 'Timeout expired'.
> > > Disconnecting from Publisher 'SQL01'
> > > The agent failed with a 'Retry' status. Try to run the agent at a
later
> > > time.
> > >
> > > [8/30/2004 7:14:00 AM]SQL01.LIVE: select @@SERVERNAME
> > > [8/30/2004 7:14:00 AM]SQL01.LIVE: sp_MSgetversion
> > > Status: 4096, code: 20024, text: 'Initializing'.
> > > The agent is running. Use Replication Monitor to view the details of
> this
> > > agent session.
> > > Publisher: {call sp_repldone ( 0x00051a7500003a050004,
> > > 0x00051a7500003a050004, 0, 0)}
> > > Publisher: {call sp_replcmds (500, 0)}
> > >
> > >
> >
> >
>
>


Relevant Pages

  • Re: SQL Server 2005 replication monitor questions
    ... >> To get to the agents expand SQL Server Agent jobs, ... click on your publication in Enterprise ... >> bottom half you will see your snapshot and distribution agent. ... >> monitor it there (through replication monitor). ...
    (microsoft.public.sqlserver.replication)
  • Re: Application is closed during second synchronization
    ... To start the merge agent in SQL Server 2000, open Enterprise Manager, ... Replication Monitor, Expand the publication and on the RHS you'll see the ...
    (microsoft.public.sqlserver.replication)
  • Re: SQL Server 2005 replication monitor questions
    ... It seems to be the order that they were registered in Replication Monitor. ... To get to the agents expand SQL Server Agent jobs, ... click on your publication in Enterprise ... Looking for a SQL Server replication book? ...
    (microsoft.public.sqlserver.replication)
  • Re: 2005 Replication Mon Interface
    ... > Connect to your Publisher in WorkBench, expand the Replication node, ... > Launch Replication Monitor. ... > You can also access it through the SQL Server Agent node in SQL WorkBench ...
    (microsoft.public.sqlserver.replication)
  • Re: Network traffic with transactional replication with immediate updates (SQL 2005)
    ... publisher/distributor running on the main office and a subscriber at the ... This is a new SQL Server 2005 behaviour, ... the agent should execute them (maybe the agent just ... I cannot find a way to explain why Distributor Agents are to ...
    (microsoft.public.sqlserver.replication)

Loading