Q

Using hints to force index use in PL/SQL

How can I use hints to force index use in PL/SQL?

Using a hint in PL/SQL is no different than using a hint in SQL. Depending on your version, your odds of success may be good or bad. Pre-Oracle 9i, the PL/SQL engine was different than the SQL engine so hints didn't always behave as expected in PL/SQL. One of the solutions was to write a view that encapsulated the hint and then have PL/SQL use that view, but that doesn't always work either.
 

This was last published in August 2004

Dig Deeper on Oracle database design and architecture

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close