Rule Based Optimizer  «Prev  Next»

Lesson 8Effective tuning tips for rule-based optimization
ObjectiveEvaluate and tune rule-based queries.

Rule-Based Optimization (RBO) is no longer used to tune the Oracle instance

Rule-Based Optimization (RBO) is no longer used to tune the Oracle instance in Oracle 19c. Oracle 19c exclusively uses Cost-Based Optimization (CBO) for query optimization. Oracle started phasing out RBO from Oracle 9i onwards, and it has been completely deprecated in recent versions, including Oracle 19c. The Cost-Based Optimizer (CBO) is now the default and only option in modern Oracle database versions, including 19c. The CBO uses statistics gathered about the database (such as table sizes, index efficiency, data distribution, etc.) to generate the most efficient execution plans for SQL queries. Tuning in Oracle 19c is typically focused on ensuring that the optimizer has up-to-date statistics and using features like SQL Plan Management, Adaptive Query Optimization, and Automatic Workload Repository (AWR) reports, rather than manually tweaking RBO rules as in earlier versions.

Legacy Rule-Based Optimization

When we evaluate and tune rule-based SQL queries, we should always follow this procedure.

Identify the states.
1) Identify the states.

Identify the events that trigger the transition between states.
2) Identify the events that trigger the transition between states.

Draw the statechart diagram.
3) Draw the statechart diagram.

Identify the states.
4) Identify the states.

Identify the states.
5) Identify the states.

Merge the new diagram with the previous diagrams to form a single statechart for the ShowSeat.
6) Merge the new diagram with the previous diagrams to form a single statechart for the ShowSeat.


The next lesson summarizes the module with a review.
SEMrush Software