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 -> Re: Does NOT automatically cause a full table scan? 9.2.0.5

Re: Does NOT automatically cause a full table scan? 9.2.0.5

From: <mfullerton_at_gmail.com>
Date: 3 Nov 2006 09:51:35 -0800
Message-ID: <1162576294.889807.143580@b28g2000cwb.googlegroups.com>


Can you post an explain plan for this? you may find that oracle rewrote your query. It could have also ran your query based on an index of t.b and taken the result set and filtered out the x,y,z.

Also, histograms will only be used if you created them. I have no idea if you did since you didn't post anything about that. Ben wrote:
> 9.2.0.5 Ent Ed AIX5L
>
> Does NOT automatically cause a full table scan or is that dependant
> upon histograms and the skew of the data? For example a statement like
>
> select t.a, t.b, t.c
> from t
> where t.b = 'abc'
> and not t.a = 'xyz';
Received on Fri Nov 03 2006 - 11:51:35 CST

Original text of this message

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