Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> I am confused with this CBO issuse
scenario:
SELECT NUM_ROWS, LAST_ANALYZED FROM DBA_TABLES WHERE TABLE_NAME='XXX'; 0 SEPT-24-98 select count(*) from xxx;
1310000
There is an unique index on table xxx on column say index_0 on xxx(c1,c2);
Observation:
select * from xxx where c1=:a and c2=:b;
Noticed by an SAP monitor, ORACLE is doing a full table read, taking long time, which is understandable. what I am confused is that when I explain this stmt. I see ORACLE using the index index_0
What's wrong here??? What is the logical explaination here?
BTW. how can we find out ORACLE is doing a full table scan without using sql trace?
Thx
Received on Mon Oct 19 1998 - 23:05:24 CDT