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

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

eg:

backup log databasename to disk=''

dbcc shrinkfile(logfilename,size)

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

 

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

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

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

 

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

 

2 system Performance Monitoring

一般 包含 4个性能计数器

1log bytes send

2log bytes received

3 log send queue

4 redo bytes

把他收集到 db 配上ssrs

---ip 隐去

principal 为主库性能计数器

mirror 为镜像库 性能计数器

 

 

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

 

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

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

 

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

 

 

相关文章:

  • 2022-12-23
  • 2021-06-15
  • 2021-10-06
  • 2021-10-13
  • 2022-12-23
  • 2021-07-26
  • 2022-12-23
  • 2022-03-06
猜你喜欢
  • 2022-02-14
  • 2021-04-15
  • 2021-11-22
  • 2022-12-23
  • 2021-12-09
  • 2021-11-08
相关资源
相似解决方案