Documente Academic
Documente Profesional
Documente Cultură
PARALLEL_DEGREE_POLICY=AUTO
We will see
• Why the cost-based optimizer (CBO) needs a
concrete parallel degree
• How automatic parallel query works
DBMS_STATS.SET_PROCESSING_RATE
– No restart is necessary
– The values set can be viewed in
V$OPTIMIZER_PROCESSING_RATE
Object size
• object_size = blocks * block_size
• Optimizer statistics (DBA_TABLES.BLOCKS) or dynamic sampling
Scanrate
• 200 MB/s (default)
• SYS.RESOURCE_IO_CALIBRATE$.MAX_PMBPS
Ptu (= 10 sec)
Example: table 6000 MB, scan rate 200 MB/s, then auto DOP = 3.
PARALLEL_DEGREE_POLICY=AUTO
Observations
• Better avarage response times possible for single queries
• Actually it is session not statement queuing
• Spreadsheet applications are problematic
• Application deadlocks are possible
_parallel_statement_queuing=false
Last Update November 11, 2016 Automatic Parallel Execution in Practice
Page 30 of 37
Spreadsheet applications
Data browsers (like SQL*Developer)
The first n rows are displayed
Peter Heumel
Value Transformation Services
Am Tucherpark 12
D-80538 München