Nigel Bayliss
Optimizer Product Manager
@vldbb
http://blogs.oracle.com/optimizer
Data Warehousing
Product Management Team
• Available now
– Exadata Express Cloud Service
• Coming soon
– Database Cloud Services
– Exadata Cloud Machine
Oracle is presenting features for Oracle Database 12c Release 2 on Oracle Cloud. We will announce availability
of the On-Prem release sometime after Open World.
Min/Max
#Distinct
Data values
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. | 37
Adaptive Statistics
OPTIMIZER_ADAPTIVE_STATISTICS=TRUE
Good
1. Capture
Execution
Plans
Good
1. Capture
Execution
Plans
optimizer_features_enable='12.2.0.1'
Better No
Performance Performance
Regressions
Good
1. Capture
Execution
Plans
optimizer_adaptive_statistics=TRUE
Better No
Performance Performance
Regressions
impdp table_exists_action=skip
include=statistics
remap_schema=s1:s2