Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 12445 invoked from network); 1 Dec 2007 13:01:14 -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 13:01:14 -0600
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 976AB7CB403;
 Sat,  1 Dec 2007 14:01:15 -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 16156-06; Sat, 1 Dec 2007 14:01:15 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 14D067CB2A7;
 Sat,  1 Dec 2007 14:01:15 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Sat, 01 Dec 2007 13:14:20 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id EEB767CB5AC
 for <oracle-l@freelists.org>; Sat,  1 Dec 2007 13:14:19 -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 09935-06 for <oracle-l@freelists.org>;
 Sat, 1 Dec 2007 13:14:19 -0500 (EST)
Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.189])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 9DAF07CB6EC
 for <oracle-l@freelists.org>; Sat,  1 Dec 2007 13:14:19 -0500 (EST)
Received: by rv-out-0910.google.com with SMTP id b22so2182281rvf
        for <oracle-l@freelists.org>; Sat, 01 Dec 2007 10:14:18 -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:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding;
        bh=4wDLqUtLkvhEh27SrTvhDTKcBotfEFSdyZkuG4D29ao=;
        b=yALTfIF2WJsC0W8XYSiOtJm/nKI1MqMNuF6EXFaihCWOcVBPlKT3zHofK+jh1/hrOd41pmJzfRXBUBDdk3KKuPNgsvqSnB2ohScuVHCZmQJhF/NPHz579XKD0v/tV+fAXarscKiYvV3ef5faSDgcE+RfwY4bD/W71Ch7trDcPnI=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding;
        b=gvCJtxa9/cSRfXK3Brpw6WW9+mjDuOOFHNkCA6KRtftzduBbwqjqlgwXc4JR1CwYrvIVNJ/WdC2usa2PP6ihdOz93CTOatvfHCuhNQ2wT1Xpn2MOqnsoAnjKm7FPy8HimSwf/wnrv41e+UM3qp2TL12YCoAN37JblimUb3SBZFs=
Received: by 10.140.170.12 with SMTP id s12mr4726773rve.1196532858674;
        Sat, 01 Dec 2007 10:14:18 -0800 (PST)
Received: from ?192.168.0.11? ( [24.6.209.46])
        by mx.google.com with ESMTPS id f21sm3935769rvb.2007.12.01.10.14.17
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Sat, 01 Dec 2007 10:14:18 -0800 (PST)
Message-ID: <4751A477.7000208@gmail.com>
Date: Sat, 01 Dec 2007 10:14:15 -0800
From: Bob Carlin <smeghead.rimmer@gmail.com>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
To: oraclev28@gmail.com
CC: "oracle-l@freelists.org" <oracle-l@freelists.org>, ajeet.ojha@ge.com
Subject: Re: why the cardinality of explain plan defers with the caridnality
 in row source operation
References: <4303736f0711270615re44fe55x9878a1626713574e@mail.gmail.com>
In-Reply-To: <4303736f0711270615re44fe55x9878a1626713574e@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
X-archive-position: 3656
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: smeghead.rimmer@gmail.com
Precedence: normal
Reply-to: smeghead.rimmer@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

Ajeet,
I would suggest looking at some tips at

http://structureddata.org/2007/11/21/troubleshooting-bad-execution-plans/

ajeet ojha wrote:
> Hello,
>  
> In my database environment for many of the queires the explain plan 
> cardinality defers (huge difference) with the cardinality shown by row 
> source operations of tkprof.
> I have been trying to find all possible reasons -
>  
> so far I came to know that 2 main reasons -
>  
> 1. limitation of cbo as mentioned in the link below
>  
> http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:40230704959128
>  
> it also tells that solution is such cases is use dynamic_samping.
>  
> 2. the other reason is poor stats on the undelying tables/indexes.
>  
> please add if there are any more.
>  
> also how to collect a good stats  - is there any oracle recommendation 
> - best practices ?
>  
> are the above 2 are only reasons or there are many more - i went to 
> differnt forums and it seems that there are many more.
> please share if you have come across such sitution - possible 
> solutions etc.
>  
> Thanks
> Ajeet

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


