Received: (qmail 2232 invoked from network); 9 Sep 2012 16:24:07 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by static-ip-85-25-126-90.inaddr.ip-pool.com with SMTP; 9 Sep 2012 16:24:02 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 598DDEE85E1;
 Sun,  9 Sep 2012 17:24:01 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1347225841; bh=KGR+vaBhMmXuxab4A4QT91eWW64BuL5+kpMXZKIO
 rnU=; h=References:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:
	 MIME-Version:Content-type:Content-Transfer-Encoding:Sender:
	 Reply-To:List-help:List-unsubscribe:List-Id:List-subscribe:
	 List-owner:List-post:List-archive; b=Pw5keyWTP85eCeDvD6S9Az13NgfSX
 wx7rYrAdlZtlvgWSmvR9EK16cLjrFTCcvlGXNeEXx4QM2X0C9v+NsVz2I0MJf55qbOs
 5hyoZnFQdy5X/euMldl5+7DtdGfX0cMoee+qtL2obM46XWAikY7VddgJmhBi9gZgfKA
 A+Nkhw+o=
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
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 6xM+Zg2N7XHu; Sun,  9 Sep 2012 17:24:01 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 2B95BEE810D;
 Sun,  9 Sep 2012 17:23:18 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Sun, 09 Sep 2012 17:22:37 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id B5C57EE80E2
 for <oracle-l@freelists.org>; Sun,  9 Sep 2012 17:22:36 -0400 (EDT)
Authentication-Results: turing.freelists.org; dkim=pass (1024-bit key) header.i=@ymail.com
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 wTxmKEm8b-2c for <oracle-l@freelists.org>;
 Sun,  9 Sep 2012 17:22:36 -0400 (EDT)
Received: from nm36-vm2.bullet.mail.ne1.yahoo.com (nm36-vm2.bullet.mail.ne1.yahoo.com [98.138.229.114])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with SMTP id ECE4BEE7FFD
 for <oracle-l@freelists.org>; Sun,  9 Sep 2012 17:22:35 -0400 (EDT)
Received: from [98.138.90.50] by nm36.bullet.mail.ne1.yahoo.com with NNFMP; 09 Sep 2012 21:22:35 -0000
Received: from [98.138.89.171] by tm3.bullet.mail.ne1.yahoo.com with NNFMP; 09 Sep 2012 21:22:35 -0000
Received: from [127.0.0.1] by omp1027.mail.ne1.yahoo.com with NNFMP; 09 Sep 2012 21:22:34 -0000
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 998294.75660.bm@omp1027.mail.ne1.yahoo.com
Received: (qmail 2153 invoked by uid 60001); 9 Sep 2012 21:22:34 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1347225754; bh=0kXB+qKXSw/8sqXzfADRkAYTrBH9Yl2QWa1RLMWDPJA=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=Lv9zhrK8sN6TeEVxFxNGgojmRZ9kj+1GbQKf9hS5t2ApgPMjL+6rFPgCr/rqQCGfGFL7JupYzq8TxmuScIDRaXD+oZDZfRviJFWzMDMf7OqRhmnSLJ2vhlac3HFpxQrC/IW9QnvnJ574CvXpNuY/OCbPOHDzX+Vn3t0+HHlnuxI=
DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws;
  s=s1024; d=ymail.com;
  h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type;
  b=HlQmDvvm3CArCAUjRTMNsW3sik7745CNALVpPOzQ/jGKgYF36mxkKplQGVdpfhzCvQ7NV9epH56pqrgImV5EcRL/7GmPsLWF6BZln+0tr1IjKsf0IuvURk8aorLcCxkMx3WpucNoRnoOT7MrKmHCLCPzPoT4fF+xFtfqAgOeteM=;
X-YMail-OSG: ZBgWOJ4VM1ksZTbxVwBrmHbXlUtqSitxIPbUxt_wIyY7bkw
 0XU_9CC1Ye6aRr9enoFj_k6BLHemo6mhGMAIiDJDFZeA0lMQv5wM_epxMvu6
 Po50dTbuHctJ31kmaSroVKsInlMOiTbgY_GxzzkLF64byZRAZORd0jd35oUr
 U79LAygxOcDI7exu25koxBC28KR2FpcFNzkdhQ.qdan3i4jJ2ipoF2QUVXoK
 wUVFrlxRtAH9tD8A7UYuuGGHzNafQPXQB15Zyl7e.5YhwkLXkJXGSW1tOfi0
 JvALa754VPaLy3Qnaa6rEbSvVkpipbNCShLpV.eHhAYIw6YpuMa0HTA1A45b
 S2BiBKbZiyTY8WThGk0nPms0msHYormKgzUa7ytY.oVhtO3jh3u9HGJlZc5T
 W4iwqo8ruXKXoXU0vLTxp7nkOVKGGS.U1_6aK.a.AQTFX.klU_MZqtkz3wg3
 omwEuO95Ef2okHB34GdxN9eLwYabHKKgnDk0A6ExvEKJmBjMWFqt9cVd2190
 Z7V5q6Vsce2UXSwR5TvZWYWcqgopk2_9AbqMvectwbIQPZaffir9I_.j.1Dp
 x_EoRAxowfSltKvugPmp6bVUYHnje6NN1GxspkuDkdAWdIaS5Yz0KLId78Ca
 8VaPX8D4010NGs8Ou3BcixtGZPEIpabYJ3C8TBWbuoAIA18A-
Received: from [107.2.135.49] by web121003.mail.ne1.yahoo.com via HTTP; Sun, 09 Sep 2012 14:22:34 PDT
References: <CAFsgGrx1CBidGx+KFBPYvhvyqmVGif7vEA8o7sQ3-4kvaPtDYg@mail.gmail.com> <CADsdiQjA-Lggrj4LxSYkmyvAo49ii35O+wpwQHMpKQgXBmbK9w@mail.gmail.com> <CAFsgGrx5eiXqG-nC6D_6F5Y0-cAeF+mx4oBeEaB5qXzc+ppCKQ@mail.gmail.com> <CALH8A90TRc1Q6zVByRyrV6Nz6+MVMUfo5zL0wre9p4apPUKgNA@mail.gmail.com>
Message-ID: <1347225754.62642.YahooMailNeo@web121003.mail.ne1.yahoo.com>
Date: Sun, 9 Sep 2012 14:22:34 -0700 (PDT)
From: Kellyn Pot'vin <kellyn.potvin@ymail.com>
Subject: Re: Performance tuning of a system
To: "martin.a.berger@gmail.com" <martin.a.berger@gmail.com>,
  "s.cislaghi@gmail.com" <s.cislaghi@gmail.com>
Cc: kyle Hailey <kylelf@gmail.com>, Oracle L <oracle-l@freelists.org>
In-Reply-To: <CALH8A90TRc1Q6zVByRyrV6Nz6+MVMUfo5zL0wre9p4apPUKgNA@mail.gmail.com>
MIME-Version: 1.0
Content-type: text/plain
Content-Transfer-Encoding: 8bit
X-archive-position: 44718
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: kellyn.potvin@ymail.com
Precedence: normal
Reply-To: kellyn.potvin@ymail.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

I don't know the answer to this, but I would be interested to know-  If you DID change the parameters for how often ASH flushed to AWR, would the ASH and AWR data calculations still be correct in the reports?  Would it be essential to query the distinct ASH data directly to perform correct analysis?
I was surprised to see this, as in the last "Oracle Supported" ASH/AWR presentation on this subject, the guys were quite clear that we should NOT be changing how often it was flushed and "...the metric for flushing this was carefully calculated to work with the rest of the design..."

Something to think about and query...

Thanks!


 
Kellyn Pot'Vin
Senior Technical Consultant
Enkitec
DBAKevlar.com
RMOUG Director of Training Days 2013




~Tombez sept fois, se relever huit!


________________________________
 From: Martin Berger <martin.a.berger@gmail.com>
To: s.cislaghi@gmail.com 
Cc: kyle Hailey <kylelf@gmail.com>; Oracle L <oracle-l@freelists.org> 
Sent: Sunday, September 9, 2012 2:50 PM
Subject: Re: Performance tuning of a system
 
Ste,

do you have any chance to pin down a 'transaction' for sure?
Something like dbms_application_info is setting?

My problem:
* curently we do not know which part of your 'transactions' is slow.
* it's rare and can not be reproduced at will
* a target of 5 sec, and even a 'bad' query of 30 sec is hard to find
in dba_hist_active_session_history - you would need to sample
v$active_session_history manually immediately after the issue raises.

Doug Burns wrote about ASH and AWR sampling can be manipulated:
http://oracledoug.com/serendipity/index.php?/archives/1395-ASH-and-the-psychology-of-Hidden-Parameters.html
But I'd not like to go that way in production without good reason and support.

That's why I come back to identify the bad 'transactions'. If you can
pin those down, it should still give enough samples over some days so
they can be used in statistical methods?

Do you have a tracking table where all 'transactions' - and their
timing is tracked by the application?
If you have, you can create a trigger there and do your own 'flush
v$active_sesion_history into persistent table'

hth,
Martin


On Sun, Sep 9, 2012 at 6:16 PM, Stefano Cislaghi <s.cislaghi@gmail.com> wrote:
> Hi Kyle,
>
> your queries are very interesting and I will check them ASAP. Anyway I
> gained some more information about the problem.
> The constraint is to have all transactions performed in less than 5
> seconds. Transaction is not a single statement but, from the
> application point of view,
>
> - few selects into the db
> - elaborate data (by appserver)
> - run 2 or 3 store proc
>
> So we know that almost 99% are under 2 sec but sometimes others are
> above 5sec, 20/30sec. DB is not directly incriminated but it's been
> asked to provide, if any, any information for debugging. IMHO I think
> it is quite hard because the 'long' transactions happen everyday in
> totally different time windows; I do not have enough data, even with
> AWR, ecc to say what was happening for instance yesterday at 16:44:56
> sec where a transaction took 33sec instead 2. From the application we
> know that during the long transaction no abnormal load was done on db,
> I mean no abnormal number of transaction in the same second. Disk
> speed? maybe, but how to get the disk queue or any other interesting
> info from the DB?
--
http://www.freelists.org/webpage/oracle-l

--
http://www.freelists.org/webpage/oracle-l


