Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 11273 invoked from network); 4 Dec 2007 18:39:09 -0600
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by 69.64.49.119 with SMTP; 4 Dec 2007 18:39:09 -0600
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 7402A7D1995;
 Tue,  4 Dec 2007 19:39:09 -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 10972-04; Tue, 4 Dec 2007 19:39:09 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id E16807D1970;
 Tue,  4 Dec 2007 19:39:08 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Tue, 04 Dec 2007 18:52:13 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id A9D507CF53D
 for <oracle-l@freelists.org>; Tue,  4 Dec 2007 18:52:13 -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 03582-04 for <oracle-l@freelists.org>;
 Tue, 4 Dec 2007 18:52:13 -0500 (EST)
Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 89D0B7D0571
 for <oracle-l@freelists.org>; Tue,  4 Dec 2007 18:52:11 -0500 (EST)
Received: by ug-out-1314.google.com with SMTP id y2so282069uge
        for <oracle-l@freelists.org>; Tue, 04 Dec 2007 15:52:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        bh=7V3D2sPn+pdfCxcUaEBfZOy/erPOk8v5ZKzFRw6jud4=;
        b=ulELK+gkLYT2bpT3D7MwL2iVhenkmhMCEFeUTUrKh2Apo3tDkkAmezyg2/OJl9CnSL3mamgUqU3wLmBL0+up7/ZYcSe7ws3QnkYAz1AgNORyAojG6ZDWT1/dvhgM7PUqvfhWqQamqdm8QhdkcsxDgfU4JHRRsLgjTMIPoF/jxu4=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=oDe5rcpW0w0B+hRsGJMX5OpDANxDIbZ6xfxrAAPJlrgR/g/mwLAY9TM4SxJDZK7Igm0WcVPe9CwzmxryEWb/p9FsN4u3imiQZGqLofChQbFrKcIDekorMsLlkzD2U7oM45vUbXo1msm51rzQAOqOuqPDrCfNBmK9AVHHaqISeAo=
Received: by 10.78.149.15 with SMTP id w15mr6237334hud.1196812329448;
        Tue, 04 Dec 2007 15:52:09 -0800 (PST)
Received: by 10.78.190.15 with HTTP; Tue, 4 Dec 2007 15:52:09 -0800 (PST)
Message-ID: <2ead3a60712041552p5a9a47b2pbeb3aa7574b655f5@mail.gmail.com>
Date: Tue, 4 Dec 2007 15:52:09 -0800
From: "John Kanagaraj" <john.kanagaraj@gmail.com>
To: contactarul@gmail.com
Subject: Re: Performance issue - Not sure if its disk or some thing - How can I narrow down this
Cc: bnsarma@gmail.com, oracle-l <oracle-l@freelists.org>
In-Reply-To: <1c1a62990712041050o271ea216jbea4d2742dd360e0@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: <61292a9d0712040913p169e8ecbv8d648840269b7dd9@mail.gmail.com>
	 <1c1a62990712041050o271ea216jbea4d2742dd360e0@mail.gmail.com>
X-archive-position: 3705
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: john.kanagaraj@gmail.com
Precedence: normal
Reply-to: john.kanagaraj@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

BN,

Keep in mind that STATSPACK has a deficiency in the way Top SQL is
collected. The package scans V$SQL using a query that has  a fixed
number of Buffer gets, Disk-reads, etc. that is previously configured.
If you have pinned packages/cursors and have not restarted the Db in a
while, you will collect SQL that is executed a large number of times
for functional 9and valid reasons) that are really NOT the issue. (I
deal with this topic in detail in my papers and in my book)

>  2. Pick the top few sqls and their hash value from statspack based on "Gets
> per Exec" ( you can also compare statspack for a previous day/similar time
> when the system was healthy )

As for your disk issue, I wouldn't really depend on 'sar -d'. On
modern systems, there are just too many layers inbetween Oracle and
the final disk (see previous post). If you want to, I would rather
look at the Tablespace/File level I/O as recorded in STATSPACK and
look for oddities therein.

Finally, of course, you will need to look at Business critical SQL and
trace them with 10046 to really determine the issue.

-- 
John Kanagaraj <><
DB Soft Inc
http://www.linkedin.com/in/johnkanagaraj
http://jkanagaraj.wordpress.com (Sorry - not an Oracle blog!)
** The opinions and facts contained in this message are entirely mine
and do not reflect those of my employer or customers **
--
http://www.freelists.org/webpage/oracle-l


