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?

Sreekanth MunagalaMar 22 2010 — edited Mar 23 2010
Hi Friends,

I have a simple query like:
SELECT *
 FROM  APPS.RCV_SHIPMENT_HEADERS RSH
WHERE RSH.ASN_TYPE = 'ASN'
    AND RSH.SHIPMENT_NUM IS NOT NULL
    AND RSH.ATTRIBUTE7 IS NULL
As expected, there should be a FULL TABLE SCAN on the table because of "IS NULL" and "IS NOT NULL" conditions and it is true.
The optimizer is going for a FULL TABLE SCAN.

Is there any way to avoid this?

DB Version: Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production

Regards,
Sreekanth Munagala.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 20 2010
Added on Mar 22 2010
15 comments
14,001 views