Professional Documents
Culture Documents
The following is intended to outline our general product direction. It is intended for
information purposes only, and may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality, and should not be relied upon
in making purchasing decisions. The development, release, and timing of any features or
functionality described for Oracle’s products remains at the sole discretion of Oracle.
Nigel Bayliss
Optimizer Product Manager
@vldbb
http://blogs.oracle.com/optimizer
Data Warehousing
Product Management Team
Nigel Bayliss
Optimizer Product Manager
@vldbb
http://blogs.oracle.com/optimizer
Data Warehousing
Product Management Team
Min/Max
#Distinct
Data values
Distribution
...and more...
Correlation
#Distinct
Data values
December
Distribution
...and more...
Correlation
12c Optimizer
Adaptive
Adaptive Statistics
Plans
Dynamic
Sampling
Column Usage
Statistics
Sample data to
account for missing
or inadequate
Histograms statistics
Gather Statistics
FOR ALL COLUMNS
SIZE AUTO Column group
statistics created
automatically
Histograms
12c Optimizer
Adaptive Adaptive
Plans Statistics
Zero Fully
Adaptive Adaptive
OPTIMIZER_ADAPTIVE_PLANS OPTIMIZER_ADAPTIVE_STATISTICS
12c Optimizer
Adaptive Adaptive
Plans Statistics
12c Optimizer
Adaptive Adaptive
Plans Statistics
Gather Statistics
FOR ALL COLUMNS
SIZE AUTO Column group
statistics created
automatically
Histograms
Adaptive
Plans
Dynamic
Statistics
Gather Statistics
FOR ALL COLUMNS
SIZE AUTO
Histograms
Adaptive
Plans
Dynamic
Statistics
Histograms
Dynamic
Statistics
Gather Statistics
FOR ALL COLUMNS
SIZE AUTO
Histograms
Set OPTIMIZER_ADAPTIVE_PLANS=FALSE
Set OPTIMIZER_ADAPTIVE_STATISTICS=TRUE
Optionally, set DBMS_STATS preference
AUTO_STAT_EXTENSIONS=ON
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 40
Adaptive Statistics
OPTIMIZER_ADAPTIVE_STATISTICS=TRUE
Gather
SYSAUX Tablespace SALES
P1 has a synopsis Statistics
in pre-12.2 format
P1
P2
Synopsis for
P2 in compact
12.2 format
Good
1. Capture
Execution
Plans
Good
1. Capture
Execution
Plans
optimizer_features_enable='12.2.0.1'
Better No
Performance Performance
Regressions
impdp table_exists_action=skip
include=statistics
remap_schema=s1:s2