设为首页  
联系我们  
加入收藏  
网页制作 冲浪宝典 图形图像 操作系统 软件教学 编程开发 认证考试 安全技术 站长专区 文学驿站 娱乐天地 游戏天地 办公软件
文章搜索
您的位置: 首页 >> 文章首页 >> 编程开发 >> 数据库开发 >> V$system_event中Wait事件的一段话和resources_wait.sql
精品推荐
数据库开发点击TOP10
·MYSQL 新版出现 Client does not support authentication protocol requested by server; consider upgrading MySQL client解决办法
·生成助记码(取汉字的第一个字母)
·ORA-01034错误的解决办法
·ORACLE数据库管理员的职责
·将DW数据窗口导出为EXCEL文件的方法(整理)
·Oracle中分区表的使用
·SQL Server 2000+ MS WIN2003群集服务配置
·SQL中UNION 与 UNION ALL 的区别
·ORA-00257: archiver error. Connect internal only, until freed.
·Oracle备份与恢复案例
编程开发点击TOP10
·数字小键盘指法练习
·ASP.NET 程序中常用的三十三种代码
·用C语言编通讯录程序(初学者级别的)
·我写的Java学生成绩管理系统源代码
·CHK文件恢复工具
·Modem 常用AT指令集
·java笔试题
·异常java.sql.SQLException: Io exception:The Network Adapter could not establish connection
·单片机模拟I2C总线及24C02(I2C EEPROM)读写实例(源代码)
·C++经典电子书下载
精选专题

V$system_event中Wait事件的一段话和resources_wait.sql

作者: 来源:网络文章 时间:2005-12-17 22:30:36

V$system_event中Wait事件的一段话和resources_wait.sql(1) V$SYSTEM_EVENT shows the total number of waits and timeouts, and the total
waiting time recorded for each type of event, accumulated for all processes over
the life of the instance. It is normal to order the events waited for in descending
order of the total time waited, as an indicator of the potential severity of each
type of wait.
However, the total time waited is really only meaningful for those that indicate
waiting for resources. If processes have been waiting because they have no work
to do, then the time waited is immaterial. If they have been waiting for routine
operations, sUCh as disk I/O, then the total time waited will depend on the
workload. In such cases, the average time waited is much more interesting than
the total time waited.
This classification of wait types into idle waits, routine waits, and resource waits
is vital to a correct understanding of the wait statistiCS. Accordingly, APT has
separate scripts for resource waits and routine waits, and ignores idle waits
altogether. The routine_waits.sql script shows only the average time waited for
each type of routine wait. The resource_waits.sql script (see Example 2.1) shows
the types of resources waited for in descending order of the total time waited, but
also shows the average time waited.


resources_wait.sql:

----------------------------------------------------------------------------------- Script:resource_waits.sql-- Purpose:to show the total waiting time for resource types---- Copyright:(c) 1998 Ixora Pty Ltd-- Author:Steve Adams---------------------------------------------------------------------------------@reset_sqlpluscolumn average_wait format 9999990.00selectsubstr(e.event, 1, 40)event,e.time_waited,e.time_waited / ( e.total_waits - decode(e.event, 'latch free', 0, e.total_timeouts))average_waitfromsys.v_$system_evente,sys.v_$instanceiwheree.event = 'buffer busy waits' ore.event = 'enqueue' ore.event = 'free buffer waits' ore.event = 'global cache freelist wait' ore.event = 'latch free' ore.event = 'log buffer space' ore.event = 'parallel query qref latch' ore.event = 'pipe put' ore.event = 'write complete waits' ore.event like 'library cache%' ore.event like 'log file switch%' or( e.event = 'row cache lock' and i.parallel = 'NO')union allselect'non-routine log file syncs',round(e.average_wait * greatest(e.total_waits - s.value, 0)),e.average_waitfromsys.v_$system_event e,sys.v_$sysstat swheree.event = 'log file sync' ands.name = 'user commits'order by2 desc/@reset_sqlplus其中和reset_sqlplus是:
共2页 9 7 [1] [28 :>

V$system_event中Wait事件的一段话和resources_wait.sql 相关文章:
V$system_event中Wait事件的一段话和resources_wait.sql 相关软件:
特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
转载请注明来源:http://www.xgdown.com