DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: index

  1. #1
    Join Date
    Jun 2001
    Posts
    45
    Why is Oracle not using the damn index

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    1. You forgot to analyze the table.
    2. Your query is returning too many rows
    3. You are specifying the second field of a multi-column index
    4. you are trying to select a null value
    5. you have a hint in your query the overrides the optimizer
    6. your sql requires an implicit type conversion
    7. your table is too small to use an index.


    More details would be helpful. What's the query? What are the table structures involved? What is representitive data?
    Jeff Hunter

  3. #3
    Join Date
    May 2001
    Location
    San Francisco, California
    Posts
    511
    Use explain plan to find out the executing path. Next step is to re-write the query with an optimizer hint. Run explain plan again.

    If you do not see the index you want being used, re-write the index. Make sure that the index refers to a column in the where clause. Oracle many not use index in the following situations: WHERE clause with subquery,GROUP BY, aggregate functions, DISTINCT, ROWNUM, or CONNECT BY/START WITH.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width