Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to avoid full table scan without where clause.

Abdul WahidFeb 8 2011 — edited Feb 8 2011
Hi,
I have a system generated view which is based on our custom table.
The view does "UNION ALL" to our table.

SELECT C.SCHEDULE_ITEM_ID,
SYSDATE,
0,
USERENV ('SESSIONID'),
'C',
NULL,
0,
999912312359591111122222 ROW_KEY,
C.SCHEDULE_ID,
C.LINE_NUMBER,
C.DESCRIPTION,
C.MILESTONE_DATE,
C.MILESTONE_VALUE,
C.MILESTONE_ACHIEVED,
C.GRO_COMMENTS,
C.SUPPORT_DOC_REF,
C.SCO_NUMBER
FROM MILESTONE_SCH_LINES C; --This is our custom table.

So, I am not supposed to modify the view to put a where clause. And its going for full table scan.
Is there any way by which I can avoid full table scan on this table MILESTONE_SCH_LINE ?

Abdul Wahid
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 8 2011
Added on Feb 8 2011
4 comments
1,765 views