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!

index unique scan Query

882093Oct 18 2011 — edited Oct 18 2011
hello all,

I am in the process of tuning a query. Now i want to fetch only 3k data from a table which has millions of data.

When i fetch its "using index(skip scan)" table scan so the cost will be around 73k.

But i hve a lot of conditions there i want it to choose index(unique scan) range scan,


Bcz previously i got the cost as only 64 that time the optimizer used "index(unique scan) range scan" only... so i want to get it back.

Any possible way of using "Oracle hint"? if so pls tell me..


and also let me knw that when will the optimizer choose "index(unique scan) range scan"?


Note: my table dont hve any constraints and indexes.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 15 2011
Added on Oct 18 2011
6 comments
483 views