all groups > sql server replication > august 2006 >
You're in the

sql server replication

group:

Queue Reader Agent won't restart


Queue Reader Agent won't restart Tom T
8/31/2006 11:16:01 AM
sql server replication:
I have installed transactional replication with queued updating on a sql
server 2000 (SP4) system. It has run fine until the other when the network
went down. When it came back up, replication came back up successfully except
for the queue reader agent. I researched the problem and it was due to the
database being changed in the second step of the queue reader job. I wrote to
a log and the actual error was:

Server: NLECADS01 Database:acuu: ODBC Error: Invalid Object name
'msqreader_agents'

I have seen a couple threads on this and it indicated that it should be
using the distribution database. The 'msqreader_agents' table exists in the
distribution database so this is the problem.

My real issue start when I go to change the queue reader agent job. I go to
the second step of the job and hit edit. I change the database in the
dropdown to 'distribution'. I hit apply and ok.

If I go right back in, the change has not taken. I thought this might simply
be a display problem so I attempted to start the agent. The same problem
occurs. It appears that the change of the database in the queue reader agent
is not successful.

Any ideas?
--
RE: Queue Reader Agent won't restart Tom T
9/1/2006 10:08:02 AM
Nobody has any ideas on this one? I am really stuck and could use some help.
--
Tom


[quoted text, click to view]
Re: Queue Reader Agent won't restart Paul Ibison
9/4/2006 12:00:00 AM
Please can you enable logging and then post up the full details of this
error.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com

Re: Queue Reader Agent won't restart Hilary Cotter
9/4/2006 12:00:00 AM
Can you make the default database that the account the subscription uses to
pulled or pushed with, the distribution database?


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

Re: Queue Reader Agent won't restart Tom T
9/4/2006 3:25:01 PM
I will attach the log first thing Tuesday morning. Thanks for your help.
--
Tom


[quoted text, click to view]
Re: Queue Reader Agent won't restart Paul Ibison
9/5/2006 12:00:00 AM
Tom,
you've probably seen this before, but here is the link for logging, just in
case: http://support.microsoft.com/?id=312292
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com

Re: Queue Reader Agent won't restart Paul Ibison
9/5/2006 12:00:00 AM
Tom,
can you check that the distributor is visible from the subscriber as a
remote server. The queue reader agent will be running as the sql server
agent of the subscriber, so log on as this login when testing the
connectivity, so you'll be checking the security at the same time.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com



Re: Queue Reader Agent won't restart Tom T
9/5/2006 5:01:02 AM
Here is the output from the log. Since we have many publications, it tries
over and over again. The basic error is the same,

Microsoft SQL Server Replication Queue Reader Agent 8.00.2039
Copyright (c) 2000 Microsoft Corporation
Microsoft SQL Server Replication Agent: [NLECADS01].8

Connecting to QueueReader 'NLECADS01.acudata'

Server: NLECADS01
DBMS: Microsoft SQL Server
Version: 08.00.2039
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/24/2006 11:00:31 AM]NLECADS01.acudata: select count(*) from
master.dbo.sysprocesses where [program_name] = 'Queue Reader Main (acudata)'
[8/24/2006 11:00:31 AM]NLECADS01.acudata: select top 1 id, name from
MSqreader_agents
Server: NLECADS01, Database acudata : ODBC Error:Invalid object name
'MSqreader_agents'.
Unable to connect to Local Distributor
Queue Reader aborting
Microsoft SQL Server Replication Queue Reader Agent 8.00.2039
Copyright (c) 2000 Microsoft Corporation
Microsoft SQL Server Replication Agent: [NLECADS01].8

Connecting to QueueReader 'NLECADS01.acudata'

Server: NLECADS01
DBMS: Microsoft SQL Server
Version: 08.00.2039
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/25/2006 9:26:10 AM]NLECADS01.acudata: select count(*) from
master.dbo.sysprocesses where [program_name] = 'Queue Reader Main (acudata)'
[8/25/2006 9:26:11 AM]NLECADS01.acudata: select top 1 id, name from
MSqreader_agents
Server: NLECADS01, Database acudata : ODBC Error:Invalid object name
'MSqreader_agents'.
Unable to connect to Local Distributor
Queue Reader aborting
Microsoft SQL Server Replication Queue Reader Agent 8.00.2039
Copyright (c) 2000 Microsoft Corporation
Microsoft SQL Server Replication Agent: [NLECADS01].8

Connecting to QueueReader 'NLECADS01.acudata'

Server: NLECADS01
DBMS: Microsoft SQL Server
Version: 08.00.2039
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/25/2006 9:32:30 AM]NLECADS01.acudata: select count(*) from
master.dbo.sysprocesses where [program_name] = 'Queue Reader Main (acudata)'
[8/25/2006 9:32:30 AM]NLECADS01.acudata: select top 1 id, name from
MSqreader_agents
Server: NLECADS01, Database acudata : ODBC Error:Invalid object name
'MSqreader_agents'.
Unable to connect to Local Distributor
Queue Reader aborting
Microsoft SQL Server Replication Queue Reader Agent 8.00.2039
Copyright (c) 2000 Microsoft Corporation
Microsoft SQL Server Replication Agent: [NLECADS01].8

Connecting to QueueReader 'NLECADS01.acudata'

Server: NLECADS01
DBMS: Microsoft SQL Server
Version: 08.00.2039
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/25/2006 9:44:04 AM]NLECADS01.acudata: select count(*) from
master.dbo.sysprocesses where [program_name] = 'Queue Reader Main (acudata)'
[8/25/2006 9:44:04 AM]NLECADS01.acudata: select top 1 id, name from
MSqreader_agents
Server: NLECADS01, Database acudata : ODBC Error:Invalid object name
'MSqreader_agents'.
Unable to connect to Local Distributor
Queue Reader aborting
Microsoft SQL Server Replication Queue Reader Agent 8.00.2039
Copyright (c) 2000 Microsoft Corporation
Microsoft SQL Server Replication Agent: [NLECADS01].8

Connecting to QueueReader 'NLECADS01.acudata'

Server: NLECADS01
DBMS: Microsoft SQL Server
Version: 08.00.2039
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/25/2006 9:48:52 AM]NLECADS01.acudata: select count(*) from
master.dbo.sysprocesses where [program_name] = 'Queue Reader Main (acudata)'
[8/25/2006 9:48:52 AM]NLECADS01.acudata: select top 1 id, name from
MSqreader_agents
Server: NLECADS01, Database acudata : ODBC Error:Invalid object name
'MSqreader_agents'.
Unable to connect to Local Distributor
Queue Reader aborting
Microsoft SQL Server Replication Queue Reader Agent 8.00.2039
Copyright (c) 2000 Microsoft Corporation
Microsoft SQL Server Replication Agent: [NLECADS01].8

Connecting to QueueReader 'NLECADS01.acudata'

Server: NLECADS01
DBMS: Microsoft SQL Server
Version: 08.00.2039
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/25/2006 9:52:42 AM]NLECADS01.acudata: select count(*) from
master.dbo.sysprocesses where [program_name] = 'Queue Reader Main (acudata)'
[8/25/2006 9:52:42 AM]NLECADS01.acudata: select top 1 id, name from
MSqreader_agents
Server: NLECADS01, Database acudata : ODBC Error:Invalid object name
'MSqreader_agents'.
Unable to connect to Local Distributor
Queue Reader aborting
Microsoft SQL Server Replication Queue Reader Agent 8.00.2039
Copyright (c) 2000 Microsoft Corporation
Microsoft SQL Server Replication Agent: [NLECADS01].8

Connecting to QueueReader 'NLECADS01.acudata'

Server: NLECADS01
DBMS: Microsoft SQL Server
Version: 08.00.2039
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

Re: Queue Reader Agent won't restart Hilary Cotter
9/5/2006 9:43:17 AM
Tom

The first series of messages
[8/24/2006 11:00:31 AM]NLECADS01.acudata: select count(*) from
master.dbo.sysprocesses where [program_name] = 'Queue Reader Main (acudata)'

imply that your queue reader cannot logon to your local distributor. Can you
verify that the queue reader account runs under the sa account of your
subscriber? If it runs under a differen account, ensure that the default
database for this account is the distribution database and this account is
in the dbo_role in the distribution database.

The next series of messages seem to imply that you have more than one queue
reader for the database. It is also troubling to me to see that somehow you
were down from the 28th at 5:00 pm to the 8/31 at 10:00 am. What occurred
during this time period?

[8/31/2006 9:59:14 AM]NLECADS01.distribution: select count(*) from
master.dbo.sysprocesses where [program_name] = 'Queue Reader Main
(distribution)'
Cannot have more than one instance of Queue reader agent for the
distribution database <distribution>

[8/31/2006 10:14:35 AM]NLECADS01.distribution: select count(*) from
master.dbo.sysprocesses where [program_name] = 'Queue Reader Main
(distribution)'
Cannot have more than one instance of Queue reader agent for the
distribution database <distribution>
Unable to connect to Local Distributor
Queue Reader aborting
Microsoft SQL Server Replication Queue Reader Agent 8.00.2039
Copyright (c) 2000 Microsoft Corporation
Microsoft SQL Server Replication Agent: [NLECADS01].8



--
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]
Re: Queue Reader Agent won't restart Tom T
9/5/2006 12:05:02 PM
The customer did not contact me until the 31st. From the sounds of it,
replication was down for a short amount of time (network issues) during that
period. On the 31st, I got a call indicating that the queue reader agent
could not be restarted. The techs in the field tried for 3 days. I looked at
the log and noticed that it was pointing to the wrong database.I changed the
job to look at the distribution database. I then got the second type of error
message when I again tried to restart the job.

Cannot have more than one instance of Queue reader agent for the
distribution database <distribution>

I ran the following sql statement in query analyzer on the server where the
publishing database and the distribution database reside.

select count(*) from master.dbo.sysprocesses where [program_name] = 'Queue
Reader Main (distribution)'

I get a count(*) of 1 even though the queue reader is not running. Is there
a way of clearing this entry out? Should this be 0 when the agent is not
running?

Thanks.
--
Tom


[quoted text, click to view]
Re: Queue Reader Agent won't restart Hilary Cotter
9/5/2006 3:14:00 PM
It just meant that the queue reader was running when you started the job. I
think everything is working now.
--
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]
AddThis Social Bookmark Button