Optimizer dynamic sampling

From Oracle FAQ

Jump to: navigation, search

Optimizer dynamic sampling refers to the ability of the SQL optimizer to take a sample of rows from a table to calculate missing statistics. Dynamic sampling can be controlled with the OPTIMIZER_DYNAMIC_SAMPLING parameter or the DYNAMIC_SAMPLING hint.

Dynamic sampling levels

Some of the sampling levels that can be used;

  • level 0 - do not use dynamic sampling
  • level 1 - ???
  • level 2 - ???
  • level 10 - sample all blocks in the table

External links

Personal tools