What are the major diff between the Rule base optimization and Cost Base Optimization?

In rule base optimization we use the Query to tune,but in cost base optimization we use the data retrieved by the query.

Questions by raghav_oraapps

Showing Answers 1 - 1 of 1 Answers

Anurag Kehri

  • Jan 10th, 2006
 

Oracle having two mode of optimization.

1.Rule Based Optimizer(RBO).

2.Cost Based Optimization(CBO).

RBO is syntex driven,it uses basically a some kind of ranking system(20 condition ranking rule),called as a "Golden Rules".

to execute the query.

CBO is calculate the resource cost of each access path a choose the least expensive one,it is statical driven ,also uses the intelligent formula for calulating the cost of any SQL query after examine all the execution plan.

CBO having 80000+ combination for excuting any SQL query. By default Oracle 9i follows the CBO mode(choose).You can set it in session(useing alter session),or in instance level.

set optimization_mode =choose/rule

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions