Received: (qmail 22751 invoked from network); 9 Sep 2012 11:18:02 -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 11:17:58 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id CF0EDEE89D6;
 Sun,  9 Sep 2012 12:17:52 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1347207472; bh=3EDgGSybqh8a3wOzc8EI2GoD9sCBAlMqWnNnTqX1
 29s=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:
	 Subject:To:Cc:Content-type:Content-Transfer-Encoding:Sender:
	 Reply-To:List-help:List-unsubscribe:List-Id:List-subscribe:
	 List-owner:List-post:List-archive; b=jOO2xMRw6E3nNoRJG75x+L2/V5F7A
 OVbwSkZlbcljmqMwzIe58jQBCRU8aGubBJ0igPxUN7lQtIgI5ZtpOt4VD891F4ij8aX
 NeJXx+b1bpY8pRU23etaTIa0XBWd8rmczCEVdZTpjSbGob5F0QtbLFDdtqGHgyp/GKC
 YXLTXfvg=
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 fdpibVXJTV0j; Sun,  9 Sep 2012 12:17:52 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 656D6EE8959;
 Sun,  9 Sep 2012 12:17:09 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Sun, 09 Sep 2012 12:16:28 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 9C565EE819B
 for <oracle-l@freelists.org>; Sun,  9 Sep 2012 12:16:27 -0400 (EDT)
Authentication-Results: turing.freelists.org; dkim=pass (2048-bit key) header.i=@gmail.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 M9pKlafofXRD for <oracle-l@freelists.org>;
 Sun,  9 Sep 2012 12:16:27 -0400 (EDT)
Received: from mail-pz0-f51.google.com (mail-pz0-f51.google.com [209.85.210.51])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 35468EE8193
 for <oracle-l@freelists.org>; Sun,  9 Sep 2012 12:16:27 -0400 (EDT)
Received: by dajt11 with SMTP id t11so673656daj.10
        for <oracle-l@freelists.org>; Sun, 09 Sep 2012 09:16:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :cc:content-type;
        bh=rttPQeZu3P4THkrUCjyuETVvySWGP4WlN1sa78ETjeM=;
        b=cFe51qDpWzm43mRnHft32Bze7hVE2kQKs1OOwPJVvoyGfHkEf4SmOr85GYv7EbgjuM
         vrTMlujx+tP2bhs14z+skBLlUFZftnea9T4DdipdQuADh0/gplcpilXivqfCHX2/G/EU
         fyETYlc+2aInV1mZX/0eZiVHd3oeO4eRG9NwsqKazDj77RjuAjUkTmzJXJWQAS9awvSg
         8EDD/hjwVugM0zlF7oXtWYKQHS25D3w5EsdY0nN4OieRhPbWg92gO8WD53Y7gxEiYh6t
         iCyuO7tzygZpmvMAO5vCUm4P2lEozOZcfzux/9uW95x0T3hkHdUjdp+L8vT7Y3AGpTvJ
         2ezA==
Received: by 10.68.134.228 with SMTP id pn4mr837969pbb.147.1347207386544; Sun,
 09 Sep 2012 09:16:26 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.66.253.3 with HTTP; Sun, 9 Sep 2012 09:16:06 -0700 (PDT)
In-Reply-To: <CADsdiQjA-Lggrj4LxSYkmyvAo49ii35O+wpwQHMpKQgXBmbK9w@mail.gmail.com>
References: <CAFsgGrx1CBidGx+KFBPYvhvyqmVGif7vEA8o7sQ3-4kvaPtDYg@mail.gmail.com>
 <CADsdiQjA-Lggrj4LxSYkmyvAo49ii35O+wpwQHMpKQgXBmbK9w@mail.gmail.com>
From: Stefano Cislaghi <s.cislaghi@gmail.com>
Date: Sun, 9 Sep 2012 18:16:06 +0200
Message-ID: <CAFsgGrx5eiXqG-nC6D_6F5Y0-cAeF+mx4oBeEaB5qXzc+ppCKQ@mail.gmail.com>
Subject: Re: Performance tuning of a system
To: kyle Hailey <kylelf@gmail.com>
Cc: Oracle L <oracle-l@freelists.org>
Content-type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-archive-position: 44710
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: s.cislaghi@gmail.com
Precedence: normal
Reply-To: s.cislaghi@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

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?

Thanks
Ste

On 7 September 2012 17:56, kyle Hailey <kylelf@gmail.com> wrote:
>
> If you want to find any SQL executions over 2 seconds you can use something
> like
>
> https://github.com/khailey/ashmasters/blob/master/ash_sql_elapsed_hist_longestid.sql
>
> blogged on
>
> http://dboptimizer.com/2011/05/06/sql-ash-timings-iii/
>
> Since every sample in ASH is 1 second then you want any queries who's
> execution id shows up more than once, ie 2 seconds or more, so you set
>
>  &min_elapsed_time
>
> to one when you run the query
>
> - Kyle
>
>
>
> On Mon, Sep 3, 2012 at 12:55 PM, Stefano Cislaghi <s.cislaghi@gmail.com>
> wrote:
>>
>> Hi all,
>>
>> I'm facing with a nice (at least for me) exercise of performance and
>> tuning. I have an OLTP system must process each transaction in no more
>> than 2 seconds. A transaction is not a single query but consists of
>> some query and store procedure run from an application server. Almost
>> 98% of this complete in less than 2 second.
>> The main concern is that the system is accessed also by third parties
>> application, mainly for enquiries but also for updates. The DBA has
>> never been involved in the evaluation of DML done by third parties
>> applications and there is
>>
>> Now I would like, as starting point, to trace for 24hrs all queries
>> done by user THIRDPARTYAPP1 and THIRDPARTYAPP2 and its duration in
>> order to understand if some query run by these application might in
>> some case impact the performance of the database; also this may offer
>> an opportunity of review cause there is no complete list of which
>> queries are done by other external applications.
>> Moreover any other hints is well accepted.
>>
>> Database is 11.2.0.2 under Linux.
>>
>> Thanks
>> Ste
>> --
>> http://www.freelists.org/webpage/oracle-l
>>
>>
>
--
http://www.freelists.org/webpage/oracle-l


