The goal of the optimizer is to choose the most efficient way to execute a SQL statement.
Latest Answer : The optimizer determines the most efficient way to use the tables and indexes to complete the request made by an SQL statement after considering many factors related to the objects referenced and the conditions specified in the query. ...
The combinations of the steps the optimizer chooses to execute a statement is called an execution plan.
Latest Answer : The operations that the oracle server performs to execute a SQL statement. ...
What are the different approaches used by Optimizer in choosing an execution plan ?
Rule-based and Cost-based.
The OPTIMIZER_MODE initialization parameter Statistics in the Data Dictionary the OPTIMIZER_GOAL parameter of the ALTER SESSION command hints
COST and RULE.
Latest Answer : One can specify COST , RULE or CHOOSE for OPTIMIZER _MODE in init.ora file ...
What is the effect of setting the value "CHOOSE" for OPTIMIZER_GOAL, parameter of the ALTER SESSION Command ?
The Optimizer chooses Cost_based approach and optimizes with the goal of best throughput if statistics for atleast one of the tables accessed by the SQL statement exist in the data dictionary.
What is the effect of setting the value "ALL_ROWS" for OPTIMIZER_GOAL parameter of the ALTER SESSION command ?
This value causes the optimizer to the cost-based approach for all SQL statements in the session regardless of the presence of statistics and to optimize with
Choosing an executing planbased on the access paths available and the ranks of these access paths.
Considering available access paths and determining the most efficient execution plan based on statistics in the data dictionary for the tables accessed