Beruflich Dokumente
Kultur Dokumente
CPU & IO
Constraints
Optimizer
DATA DICTIONARY
OPTIMIZER STATISTICS
Index Table Column System
HJ
1 Promo_1 15-NOV-98
HJ
PROMO_PK Index 2 Promo_1 31-DEC-98 Execution plan
PROMOTIONS Table
Global preferences
By default the following basic table & column statistic are collected
Number of Rows
Number of blocks
Average row length
Number of distinct values
Number of nulls in column
Frequency histogram
18 Copyright 2012, Oracle and/or its affiliates. All rights reserved. Oracle Confidential
Histograms
Height balanced histograms (HEIGHT BALANCED)
A height balanced histogram is created if the number of distinct values
in a column (NDV) is greater than 254 values
Deptno=10
Peek all binds & take the plan that is optimal for each bind set
SELECT *
FROM Customers
WHERE UPPER(CUST_LAST_NAME) = SMITH;
Optimizer doesnt know how function affects values in the column
Optimizer guesses the cardinality to be 1% of rows
Cardinality estimate is
SELECT count(*) FROM customers; 1% of the rows
COUNT(*)
55500
If you want to disable auto job for application schema consider leaving
it on for Oracle dictionary tables
The scope of the auto job is controlled by the global preference
AUTOSTATS_TARGET
Possible values are
AUTO Oracle decides what tables need statistics (Default)
All Statistics gathered for all tables in the system
ORACLE Statistics gathered for only the dictionary tables
P2
P3
P4
Partition 1 P2
have statistics gathered one
Oct 1st 2011 P3
after the other
P4
Sysaux Tablespace
Dictionary Statistics
Fixed Object Statistics
System Statistics
Automatic Dynamic Sampling