How can I know that in any query any index was used or not?

    Requires Free Membership to View

The only way to know for sure is to look at the execution plan for that query. You can query V$SQL to find the PLAN_HASH_VALUE for your query. Using this value, you can query V$SQL_PLAN to see the execution plan. If your index is present in the plan for that query, it was used.

This was first published in May 2007

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.