|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
出于效率方面的考虑,InnoDB数据表的数据行级锁定实际发生在它们的索引上,而不是数据表自身上。显然,数据行级锁定机制只有在有关的数据表有一个合适的索引可供锁定的时候才能发挥效力。数据|数据库
1.Thebestwayistorunsp_removedbreplication.
2.Afteryourunsp_removedbreplication,youmayrunthefollowing
scriptinyourrestoreddatabase.Thisscriptwillgeneratethedrop
commandsforreplicationrelatedsystemtables,views,storedprocedures
andtriggers.Youmaycheckthegeneratedoutputfirsttomakesureit
doesnotdropyourownuserobject,andthenruntheoutputtodrop
theseinformation.
setnocounton
Selectdroptable+namefromsysobjects
wherenamelike%conflict%andtype=u
Selectdroptable+namefromsysobjects
wherenamelikeMSMerge%andtype=u
Selectdroptrigger+namefromsysobjects
wheretype=trandstatus<0andcategory=2
Selectdropproc+namefromsysobjects
wherenamelikesp_%andtype=pandcategory=2
Selectdropproc+namefromsysobjects
wherenamelikesel_%andtype=pandcategory=2
Selectdropview+namefromsysobjects
wherenameliketsvw%andtype=vandcategory=2
Selectdropview+namefromsysobjects
wherenamelikectsv%andtype=vandcategory=2
3.(optionalstep)youmayusethestepsinthefollowingarticleto
makesureyouruserobjectsarenolongermarkedasbeingusedin
replication(bychangethereplinfocolumnofthesysobjectsto0.This
stepsisonlyneededifthereplinfocolumnisnot0):
http://support.microsoft.com?id=326352
4.(optionalstep)checkthestepsinthefollowingarticletomakesure
nocolumnsarebeingmarkedasreplicated:
http://support.microsoft.com?id=811899
恢复到之前的某个状态,是需要数据的。这数据可以是a)回滚步骤或者b)操作之前的数据状态原文。 |
|