经验首页 前端设计 程序设计 Java相关 移动开发 数据库/运维 软件/图像 大数据/云计算 其他经验
当前位置:技术经验 » 数据库/运维 » MS SQL Server » 查看文章
cannot be run because the QueueReader subsystem failed to load
来源:cnblogs  作者:潇湘隐者  时间:2018/11/23 10:06:05  对本文有异议

前阵子一数据库服务器的事务日志开始暴增,当时使用下面脚本检查发现该数据库的log_reuse_wait_desc 一直处于REPLICATION状态, 也就是说在事务复制过程中,与发布相关的事务仍未传递到分发数据库。刚好前一天有个同事配置了AWS的DMS相关作业。

 

SELECT name,  log_reuse_wait_desc FROM sys.databases;

 

找到具体作业检查发现,该作业的第二步出现了错误,LogReader服务启动失败了。如需截图所示:

 

  1. Message
  1.  
  1. Unable to start execution of step 2 (reason: The LogReader subsystem failed to load [see the SQLAGENT.OUT file for details]; The job has been suspended).  The step failed.

clip_image001[4]

 

 

进一步检查SQL Server Agent的日志输出,发现是因为because the QueueReader subsystem failed to load

 

 

clip_image002[4]

 

 

 

  1. Date       2018/11/15 14:54:41
  1. Log        SQL Server Agent (Archive #1 - 2018/11/20 9:11:00)
  1.  
  1. Message
  1. [LOG] Step 2 of job 'xxxx' (0xE00DFF76D02DAD47920124DD907A412D) cannot be run because the LogReader subsystem failed to load.  The job has been suspended
  1.  
  1.  
  1.  
  1. Date       2018/11/15 14:54:44
  1. Log        SQL Server Agent (Archive #1 - 2018/11/20 9:11:00)
  1.  
  1. Message
  1. [LOG] Step 2 of job 'xxxx' (0x1BC045267CAE2F4A8C3E283921F40641) cannot be run because the QueueReader subsystem failed to load.  The job has been suspended

 

 

使用下面脚本检查,发现子系统QueueReader的dll是存在的,刚好同事前一天配置AWS时,在SQL Server里面添加了Replication相关组件。而添加组件后,没有重启SQL Server Agent服务。重启SQL Server Agent服务后,问题解决!

 

 

  1. select * from msdb.dbo.syssubsystems

 

 

 

参考资料:

 

https://www.sqlservercentral.com/Forums/783200/Replication-subsystems-failed-to-load

 友情链接:直通硅谷  点职佳  北美留学生论坛

本站QQ群:前端 618073944 | Java 606181507 | Python 626812652 | C/C++ 612253063 | 微信 634508462 | 苹果 692586424 | C#/.net 182808419 | PHP 305140648 | 运维 608723728

W3xue 的所有内容仅供测试,对任何法律问题及风险不承担任何责任。通过使用本站内容随之而来的风险与本站无关。
关于我们  |  意见建议  |  捐助我们  |  报错有奖  |  广告合作、友情链接(目前9元/月)请联系QQ:27243702 沸活量
皖ICP备17017327号-2 皖公网安备34020702000426号