Excessive growth of the primary database log mirror and system Performance Monitoring

1 做镜象日志库主库 日志增长过快,并且无法截断.

解决方法 每隔段时间 备份多个日志 并收缩日志

eg:

backup log databasename to disk=''

dbcc shrinkfile(logfilename,size)

---size 根据实际情况定 不要过小 这样日志增长的时候影响 oltp

不用sql 是因为你必须做个 .bat 文件去定时 跑 删除 备份的日志。不易于维护.

xp_cmdshell 开启不利于 安全 开启关闭 不利于其他作业 线上情况一般是比较复杂的。

一般不推荐 xp_cmdshell 就算开启 关闭也不推荐。

2 system Performance Monitoring

一般 包含 4个性能计数器

1log bytes send

2log bytes received

3 log send queue

4 redo bytes

把他收集到 db 配上ssrs

---ip 隐去

principal 为主库性能计数器

mirror 为镜像库 性能计数器

原文地址:https://www.cnblogs.com/xwj1985/p/1708869.html