How to avoid TableAccessFull [message #348573] |
Wed, 17 September 2008 05:24 |
srivishnuhari
Messages: 5 Registered: January 2006 Location: Chennai
|
Junior Member |
|
|
Hi,
I am facing the issue with "TABLEACCESSFULL" for the cursor which using only INDEXED Column in Where Clause.
E.g.,
Select empno, ename
from emp
where id = 10
Here ID is INDEXED COLUMN. [Ie. Primary Key]
But its going Full table scan in Explain Plan.
Kindly guide me on this to avoid
Full table scan ie. TABLE ACCESS FULL
Thanks!!!
|
|
|
|
|
Re: How to avoid TableAccessFull [message #349238 is a reply to message #348750] |
Fri, 19 September 2008 07:36 |
JRowbottom
Messages: 5933 Registered: June 2006 Location: Sunny North Yorkshire, ho...
|
Senior Member |
|
|
How many rows are there in the table - if it's small (only a few blocks), then it will probably be quicker to read them all than it would to read the index and then the table.
|
|
|
|
|