Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 2793 invoked from network); 1 Dec 2007 19:16:25 -0600
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by 69.64.49.119 with SMTP; 1 Dec 2007 19:16:25 -0600
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 58E517CB459;
 Sat,  1 Dec 2007 20:16:26 -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 29033-05; Sat, 1 Dec 2007 20:16:26 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id C85097CB2D2;
 Sat,  1 Dec 2007 20:16:25 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Sat, 01 Dec 2007 19:29:30 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 1A1DA7CBE21
 for <oracle-l@freelists.org>; Sat,  1 Dec 2007 19:29:30 -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 21662-07 for <oracle-l@freelists.org>;
 Sat, 1 Dec 2007 19:29:29 -0500 (EST)
Received: from hs-out-2122.google.com (hs-out-0708.google.com [64.233.178.248])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id C4CA67CBE12
 for <oracle-l@freelists.org>; Sat,  1 Dec 2007 19:29:29 -0500 (EST)
Received: by hs-out-2122.google.com with SMTP id 23so310505hsn
        for <oracle-l@freelists.org>; Sat, 01 Dec 2007 16:29:29 -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:references;
        bh=mibgCJdybPGhfzGzKqej1QRlfGPzuve3m6dsvHqeZT4=;
        b=r5I9c6zn8w5yQ0blQ2HFJ7KvajEk7ct9FJMs6mZRWLOD1KM/+INUhkfP4k5qy0HgNjiOB0PgQk7P2aulhNAW4Qukx1o46JfewNzsly9fcSQ8aZWaSoUeE1wRUcnKpqiVzrRYgiLde0qyACiFvI+VznhBeKQPWnoy+1GWML+nWWg=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references;
        b=YRk2PXBVHZKi0Wu8aXlzHflsU8IIHSeEDSz3ZFLVTJdnD0YaxCS8MRKmuZvwC7Oa/AgPa0Gp7X0UOJJjkZvLva9SNkcPlHH3P0xN4C1lT+v9Z4aM4ThOFbyNjAXsYlb8TBDTDmk94xmQjM7rK4/9zJCLTsD4cjhs7EeV46Ibqc8=
Received: by 10.70.135.3 with SMTP id i3mr819776wxd.1196555369058;
        Sat, 01 Dec 2007 16:29:29 -0800 (PST)
Received: by 10.90.91.8 with HTTP; Sat, 1 Dec 2007 16:29:29 -0800 (PST)
Message-ID: <2ba656800712011629v8c6a7d8sfd22bf4e8b34f6e2@mail.gmail.com>
Date: Sat, 1 Dec 2007 19:29:29 -0500
From: "Rajeev Prabhakar" <rprabha01@gmail.com>
To: sacrophyte@gmail.com
Subject: Re: Dynamic Sampling: some questions about the guts
Cc: oracle-l <oracle-l@freelists.org>
In-Reply-To: <7b8774110712011434m2c151525je3187b59b0e6162e@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_694_28502140.1196555369055"
References: <7b8774110711301245w1507d405t61c3ce3a29cc4520@mail.gmail.com>
	 <209004.44232.qm@web807.biz.mail.mud.yahoo.com>
	 <7b8774110712011434m2c151525je3187b59b0e6162e@mail.gmail.com>
X-archive-position: 3665
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: rprabha01@gmail.com
Precedence: normal
Reply-to: rprabha01@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_694_28502140.1196555369055
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Charles

Unless you have already tried it, could you try the following
and let us know the results :

a) gathering stats with compute OR high sample (not AUTO).
b) use dbms_stats.set_column_stats for the relevant column.

-Rajeev

On Dec 1, 2007 5:34 PM, Charles Schultz <sacrophyte@gmail.com> wrote:

>
>
> The interesting part is that if I calc stats (estimate_percent => null),
> the CBO chooses an index for C3. We do not have an index for all 4 columns,
> but under certain circumstances, the CBO will choose that other index for
> C2, using three of the four columns in an access path, and CURR_REC_IND as a
> filter. Those of you with astute eyes will notice the VPD column and
> correctly assume we are using FGAC as well. That ends up being the most
> optimal path, and I trying to understand why. Obviously, there is a whole
> lot more information I could share, but first I wanted to understand how
> dynamic sampling was playing a part in this.
>
>
> Rajeev, to answer your questions:
> 1) Have tried with bucket 1, default and 254.
> 2) exact
> 3) Yes, all the time, every day. =) The parameters depend on what I am
> trying to do. I like to calc stats in these cases to give the CBO as much
> info as possible.
>
> Not sure how those questions/answers help, but there you go.
>
>
> Thanks all,
>
>
> --
> Charles Schultz

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

<div>Charles</div>
<div>&nbsp;</div>
<div>Unless you have already tried it, could you try the following&nbsp; </div>
<div>and let us know the results :</div>
<div>&nbsp;</div>
<div>a) gathering stats with compute OR high sample (not AUTO).</div>
<div>b) use dbms_stats.set_column_stats for the relevant column.</div>
<div>&nbsp;</div>
<div>-Rajeev<br><br></div>
<div class="gmail_quote">On Dec 1, 2007 5:34 PM, Charles Schultz &lt;<a href="mailto:sacrophyte@gmail.com">sacrophyte@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d"><br>&nbsp;</div>The interesting part is that if I calc stats (estimate_percent =&gt; null), the CBO chooses an index for C3. We do not have an index for all 4 columns, but under certain circumstances, the CBO will choose that other index for C2, using three of the four columns in an access path, and CURR_REC_IND as a filter. Those of you with astute eyes will notice the VPD column and correctly assume we are using FGAC as well. That ends up being the most optimal path, and I trying to understand why. Obviously, there is a whole lot more information I could share, but first I wanted to understand how dynamic sampling was playing a part in this. 
<br><br><br>Rajeev, to answer your questions:<br>1) Have tried with bucket 1, default and 254.<br>2) exact<br>3) Yes, all the time, every day. =) The parameters depend on what I am trying to do. I like to calc stats in these cases to give the CBO as much info as possible. 
<br><br>Not sure how those questions/answers help, but there you go.<br><br><br>Thanks all,<br><br clear="all"><br>-- <br><font color="#888888">Charles Schultz </font></blockquote></div><br>

------=_Part_694_28502140.1196555369055--
--
http://www.freelists.org/webpage/oracle-l


