<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Tkprof interpretation ! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tkprof-interpretation/m-p/2886528#M818845</link>
    <description>hi again,&lt;BR /&gt;sorry for the output problem.&lt;BR /&gt;posting the reply in the attached text file&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Yogeeraj</description>
    <pubDate>Tue, 21 Jan 2003 13:01:28 GMT</pubDate>
    <dc:creator>Yogeeraj_1</dc:creator>
    <dc:date>2003-01-21T13:01:28Z</dc:date>
    <item>
      <title>Tkprof interpretation !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tkprof-interpretation/m-p/2886526#M818843</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I collected sql_trace statistics and use tkprof to format the trace report.  However I have some doubt about the meaning of elapsed time ??  Any idea ?  What is the relationship between  cpu and elapsed time?  What are their significant in determinining the performance of the sql statement ?&lt;BR /&gt;&lt;BR /&gt;Appreciated for your comments.&lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;BR /&gt;&lt;BR /&gt;Chris Fung,</description>
      <pubDate>Tue, 21 Jan 2003 12:16:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tkprof-interpretation/m-p/2886526#M818843</guid>
      <dc:creator>Chris Fung</dc:creator>
      <dc:date>2003-01-21T12:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Tkprof interpretation !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tkprof-interpretation/m-p/2886527#M818844</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;CPU - In CPU seconds, how much time was spent on this phase of the query execution. This is only filled in if TIMED_STATISTICS are enabled.&lt;BR /&gt;&lt;BR /&gt;ELAPSED - As measured by the wall clock; how long this phase of query execution took. This is again only filled in if TIMED_STATISTICS are enabled.&lt;BR /&gt;&lt;BR /&gt;Let us see a tkprof that shows you things like:&lt;BR /&gt;&lt;BR /&gt;---------------------------------------------------------&lt;BR /&gt;update emp set ename = ename&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;call     count       cpu    elapsed       disk      query    current        rows&lt;BR /&gt;------- ------  -------- ---------- ---------- ---------- ----------  ----------&lt;BR /&gt;Parse        1      0.00       0.00          0          0          0           0&lt;BR /&gt;Execute      1      0.01      39.04          0         19         16          14&lt;BR /&gt;Fetch        0      0.00       0.00          0          0          0           0&lt;BR /&gt;------- ------  -------- ---------- ---------- ---------- ----------  ----------&lt;BR /&gt;total        2      0.01      39.04          0         19         16          14&lt;BR /&gt;&lt;BR /&gt;Misses in library cache during parse: 1&lt;BR /&gt;Optimizer goal: CHOOSE&lt;BR /&gt;Parsing user id: 241&lt;BR /&gt;&lt;BR /&gt;Rows     Row Source Operation&lt;BR /&gt;-------  ---------------------------------------------------&lt;BR /&gt;      0  UPDATE&lt;BR /&gt;     14   TABLE ACCESS FULL OBJ#(36120)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;so apparently, that took 0.01 cpu seconds yet it took 39.04 seconds by the wall clock.  The end user waited AT LEAST 39.04 seconds for that result to be returned -- maybe more (that is your Y above -- 39.04, you need the X to compute whether the server or client is the bottleneck)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now, since I have 9i we get the wait events in the tkprof as well, they are separate and distinct from ELAPSED times:&lt;BR /&gt;&lt;BR /&gt;Elapsed times include waiting on following events:&lt;BR /&gt;  Event waited on                             Times   Max. Wait  Total Waited&lt;BR /&gt;  ----------------------------------------   Waited  ----------  ------------&lt;BR /&gt;  enqueue                                        14        2.99         39.03&lt;BR /&gt;  SQL*Net message to client                       1        0.00          0.00&lt;BR /&gt;  SQL*Net message from client                     1        0.00          0.00&lt;BR /&gt;********************************************************************************&lt;BR /&gt;&lt;BR /&gt;here we see the database, during the processing of this statement waited on an enqueue (a LOCK -- i locked all rows in emp in another session first).  It timed out 14 times and went back and waited again.  That cumulative time -- 39.03 seconds -- accounts for the difference between the CPU time above and the ELAPSED time.  If we wait for nothing -- cpu and elapsed are the same, if we wait for some resource - they will differ.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Tue, 21 Jan 2003 12:58:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tkprof-interpretation/m-p/2886527#M818844</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-01-21T12:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Tkprof interpretation !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tkprof-interpretation/m-p/2886528#M818845</link>
      <description>hi again,&lt;BR /&gt;sorry for the output problem.&lt;BR /&gt;posting the reply in the attached text file&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Tue, 21 Jan 2003 13:01:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tkprof-interpretation/m-p/2886528#M818845</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-01-21T13:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Tkprof interpretation !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tkprof-interpretation/m-p/2886529#M818846</link>
      <description>Hi Yogeeraj,&lt;BR /&gt;&lt;BR /&gt;Thanks your your detailed explanation.  &lt;BR /&gt;&lt;BR /&gt;Very helpful to me !!!&lt;BR /&gt;&lt;BR /&gt;I am very appreciated.  Think that you probably an "OCM" !!&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Chris,</description>
      <pubDate>Thu, 23 Jan 2003 04:15:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tkprof-interpretation/m-p/2886529#M818846</guid>
      <dc:creator>Chris Fung</dc:creator>
      <dc:date>2003-01-23T04:15:27Z</dc:date>
    </item>
  </channel>
</rss>

