Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Join selectivity is 0 causing bad cardinality estimates.

Join selectivity is 0 causing bad cardinality estimates.

From: <andrew.markiewicz_at_gmail.com>
Date: 12 Dec 2006 13:47:44 -0800
Message-ID: <1165960064.046563.211800@n67g2000cwd.googlegroups.com>


Hello.
I have a tuning issue which has brought me a situation that is confusing. I have reduced the issue down to a simple join which should return all rows in the larger table (7792 rows). But the CBO join cardinality estimate is 1 for this join. I created a 10053 trace and found the join cardinality calculation uses a selectivity of zero causing the CBO to estimate 1 row. What would cause this?

>From my understanding the selectivity for this case should be 1/max(192,172) *(1)*(1) = 0.00521.

There are no implicit conversion issues I can find. There are no histogram lookups since there are not even any filtering predicates on the sql....
I'm not sure what else to look at.
Any ideas?

Thanks in advance.
Andrew

10053 trace follows:

Received on Tue Dec 12 2006 - 15:47:44 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US