1. <ul id="0c1fb"></ul>

      <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
      <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区

      RELATEED CONSULTING
      相關(guān)咨詢
      選擇下列產(chǎn)品馬上在線溝通
      服務(wù)時(shí)間:8:30-17:00
      你可能遇到了下面的問(wèn)題
      關(guān)閉右側(cè)工具欄

      新聞中心

      這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
      WhatisDBtimeinAWR?

      AWR中有 DB time這個(gè)術(shù)語(yǔ),那么什么是DB time呢?

      我們提供的服務(wù)有:成都做網(wǎng)站、成都網(wǎng)站制作、成都外貿(mào)網(wǎng)站建設(shè)、微信公眾號(hào)開(kāi)發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認(rèn)證、青山湖ssl等。為1000多家企事業(yè)單位解決了網(wǎng)站和推廣的問(wèn)題。提供周到的售前咨詢和貼心的售后服務(wù),是有科學(xué)管理、有技術(shù)的青山湖網(wǎng)站制作公司

       

      Oracle10gR2 官方文檔 給出了詳細(xì)解釋(Oracle10gPerformance Tuning Guide 5.1.1.2 Time Model Statistics)

       

      The most important of the time model statistics is DB time. This statistics represents the total time spent in
      database calls and is a indicator of the total instance workload. It is calculated by aggregating the CPU and 
      wait times of all sessions not waiting on idle wait events (non-idle user sessions).

       

       根據(jù)官方文檔的解釋,DB time=DB CPU+ DB waiting time(no-idle time)

       

      那么下面我挑一個(gè)session來(lái)驗(yàn)證一下

       

      SQL> select sid,stat_id,stat_name,value/1000000/60 from V$sess_TIME_MODEL where sid=194;

             SID    STAT_ID STAT_NAME                                          VALUE/1000000/60
      ---------- ---------- -------------------------------------------------- ----------------
             194 3649082374 DB time                                                  33.5681982
             194 2748282437 DB CPU                                                   32.9633455
             194 4157170894 background elapsed time                                           0
             194 2451517896 background cpu time                                               0
             194 4127043053 sequence load elapsed time                                        0
             194 1431595225 parse time elapsed                                         .0005325
             194  372226525 hard parse elapsed time                                  .000498433
             194 2821698184 sql execute elapsed time                                 33.5674656
             194 1990024365 connection management call elapsed time                  .000047933
             194 1824284809 failed parse elapsed time                                         0
             194 4125607023 failed parse (out of shared memory) elapsed time                  0
             194 3138706091 hard parse (sharing criteria) elapsed time                        0
             194  268357648 hard parse (bind mismatch) elapsed time                           0
             194 2643905994 PL/SQL execution elapsed time                              .0000051
             194  290749718 inbound PL/SQL rpc elapsed time                                   0
             194 1311180441 PL/SQL compilation elapsed time                                   0
             194  751169994 Java execution elapsed time                                       0
             194 1159091985 repeated bind elapsed time                                 .0000001
             194 2411117902 RMAN cpu time (backup/restore)                                    0

      19 rows selected.

      Elapsed: 00:00:01.61

      SQL> select (sysdate-logon_time)*24*60 minutes, username,machine,sid,serial#,event,p1,p2,p3
        2  from v$session where sid=194;

         MINUTES USERNAME             MACHINE                     SID    SERIAL# EVENT                     P1    P2         P3
      ---------- -------------------- -------------------- ---------- ---------- -------------------- ---------- ---------- ----------
      34.4833333 WHSUSRGL             NA/BDC-KALIDO001            194      28391 direct path read tem        202      89709          1
                                                                                 p


      Elapsed: 00:00:01.15

      Session 194連接到數(shù)據(jù)庫(kù)已經(jīng)34.4833333分鐘,DB time=33.5681982 , CPU time=32.9633455

       

      現(xiàn)在來(lái)查詢一下ASH,我們知道ASH是每隔1秒鐘采樣一次

       

      SQL> select count(*)
        2         from v$active_session_history ash, v$event_name enm
        3         where ash.event#=enm.event#
        4         and SESSION_ID=194;

        COUNT(*)
      ----------
              47

       

      那么194這個(gè)session大概等待了47秒,也就是等待了大約。78333333分鐘

       

      SQL> select 47/60 from dual;

           47/60
      ----------
      .783333333

       

       

      SQL> select 32.9633455+.783333333 from dual;

      32.9633455+.783333333
      ---------------------
                 33.7466788

       

      DB CPU + 等待時(shí)間=33.7466788 ,而 DB time=33.5681982 他們相差不大,基本上可以說(shuō)明

       

      DB time=DB CPU+ DB waiting time(no-idle time)

       

      注意:AWR中的DB time等于所有session DB time之和(除去后臺(tái)進(jìn)程)

        

      SQL> select SESSION_ID,NAME,P1,P2,P3
        2         from v$active_session_history ash, v$event_name enm
        3         where ash.event#=enm.event#
        4         and SESSION_ID=194;

      SESSION_ID NAME                                        P1         P2         P3
      ---------- ----------------------------------- ---------- ---------- ----------
             194 db file sequential read                    202     106634          1
             194 db file sequential read                    202      53541          1
             194 db file sequential read                    202     204387          1
             194 db file sequential read                    202     242316          1
             194 db file sequential read                    202     251848          1
             194 db file sequential read                    202     201689          1
             194 db file scattered read                      45     480505         16
             194 db file scattered read                      44     169145         16
             194 db file scattered read                      45      32489         16
             194 db file scattered read                      44     316585         16
             194 db file scattered read                      46     255817         16
             194 db file scattered read                      47     204105         16
             194 db file scattered read                      44     236633         16
             194 db file scattered read                      46     222761         16
             194 db file scattered read                      44     232969         16
             194 db file scattered read                      44     230489         16
             194 db file scattered read                      44     227673         16
             194 db file scattered read                      45     177785         16
             194 db file scattered read                      44     292121         16
             194 db file scattered read                      45     136041         16
             194 db file scattered read                      28      17177         16
             194 db file scattered read                      47     233513         16
             194 db file scattered read                      44     222233         16
             194 db file scattered read                      46     211289         16
             194 db file scattered read                      47     152889         16
             194 db file scattered read                      45     164921         16
             194 db file scattered read                      47     149609         16
             194 db file scattered read                      44     312873         16
             194 db file scattered read                      45     157289         16
             194 db file scattered read                      45     155225         16
             194 db file sequential read                     50      30400          1
             194 db file sequential read                     43       8763          1
             194 db file scattered read                      36     518441         16
             194 db file scattered read                      37     504992          4
             194 db file scattered read                      38     195257         16
             194 db file scattered read                      37     209776          9
             194 db file scattered read                      41     119561         16
             194 db file scattered read                      39      62041         16
             194 db file scattered read                      41       4765          2
             194 db file scattered read                      38     438857         16
             194 read by other session                       38     335097          1
             194 latch: cache buffers chains         1.3835E+19        122          0
             194 db file sequential read                     27      52122          1
             194 db file sequential read                     41     140105          1
             194 read by other session                       36      97230          1
             194 db file scattered read                      38      17369         16
             194 db file sequential read                     37       1889          1

      47 rows selected.

       

      看AWR的時(shí)候,可以拿DB time和采樣時(shí)間間隔做比較,如果DB time高出采樣時(shí)間間隔很多,說(shuō)明數(shù)據(jù)庫(kù)負(fù)載很大

      同樣,可以拿DB time和DB CPU比較,如果 DB time高出DB CPU很多,說(shuō)明數(shù)據(jù)庫(kù)出現(xiàn)了顯而易見(jiàn)的性能問(wèn)題

      因?yàn)榈却龝r(shí)間過(guò)多。

       參考: http://blog.csdn.net/robinson1988/article/details/6077944
       


      網(wǎng)站標(biāo)題:WhatisDBtimeinAWR?
      瀏覽路徑:http://ef60e0e.cn/article/jgipee.html
      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区
      1. <ul id="0c1fb"></ul>

        <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
        <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

        浪卡子县| 赤壁市| 固始县| 西吉县| 化德县| 达孜县| 休宁县| 拉孜县| 吉林省| 揭西县| 肃南| 皋兰县| 永德县| 沅江市| 岳池县| 广汉市| 普宁市| 当阳市| 民权县| 确山县| 江安县| 林甸县| 柏乡县| 铜川市| 承德县| 洛隆县| 武鸣县| 伊川县| 永济市| 盐城市| 高淳县| 建湖县| 宜兰市| 墨江| 榕江县| 喜德县| 南安市| 楚雄市| 汾阳市| 体育| 商洛市|