引起快照重新初始化的原因

1

添加一个article到发布pub1,点击“查看快照代理状态”,发现pub1中所有的aritlce都生成了快照…

在发布库执行

select  immediate_sync  From  syspublications

or

sp_helppublication

发现immediate_sync为1. 将immediate_sync改成0即可:

sp_changepublication   @publication   =    ' publicationName '  
     ,  
@property   =    ' immediate_sync '  
     ,  
@value   =  false 

原因,可能是在添加发布时选中了immediate_sync选项

image

image

 

2

发现某些(事物)发布总是定期(例如每天生成一次快照)生成快照,

在发布服务器上执行sp_helpsubscriberinfo
发现其中一个订阅的frequency_type为4

 

在发布库执行下列语句即可

sp_changesubscriber   @subscriber =    ' subscriberservername '
   ,
@frequency_type =   64 

相关解释

[ @frequency_type=] frequency_type

Is the frequency with which to schedule the distribution task. frequency_type is int, and can be one of these values.

Value
Description

1

One time

2

On demand

4

Daily

8

Weekly

16

Monthly

32

Monthly relative

64

Autostart

128

Recurring

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值