Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 26182 invoked from network); 23 Nov 2007 00:08:27 -0600
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by 69.64.49.119 with SMTP; 23 Nov 2007 00:08:26 -0600
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 27C497C0147;
 Fri, 23 Nov 2007 01:08:27 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 09788-03; Fri, 23 Nov 2007 01:08:27 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 922707C0630;
 Fri, 23 Nov 2007 01:08:26 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Fri, 23 Nov 2007 00:21:32 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 18C2B7C0495
 for <oracle-l@freelists.org>; Fri, 23 Nov 2007 00:21:32 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 04238-08 for <oracle-l@freelists.org>;
 Fri, 23 Nov 2007 00:21:31 -0500 (EST)
Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.237])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id B5FB57BFEC5
 for <oracle-l@freelists.org>; Fri, 23 Nov 2007 00:21:31 -0500 (EST)
Received: by wx-out-0506.google.com with SMTP id i27so1238106wxd
        for <oracle-l@freelists.org>; Thu, 22 Nov 2007 21:21:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=beta;
        h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references;
        bh=kDUyK5KJx89SbnqkMrOP2OAey4+wDBiZaS53uMst/78=;
        b=dW1u+yhqjmB9RTqInt03apwS7f9mnS3VE65iQiy3Hp97Ee0NGfqBckPi3mocSoJDZFqCNk2bk2GxbmHT68n+yEKwmQ+OXmEYVmJiMEcad34ybMP4BZTkeIx9O9IiZkJxiZyxLMU0045A+nziRal+2tJ6pxXA2akKsHMbzT7exZM=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=beta;
        h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references;
        b=H4+oXeoZcJRgZsyJxHpiGCD5p7BRFty49oKBjP8yQ//jphGAQz3s5FccYpbMuZP8sCoch3C55PVtGkKJ8cAFvVRNT2FhiN544ilOEgHzdKwPV+XKgUTx4Mk+tICga2ZJKEqFeCreyOzRPTVpvUsdOqLqBL+WOPBrzibT5Ehu/cI=
Received: by 10.70.49.1 with SMTP id w1mr535680wxw.1195795290507;
        Thu, 22 Nov 2007 21:21:30 -0800 (PST)
Received: by 10.90.94.20 with HTTP; Thu, 22 Nov 2007 21:21:30 -0800 (PST)
Message-ID: <df9f25d50711222121qc025638n18cb3575224ce5e4@mail.gmail.com>
Date: Fri, 23 Nov 2007 00:21:30 -0500
From: "Vlad Sadilovskiy" <vlovsky@gmail.com>
To: tanel.poder.003@mail.ee
Subject: Re: tkprof elapsed time
Cc: oracle-l <oracle-l@freelists.org>
In-Reply-To: <002501c82d21$04480aa0$3201a8c0@windows01>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_7755_28903515.1195795290495"
References: <df9f25d50711211127x55b42466w6f92005f996cbf35@mail.gmail.com>
	 <002501c82d21$04480aa0$3201a8c0@windows01>
X-archive-position: 3445
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: vlovsky@gmail.com
Precedence: normal
Reply-to: vlovsky@gmail.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
------=_Part_7755_28903515.1195795290495
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Tanel,

Thanks for taking time commenting on this issue and for the insight.

I wouldn't argue if you call commit call "*cursor-less call*". And you are
most probably right, it is not the same as seeing cursor slot allocated
under which there are waits but there are no call information.

The main point I was trying to make that in the situation with missing call
information Tkprof or any other utility doesn't have a good choice when
assigning waits. It is actually fortunate if they can at least gather these
waits under one of the ancestors. In the scope of suggested by you ASSM
bug, the "*log file sync*" would be gathered under cursor for *insert
*statement
and would be properly reflected in this cursor "*elapsed time*". Which we
don't see in the case that Alex provided. Hopefully, you see the difference.

Vlad Sadilovskiy
Oracle Database Tools
Web site: http://www.fourthelephant.com
Blog: http://vsadilovskiy.wordpress.com


.

On 11/22/07, Tanel Poder <tanel.poder.003@mail.ee> wrote:
>
>  Vlad, I would rather name it "cursorless call" as sqlplus'es autocommit
> is a separate OPI call which doesn't parse/execute any cursors.
>
>
> On a loosely related topic - there are few ASSM bugs which can cause a
> plain insert (without commits) to extensively wait on log file sync events.
> This is because lots of unsuccessful ASSM recursive space management
> transactions, which have to be rolled back - and rollbacks also need to wait
> for log file sync before returning.
>
> The symptom would be lots of waiting for log file syncs, high "transaction
> rollbacks" statistic increase without any accompanying "user rollbacks".
>
> One such bug is bug # 4664513 , but there's more.
> --
> Regards,
> Tanel Poder
> http://blog.tanelpoder.com
>
>
>  ------------------------------
> *From:* oracle-l-bounce@freelists.org [mailto:
> oracle-l-bounce@freelists.org] *On Behalf Of *Vlad Sadilovskiy
> *Sent:* Thursday, November 22, 2007 03:28
> *To:* amonte
> *Cc:* oracle-l
> *Subject:* Re: tkprof elapsed time
>
>
>  Alex,
>
> This insert statement should not produce any "*log file sync*" waits. This
> is the *commit's* job :). SQL*Plus autocommit does not create a "commit"
> statement as such. The "action" for this "commit" would not have associated
> cursor slot. That's what I call " *call-less*" cursor. However, it would
> cause waits to occur with the #0 cursor or in come cases the slot number of
> a call that would has just been completed. Tkprof usually associates these
> waits with the call that follows.
>
> Try reproducing it by issuing "COMMIT" explicitly.
> Regards,
>
> Vlad Sadilovskiy
> Oracle Database Tools
> Web site: http://www.fourthelephant.com
> Blog: http://vsadilovskiy.wordpress.com
>
>
>
>

------=_Part_7755_28903515.1195795290495
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>Tanel,</div>
<div>&nbsp;</div>
<div>Thanks for taking time commenting on this issue and for the insight. </div>
<div>&nbsp;</div>
<div>I wouldn&#39;t argue if you call commit call &quot;<strong>cursor-less call</strong>&quot;. And you are most probably right, it is not the same as&nbsp;seeing cursor slot allocated under which there are waits but there are no call information. 
</div>
<div>&nbsp;</div>
<div>The main point I was trying to make that in the situation with missing call information Tkprof or any other utility doesn&#39;t have a good choice when assigning waits. It is actually fortunate&nbsp;if they can at least gather&nbsp;these waits&nbsp;under&nbsp;one of the ancestors. In&nbsp;the scope of suggested by you ASSM bug,&nbsp;the &quot;
<strong>log file sync</strong>&quot; would be gathered under cursor for <strong>insert </strong>statement and would be properly reflected in this cursor &quot;<strong>elapsed time</strong>&quot;. Which we don&#39;t see in the case that Alex provided. Hopefully, you see the difference.
</div>
<div>&nbsp;</div>
<div>Vlad Sadilovskiy<br>Oracle Database Tools<br>Web site: <a href="http://www.fourthelephant.com/">http://www.fourthelephant.com</a><br>Blog: <a href="http://vsadilovskiy.wordpress.com">http://vsadilovskiy.wordpress.com
</a><br><br>&nbsp;</div>
<div>.<br>&nbsp;</div>
<div><span class="gmail_quote">On 11/22/07, <b class="gmail_sendername">Tanel Poder</b> &lt;<a href="mailto:tanel.poder.003@mail.ee">tanel.poder.003@mail.ee</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div><font face="Arial" color="#0000ff" size="2"><span>Vlad, I would rather name it &quot;cursorless call&quot; as sqlplus&#39;es autocommit is a separate OPI call which doesn&#39;t parse/execute any cursors.</span></font>
</div>
<div><font face="Arial" color="#0000ff" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" color="#0000ff" size="2"><span></span></font><font face="Arial" color="#0000ff" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" color="#0000ff" size="2"><span>On a loosely related topic -&nbsp;there are few ASSM bugs which can cause a plain&nbsp;insert (without commits) to extensively wait on log file sync events. This is because lots of unsuccessful ASSM recursive space management transactions, which have to be rolled back&nbsp;- and rollbacks also need to wait for log file sync before returning. 
</span></font></div>
<div><font face="Arial" color="#0000ff" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" color="#0000ff" size="2"><span>The symptom would be lots of waiting for log file syncs, high &quot;transaction rollbacks&quot; statistic increase without any accompanying &quot;user rollbacks&quot;.
</span></font></div>
<div><font face="Arial" color="#0000ff" size="2"><span></span></font>&nbsp;</div>
<div><font face="Arial" color="#0000ff" size="2"><span>One such bug is&nbsp;bug # 4664513 , but there&#39;s more.<br></span></font><font size="2"></font></div>
<div><font size="2">--<br>Regards,<br>Tanel Poder<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://blog.tanelpoder.com/" target="_blank">http://blog.tanelpoder.com</a><br></font></div>
<div><font face="Arial" color="#0000ff" size="2"></font>&nbsp;</div><font face="Arial" color="#0000ff" size="2"></font><br>
<blockquote style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<div lang="en-us" dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><b>From:</b> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:oracle-l-bounce@freelists.org" target="_blank">oracle-l-bounce@freelists.org</a> [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:oracle-l-bounce@freelists.org" target="_blank">
oracle-l-bounce@freelists.org</a>] <b>On Behalf Of </b>Vlad Sadilovskiy<br><b>Sent:</b> Thursday, November 22, 2007 03:28<br><b>To:</b> amonte<br><b>Cc:</b> oracle-l<br><b>Subject:</b> Re: tkprof elapsed time<br></font><br>
&nbsp;</div><span class="q">
<div></div>
<div>Alex,</div>
<div><font face="Arial" color="#0000ff" size="2"></font>&nbsp;</div>
<div><font face="arial,sans-serif">This insert statement should not produce any &quot;<strong>log file sync</strong>&quot; waits. This is the <strong>commit&#39;s</strong> job :).&nbsp;SQL*Plus autocommit does not create a &quot;commit&quot; statement as such. The &quot;action&quot;&nbsp;for this &quot;commit&quot; would not have associated cursor slot. That&#39;s what I call &quot; 
<strong>call-less</strong>&quot; cursor. However, it would cause waits to occur with the #0 cursor or in come cases the slot number of a call that would has just been completed. Tkprof usually associates these waits with the call that follows. 
</font></div>
<p><font face="arial,sans-serif">Try reproducing it by issuing &quot;COMMIT&quot; explicitly.</font></p>
<div><font face="arial,sans-serif">Regards,</font></div>
<p><font face="arial,sans-serif">Vlad Sadilovskiy<br>Oracle Database Tools<br>Web site: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.fourthelephant.com/" target="_blank">http://www.fourthelephant.com
</a><br>Blog: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://vsadilovskiy.wordpress.com/" target="_blank">http://vsadilovskiy.wordpress.com </a></font></p>
<div><font face="Arial" color="#0000ff" size="2"></font><font face="Arial" color="#0000ff" size="2"></font><br>&nbsp;</div></span></blockquote></div></blockquote></div><br>

------=_Part_7755_28903515.1195795290495--
--
http://www.freelists.org/webpage/oracle-l


