SQL 性能察看脚本
来源:互联网 发布:2017java开发前景如何 编辑:程序博客网 时间:2024/05/20 22:37
--显示数据库的一些信息
sp_helpdb
--表的索引情况
sp_helpindex
--连接名字、连接超时、查询超时
execute sp_helpserver
--察看锁的使用情况,S共享锁、U更新锁、IS意向共享锁
execute sp_lock
--监控磁盘读写、连接用户数、包的发送接收、cpu、i/o等
execute sp_monitor
--当前sql server用户和进程
execute sp_who
--连接sql server的次数
select @@connections as 'Total Login Attempts'
--sql server CPU活动时间(毫秒)
select @@cpu_busy as 'CPU Busy',getdate() as 'Since'
--sql server Idle进程处理时间(毫秒)
select @@idle as 'Idle Time', getdate() as 'Since'
--sql serveri/o进程处理时间(毫秒)
select @@io_busy as 'IO Time', getdate() as 'Since'
--被sql server收到的包
select @@pack_received
--被sql server发送的包
select @@pack_sent
--被sql server错误的包
select @@packet_errors
--被sql server读写磁盘错误的次数
select @@total_errors as 'Total Errors', getdate() as 'Since'
--被sql server读磁盘的次数
select @@total_read as 'Reads', getdate() as 'Since'
--被sql server写磁盘的次数
select @@total_write as 'Writes', getdate() as 'Since'
- SQL 性能察看脚本
- SQL 性能察看脚本
- 快速察看SQL日志
- SAP 响应时间 性能察看
- SAP 响应时间 性能察看
- 如何察看SQL Server2000的Code Page
- 关于sql脚本性能的一些研究
- Oracle 性能相关常用脚本(SQL)
- Oracle 性能相关常用脚本(SQL)
- Oracle 性能相关常用脚本(SQL)
- Oracle 性能相关常用脚本(SQL)
- shell脚本自动化采集性能sql
- Oracle 性能相关常用脚本(SQL)
- 数据库性能优化常用SQL脚本总结
- 数据库性能优化常用SQL脚本总结
- 数据库性能优化常用sql脚本总结
- oracle job 定时,启动,停止,察看状态。运行脚本
- oracle job 定时,启动,停止,察看状态。运行脚本
- 发布个小工具:表结构设计器(EZDML) V1.2
- Oracle中UTL_FILE包的用法
- Insider Computer Fraud: An In-depth Framework for Detecting and Defending against Insider IT Attacks
- 对数组名取地址(深信服笔试题)
- Flex 开发架构(五): Mate-基于标签的框架
- SQL 性能察看脚本
- 网恋情缘:从网络蔓延到现实的爱情
- 思乡的味道,从巴黎到中国
- Flex DataGrid 内联 itemRenderer
- Cecamera--调用Windows mobile摄像头程序
- 黑客入侵oracle数据库的一些心得
- 乱评:小沈阳、加洲宝贝、绿箭红火的原因
- 虚拟机使用方法(转载)
- Flex 开发架构(一): 混沌未开-Flex-all-in-one