国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

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

2024-07-21 02:07:10
字體:
來源:轉載
供稿:網友
  • 網站運營seo文章大全
  • 提供全面的站長運營經驗及seo技術!
  • 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------------------[email protected]reset_sqlpluscolumn average_wait format 9999990.00select substr(e.event, 1, 40) event, e.time_waited, e.time_waited / ( e.total_waits - decode(e.event, 'latch free', 0, e.total_timeouts) ) average_waitfrom sys.v_$system_event e, sys.v_$instance iwhere e.event = 'buffer busy waits' or e.event = 'enqueue' or e.event = 'free buffer waits' or e.event = 'global cache freelist wait' or e.event = 'latch free' or e.event = 'log buffer space' or e.event = 'parallel query qref latch' or e.event = 'pipe put' or e.event = 'write complete waits' or e.event like 'library cache%' or e.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_waitfrom sys.v_$system_event e, sys.v_$sysstat swhere e.event = 'log file sync' and s.name = 'user commits'order by 2 desc/@reset_sqlplus其中和reset_sqlplus是:

    ----------------------------------------------------------------------------------- script:reset_sqlplus.sql-- purpose:to reset sqlplus settings---- copyright:(c) 1998 ixora pty ltd-- author:steve adams---------------------------------------------------------------------------------clear breaksclear columnsclear computesset feedback offset verify off
    資料來源:oracle8i internal services













    發表評論 共有條評論
    用戶名: 密碼:
    驗證碼: 匿名發表
    主站蜘蛛池模板: 灵璧县| 织金县| 五寨县| 伊金霍洛旗| 定南县| 漳平市| 锡林浩特市| 正镶白旗| 宿迁市| 思南县| 祁门县| 水城县| 永和县| 临湘市| 铁力市| 长白| 玉田县| 特克斯县| 无极县| 利津县| 连山| 页游| 南城县| 观塘区| 福安市| 黄陵县| 崇礼县| 托克托县| 金门县| 新干县| 泰宁县| 沾化县| 雷波县| 理塘县| 屏山县| 乐至县| 武义县| 上栗县| 大悟县| 攀枝花市| 江川县|