Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 23464 invoked from network); 22 May 2008 12:24:57 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by air964.startdedicated.com with SMTP; 22 May 2008 12:22:35 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 36862854B0B;
 Thu, 22 May 2008 13:16:58 -0400 (EDT)
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 01576-05; Thu, 22 May 2008 13:16:58 -0400 (EDT)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id A5B3B854B03;
 Thu, 22 May 2008 13:16:57 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Thu, 22 May 2008 12:38:25 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 2CB20853EA8
 for <ORACLE-L@freelists.org>; Thu, 22 May 2008 12:38:25 -0400 (EDT)
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 29234-03 for <ORACLE-L@freelists.org>;
 Thu, 22 May 2008 12:38:25 -0400 (EDT)
Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.244])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 04858853DC2
 for <ORACLE-L@freelists.org>; Thu, 22 May 2008 12:38:24 -0400 (EDT)
Received: by an-out-0708.google.com with SMTP id b38so35486ana.101
        for <ORACLE-L@freelists.org>; Thu, 22 May 2008 09:41:13 -0700 (PDT)
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=oRhUQ0wpz9d6walL6pqHDhddFzFlWdQZ2TOrZV5SmcY=;
        b=H09EnWCp1TqdS1jkHAfpRLcdfaofrg4CFo02Hxw93tcGazYeVUxZKLrXQfzzjhIM7yr5HiO826K/0iEhMacqITFwM1aPFpgVRYYmRxFHzqczQoiADmCY04TyXwAFqWon8PsvcHiQsgEUHZw1RylPFeqrZ5HVhl+gGH/XMgNwpa0=
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=pxBTBs1vArjbCjamK7NegZuwYWFm/MG/8OikSI0dNBsVTFntnBeAtDnguBLI8VwcJ8o1rOY2zY8Cho0HWzcl+BKxMFhMTAeECe9p9wXcfFgrroz8Y9YW2m6+a5UuI52nwYAH8PSfc2KOgYSut16Bu2vWr182qOAH/hhvKvJLR8w=
Received: by 10.100.91.17 with SMTP id o17mr293464anb.145.1211474473313;
        Thu, 22 May 2008 09:41:13 -0700 (PDT)
Received: by 10.100.239.17 with HTTP; Thu, 22 May 2008 09:41:13 -0700 (PDT)
Message-ID: <2ead3a60805220941i5880177i354afc2f33c4a375@mail.gmail.com>
Date: Thu, 22 May 2008 09:41:13 -0700
From: "John Kanagaraj" <john.kanagaraj@gmail.com>
To: "Ram Raman" <veeeraman@gmail.com>
Subject: Re: grant select command so slow
Cc: joan.hsieh@tufts.edu, oracle_l <ORACLE-L@freelists.org>
In-Reply-To: <effc058d0805191041l6c7362a6w17738d09a278527f@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
References: <482B33F9.7040006@tufts.edu>
	 <2ead3a60805151239u709dce53i37e048afeb688192@mail.gmail.com>
	 <effc058d0805191041l6c7362a6w17738d09a278527f@mail.gmail.com>
X-archive-position: 8340
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

> If that was the case, how did the grant run very fast the first time,
> according to the OP.

Not sure if that question was addressed to me, but here's a stab at
the answer (Disclaimer: I am a member of the BAAG party, so guessing
violates my agreement 8-)

The OP wasn't clear *when* the grants were first run. Was this when
the number of tables/views were less? What was the other load at that
time? Tracing the event and providing some stats would give us the
right clues. Otherwise we are just guessing here.

In general, the principles that I explained above applies: The
execution of thousands of GRANT statements translates to thousands of
hard parses and every SQL statement will get a different hash value,
chopping up your shared pool into fine bits.

-- 
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


