Explain Plan [message #149540] |
Fri, 02 December 2005 03:14 |
dhar_kiran
Messages: 7 Registered: November 2005 Location: Delhi
|
Junior Member |
|
|
I have a table dept
Dept(Table) Total Rows:-1000
Deptno (primary Key)
Description (non unique index)
i am firing a query:-
explain plan for select * from dept
where deptno=10 or description ='Description-1'
and the explain Plan Generated is:
SELECT STATEMENT CHOOSE
TABLE ACCESS DEPT FULL
Q:- why Full table scan not Concatenation(because of using Multiple or containing indexed columns)
|
|
|
Re: Explain Plan [message #149578 is a reply to message #149540] |
Fri, 02 December 2005 06:09 |
|
Mahesh Rajendran
Messages: 10708 Registered: March 2002 Location: oracleDocoVille
|
Senior Member Account Moderator |
|
|
>> Q:- why Full table scan not Concatenation(because of using Multiple or containing indexed columns)
What is "Q" ?
If "Q" somehow means "question" and i do not understand your "Q".
Please rephrase.
Are you asking why your index is not used?
There are many factors.
Did you collect the statistics on tables/indexes?.
Or
may be because of your "OR"
>>or description ='Description-1'
[Updated on: Sat, 03 December 2005 01:20] Report message to a moderator
|
|
|
Re: Explain Plan [message #149702 is a reply to message #149540] |
Sat, 03 December 2005 00:51 |
bsubbu
Messages: 42 Registered: November 2005 Location: Hyderabad
|
Member |
|
|
hi,,
as mahesh sir said..
if u did not collect statistics..
collect statistics..
(1) analyze table dept compute statistics;
(2) explain plan for select * from dept where deptno=10;
Regards
Subbu
|
|
|
|
|
|
|