Path: text.usenetserver.com!out04a.usenetserver.com!news.usenetserver.com!in02.usenetserver.com!news.usenetserver.com!postnews.google.com!f1g2000cwa.googlegroups.com!not-for-mail
From: "EscVector" <Junk@webthere.com>
Newsgroups: comp.databases.oracle.server
Subject: Re: Join selectivity is 0 causing bad cardinality estimates.
Date: 12 Dec 2006 19:59:28 -0800
Organization: http://groups.google.com
Lines: 29
Message-ID: <1165982368.461004.158090@f1g2000cwa.googlegroups.com>
References: <1165960064.046563.211800@n67g2000cwd.googlegroups.com>
   <frmdnbkwbrTGteLYnZ2dnUVZ8q6nnZ2d@bt.com>
   <1165961761.805346.111320@16g2000cwy.googlegroups.com>
   <1165962649.719151.162500@16g2000cwy.googlegroups.com>
   <0_idnbY-AosLs-LYnZ2dnUVZ8ty3nZ2d@bt.com>
NNTP-Posting-Host: 68.85.26.134
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1165982374 8004 127.0.0.1 (13 Dec 2006 03:59:34 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 13 Dec 2006 03:59:34 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: f1g2000cwa.googlegroups.com; posting-host=68.85.26.134;
   posting-account=YZW96w0AAABjQaJtmc4mPml4qWWrMr8V
Xref: usenetserver.com comp.databases.oracle.server:419092
X-Received-Date: Tue, 12 Dec 2006 22:59:34 EST (text.usenetserver.com)

So I'm guessing the answer would be, "No, it makes no sense..." :)


Jonathan Lewis wrote:
> <andrew.markiewicz@gmail.com> wrote in message
> news:1165962649.719151.162500@16g2000cwy.googlegroups.com...
> > We also have histograms calculated using a similar method as you have,
> > FOR ALL COLUMNS SIZE AUTO.
> >
>
> That's your main problem.
>
> You don't need histograms on all columns,
> and you don't want to let Oracle work out
> the details.
>
>
> --
> Regards
>
> Jonathan Lewis
> http://jonathanlewis.wordpress.com
>
> Author: Cost Based Oracle: Fundamentals
> http://www.jlcomp.demon.co.uk/cbo_book/ind_book.html
>
> The Co-operative Oracle Users' FAQ
> http://www.jlcomp.demon.co.uk/faq/ind_faq.html

