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

SELECT name,  log_reuse_wait_desc FROM sys.databases;

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

Message

 

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.

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

Date       2018/11/15 14:54:41

Log        SQL Server Agent (Archive #1 - 2018/11/20 9:11:00)

 

Message

[LOG] Step 2 of job 'xxxx' (0xE00DFF76D02DAD47920124DD907A412D) cannot be run because the LogReader subsystem failed to load.  The job has been suspended

 

 

 

Date       2018/11/15 14:54:44

Log        SQL Server Agent (Archive #1 - 2018/11/20 9:11:00)

 

Message

[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服务后,问题解决!

select * from msdb.dbo.syssubsystems

参考资料:

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

最新文章

  1. python基础(内置函数+文件操作+lambda)
  2. 机器学习技法--学习笔记04--Soft SVM
  3. input type="submit" 和"button"有什么区别?
  4. Python第九章模块和包
  5. Nginx集群(转)
  6. 轻量级C语言实现的minixml解析库入门教程
  7. 【kmp】 字符串最大周期
  8. 查找子字符串----KMP算法深入剖析
  9. 【DP】捡苹果
  10. MySQL实战45讲学习笔记:索引(第四讲)
  11. ECMA Script 6_Generator
  12. Nginx 减少关闭连接的time_wait端口数量
  13. cd4与cd8比值的意义
  14. Jmeter常用脚本开发之Java请求
  15. November 11th, 2017 Week 45th Saturday
  16. IIS7.5 配置虚拟目录的经历
  17. nodejs async
  18. UITableViewCell的父视图
  19. Redmine 邮件配置
  20. 如何修改git push时的密码

热门文章

  1. [Swift]LeetCode435. 无重叠区间 | Non-overlapping Intervals
  2. [Swift]LeetCode919. 完全二叉树插入器 | Complete Binary Tree Inserter
  3. [Abp 源码分析]十三、多语言(本地化)处理
  4. BBS论坛(八)
  5. 一张脑图说清 Nginx 的主流程
  6. mockjs,json-server一起搭建前端通用的数据模拟框架
  7. .NET中如何深度判断2个对象相等
  8. 【斐波那契数列】java探究
  9. opensuse使用zypper安装软件
  10. JavaSE之Long 详解 Long的方法简介以及用法