Oracle 10 optimizer from RULE to COST: why?

后端 未结 6 1833
忘掉有多难
忘掉有多难 2021-01-14 01:26

Oracle decided to dismiss the rule-based optimizer from version 10g, leaving the cost-based one as the only choice.

I think that a rule-based optimizer has the unv

6条回答
  •  我在风中等你
    2021-01-14 02:05

    Because everything you can do with RBO, can be done with CBO.

    The CBO can be rule based too — more than that, you may decide the "rules" yourself.

    To create your own "rules", you hint your query or do a CREATE OUTLINE which will hint it for you. As a result, you execution plan is stable.

    The outlines are stored in a system schema called OUTLN, they are editable.

    As for me, I always supply hints to my queries running in a production database.

提交回复
热议问题