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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Forcing index usage without hints

712014Dec 2 2009 — edited Dec 2 2009
Dear Everybody,

I am a newbie in the world of oracle.

Recently my Boss asked me one question regarding index usage.

He want to force the index to be used though the optimizer does not choose to use it.

But limitattion is that he canot touch the query or code because it is directly fired by an application whose code we cannot change.

So how can one force a query to use index without giving any hints.

It should be for particular query, it should not apply for all the indexes in the database.

I know one parameter "OPTIMIZER_INDEX_COST_ADJ". If you set this parameter properly you can force the optimizer to use the index.But it has its own limitations.

So i want an alternative to this option which can be applied only for a particular query without using hints.

As this is my first thread, sorry if i had made any mistake in posting the question


Thank you all in advance

Regards,
Navin Bandi

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 30 2009
Added on Dec 2 2009
7 comments
477 views