The process could not execute 'sp_MSadd_replcmds'错误解决方案

场景:

今天在一台服务器上创建了一千五百个article的同步链后(大概十多个数据库),发现部分同步链存在报错。

具体现象是:

部分同步链的Log Reader和Distribution Agent Job无法被启动,具体的报错信息是:The process could not execute 'sp_MSadd_replcmds' on Database.....

 

查找了各种方案,都不得解决。最后突然想到可能跟注册表中一个值有关,之后去作出对应的修改:

将下列的

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\SubSystems\Windows:
%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,20480,768 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=winsrv:ConServerDllInitialization,2 ProfileControl=Off MaxRequestThreads=16

修改成
->%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,20480,2048 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=winsrv:ConServerDllInitialization,2 ProfileControl=Off MaxRequestThreads=16

 

之后再重启了服务器,这个错误就消失了。

--------------------------------------------------------

感觉自己有些时候还是没太全面参照我们的SOP来配置,其实在SOP中存在这部分的设置。给自己提个醒。。。。

 

posted @ 2015-10-22 13:03  Wison-Ho  阅读(1204)  评论(0编辑  收藏  举报