数据同步订阅的注意事项

[ 2006-05-29 11:48:34 | 作者: progame ]
文字大小: | |
1、当你可以顺利建立订阅,但是在初始化同步时总是报错:
Error info : number 14010

Full error message : The remote server is not defined as a subscription
server.

那么你首先要查的就是
select @@servername
select SERVERPROPERTY('ServerName')

如果发现不一致,那么就
sp_dropserver 'old_name'
go
sp_addserver 'new_name', 'local'
go

2、如果初始化同步时总提报错说
Error: "The process could not make a generation at the 'Subscriber'

The merge process
timed out while executing a query.Reconfigure the
QueryTimeout parameter and retry the operation

然后你跑到run agent的property中加上 -QueryTimerout 10000
再试 结果还是这个错误的话

那么你就应该试试,重启subscriber的server服务了
因为很有可能有未释放的死锁或进程访问导致无法合并复制无法更新表结构

3、当碰到这个错误时
The agent is suspect. No response within last 10 minutes.

这个表示agent无法忍受这么慢的反应了[code]Just right click the Replication Monitor node, click Refresh Rate
and Settings, and then increase the Inactivity Threshold values.

4、清除订阅端的meta date
EXECUTE [TEST_B].dbo.sp_mergesubscription_cleanup @publisher = N'PROGAME', @publisher_db = N'TEST_A', @publication = N'TEST_A'
评论Feed 评论Feed: /feed.asp?q=comment&id=41

这篇日志没有评论.

发表
表情图标
[smile] [confused] [cool] [cry]
[eek] [angry] [wink] [sweat]
[lol] [stun] [razz] [redface]
[rolleyes] [sad] [yes] [no]
[heart] [star] [music] [idea]
UBB代码
转换链接
表情图标
悄悄话
用户名:   密码:   (非注册用户不需要输入密码) 注册?
验证码(不区分大小写) * 请输入验证码