Table of Contents

SQL Engine - SQL processing (Sql Compiler)

About

In which way the database processes:

Stages of SQL Processing

Oracle Database Sql Processing

Depending on the statement, the database may omit some of these steps.

Parsing

SQL Engine - SQL Parser

Optimization

SQL Engine - Query Optimizer (Query Optimization)

Query optimization is the process of choosing the most efficient means of executing a SQL statement. The database optimizes queries based on the optimizer statistics collected about the actual data being accessed.

The optimizer uses statistics such as :

to generate possible execution plans,

The database uses the plan with the lowest cost.

Row Source Generation

SQL Engine - Row source generator

Execution

SQL Engine - Execution

Documentation / Reference