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

Thread: Optimizer Mode

Threaded View

  1. #2
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    Quote Originally Posted by vnktummala View Post
    when I am generating explain plan for one of my queries, I have observed the note "rule based optimizer used (consider using cbo)".

    optimizer_mode=choose

    what made Oracle to user rule based optimizer? any clue will be much appreciated.

    Database is 10.2.0.4

    If i generate the plan for same query with some hint then it is using cbo which is expected.
    Check if there are statistics on all referenced tables - Oracle will choose rule based optimizer if tables have no stats.

    The reason why is that with no statistics Oracle can't figure out the cost so it makes no sense to use CBO.
    Last edited by PAVB; 08-10-2010 at 08:32 AM. Reason: Typo
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

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