Excessive growth of the primary database log mirror and system Performance Monitoring
2010-04-10 11:43
796 查看
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 为镜像库 性能计数器
解决方法 每隔段时间 备份多个日志 并收缩日志
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 为镜像库 性能计数器
相关文章推荐
- The design and Implementation of a Log-Structured File System
- 133.Your database is open and the LISTENER listener is running. The new DBA of the system stops the
- Note: Time clocks and the ordering of events in a distributed system
- Linux System and Performance Monitoring(Memory篇)
- [monitoring] how to create script to monitoring the status of orders and make graphs
- [Solved] System.Data.SqlClient.SqlError: The backup set holds a backup of a database other than the existing ‘dbName’ database
- [转] Linux System and Performance Monitoring(CPU篇)
- 75.Your test database is configured to run in NOARCHIVELOG mode. One of the data files in the USERS
- The Basics of Configiration System -- ConfigNamespace and ConfigOption
- Delete archivelog in the primary database
- Time, Clocks, and the Ordering of Events in a Distributed System(译)
- Paper Research on the scheme of spatial database building based on the integration of GIS and CAD finished
- Linux - Sysstat [ All-in-One System Performance and Usage Activity Monitoring Tool For Linux]
- Linux System and Performance Monitoring(I/O篇)
- 137 While Monitoring the space usage in your database that is in ARCHIVELOG mode you observed that t
- Linux System and Performance Monitoring(CPU篇)
- [转] Linux System and Performance Monitoring(I/O篇)
- Evolved Packet System (EPS): The LTE and SAE Evolution of 3G UMTS
- 4.Your test database is running in NOARCHIVELOG mode. Which statement is true regarding the type of
- “System.IO.FileLoadException: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 错误