Hint not used
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Hint not used

  1. #1
    Join Date
    Jun 2001
    Posts
    32

    Hint not used

    Oracle 9.2
    Optimizer choose

    I have a table with 2 indexes.

    When I make the following staement :

    select /*+ index_asc (a attrib_name ) */ *
    from attributes a
    where rownum < 5

    It makes a full of the table.

    When I make this one :

    select /*+ index_desc (a OT_ATTRIBUTELIST_FK ) */ *
    from attributes a
    where rownum < 5

    It uses appropriately the index.

    Both indexes exist ( btree) and have been analyzed.

    Can someone explain ?
    Share on Google+

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    closing, duplicate.
    Jeff Hunter
    marist89@yahoo.com
    http://marist89.blogspot.com/
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."
    Share on Google+

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