Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Negative wait time

Negative wait time

From: Jamadagni, Rajendra <Rajendra.Jamadagni_at_espn.com>
Date: Mon, 2 Feb 2004 09:03:23 -0500
Message-ID: <A186CBDC8B1D61438BC50F1A77E91F73057C189E@xchgbrsm1.corp.espn.pvt>


Okay it is Monday and I seem to have difficulty remembering stuff ... I wrote a pl/sql procedure that analyzes a given trace file and produces output like this ... but look at wait time ... why is it < 0 ?? wait = elapsed-cpu right? What am I missing? In case you are wondering ... this procedure (and its output) is based on Cary's paper 'LIO Vs PIO' ... not precise, but should be pretty close.

SQL Hash Value : 98525727
SELECT count(distinct(us.Ut_Id)) Res_Prmpt

    From yyyy ms, zzzz us
   Where ms.Mg_Unit_Id = us.Ut_Id

     And us.Pob_Id = :b4
     and ( :b3 IS NULL OR us.Line_Number = :b3 )
     And us.Monday_Dt between :b2 AND :b1
     And us.Makegood = 'A'
     And us.Reason_Cd <> -19
     And ms.Mg_Unit_Type = 'P'
     And us.Ut_Id Not In (Select ms1.Mg_Unit_Id
                            From xxxx ms1, yyyy mh
                           Where ms1.Mg_Number = mh.Mg_Number
                             And ms1.Mg_Unit_Type = 'M'
                             And mh.Mg_Pob_Id = :b4
                             And mh.Mg_Line_Number = us.Line_Number)

                        -------- Response  Time --------
Action  Count      Rows   Ela Time   CPU Time  Wait Time LIO Blocks PIO Blocks

------ ------ --------- ---------- ---------- ---------- ---------- ----------
PARSE 1 0 0.000 0.000 0.000 0 0 EXEC 51 0 0.004 0.010 -0.006 0 0 FETCH 51 51 0.450 0.390 0.060 9047 11
------ ------ --------- ---------- ---------- ---------- ---------- ----------
TOTAL 103 51 0.454 0.400 0.054 9047 11

Any pointers are welcome, and yes please excuse me while I go have another coffee. Raj



Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email are strictly personal. QOTD: Any clod can have facts, having an opinion is an art !

Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--

Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
Received on Mon Feb 02 2004 - 08:03:23 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US