Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Analyze makes it FULL table scan??
I have a table with a few columns in it, a, b and c.
there is a primary index on a,b,c in that order. there is a bitmap index on b.
with the query
select * from blah where b = 'HELLO'
and with:
analyze table blah delete statistics.
I get the following show plan:
OPERATIONS OPTIONS OBJECT_NAME ------------------------- --------------- ------------------ TABLE ACCESS BY INDEX ROWID BLAH INDEX RANGE SCAN BLAH_Bwith statistics computed, I get
OPERATIONS OPTIONS OBJECT_NAME ------------------------- --------------- --------------------- TABLE ACCESS FULL BLAH
why is it now deciding to do a full table scan? It is NOT faster to do a full table scan.
I was having trouble with a larger query and was able to resolve it down to the simpler example above. When I run the more complicated query without the statistics computed it runs just as slow as with it. I need to be able to resolve this issue so that I can compute the statistics and have the query running at the speed that I think it should run at instead of some cartesian product type speed that it is displaying.
Any sugestions?
![]() |
![]() |