SlideShare a Scribd company logo
1 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Best Practices for Oracle Exadata and the
Oracle Optimizer
Maria Colgan, Product Manager, Oracle Optimizer
Levi Norman, Product Marketing Director, Oracle Exadata
2 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
• Fastest Data Warehouse & OLTP
• Best Cost/Performance Data Warehouse & OLTP
• Optimized Hardware
• Software Breakthroughs
• Scales from ¼ Rack to 8 Full Racks
Oracle Exadata Database Machine
Extreme performance. Lowest cost.
3 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Hybrid Columnar Compression Smart Flash
Cache
Smart Scan Queries
Up to
50X10X
+ ++
Oracle Exadata Innovation
Storage Server Software
4 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Standardized and Simple to Deploy
Delivered Ready-to-Run
• Oracle Exadata Database Machines Are The Same
Thoroughly Tested & Highly Supportable
Identical Configuration Used by Oracle Engineering
• Run Existing OLTP and DW Applications
30 Years of Oracle DB Capabilities
No Exadata Certification Required
• Leverage Oracle Ecosystem
Skills, Knowledge Base, People, & Partners
5 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Oracle Exadata in the Market
Rapid Adoption Across Geographies and Industries
6 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Agenda
• How to gather statistics
• Additional types of statistics
• When to gather statistics
• Statistics gathering performance
7 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
How to Gather Statistics
• Analyze command is deprecated
– Only good for row chaining
• The GATHER_*_STATS procedures take 13 parameters
– Ideally you should only set the first 2-3 parameters
• SCHEMA NAME
• TABLE NAME
• PARTITION NAME
Use DBMS_STATS Package
8 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
How to Gather Statistics
Use DBMS_STATS Package
• Your gather statistics commands should be this simple
9 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
How to Gather Statistics
• Can change the default value at the global level
– DBMS_STATS.SET_GLOBAL_PREF
– This changes the value for all existing objects and any new objects
• Can change the default value at the table level
– DBMS_STATS.SET_TABLE_PREF
Changing Default Parameter Values for Gathering Statistics
10 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
How to Gather Statistics
• CASCADE
• CONCURRENT
• DEGREE
• ESTIMATE_PERCENT
• METHOD_OPT
• NO_INVALIDATE
• GRANULARITY
• PUBLISH
• INCREMENTAL
• STALE_PERCENT
• AUTOSTATS_TARGET
(SET_GLOBAL_PREFS only)
Changing Default Parameter Values for Gathering Statistics
•The following parameter defaults can be changed:
11 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
How to Gather Statistics
• # 1 most commonly asked question
– “What sample size should I use?”
• Controlled by ESTIMATE_PRECENT parameter
• From 11g onwards use default value AUTO_SAMPLE_SIZE
– New hash based algorithm
– Speed of a 10% sample
– Accuracy of 100% sample
Sample Size
12 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
How to Gather Statistics
• Speed of a 10% sample
• Accuracy of 100% sample
Sample Size
Run Num AUTO_SAMPLE_SIZE 10% SAMPLE 100% SAMPLE
1 00:02:21.86 00:02:31.56 00:08:24.10
2 00:02:38.11 00:02:49.49 00:07:38.25
3 00:02:39.31 00:02:38.55 00:07:37.83
Column
Name
NDV with
AUTO_SAMPLE_SIZE
NDV with 10%
SAMPLE
NDV with 100%
SAMPLE
C1 59852 31464 60351
C2 1270912 608544 1289760
C3 768384 359424 777942
13 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Agenda
• How to gather statistics
• Additional types of statistics
• When to gather statistics
• Statistics gathering performance
14 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Additional Types of Statistics
• Two types of Extended Statistics
– Column groups statistics
• Column group statistics useful when multiple column from the same
table are used in where clause predicates
– Expression statistics
• Expression statistics useful when a column is used as part of a
complex expression in where clause predicate
• Can be manually or automatically created
• Automatically maintained when statistics are gathered
When Table and Column Statistics are not enough
15 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Extended Statistics –
SELECT * FROM vehicles
WHERE model = ‘530xi’
AND color = 'RED’;
Column Group Statistics
SLIVERC320MERC
REDSLKMERC
RED911PORSCHE
SILVER530xiBMW
BLACK530xiBMW
RED530xiBMW
ColorModelMake
Vehicles Table
Cardinality #ROWS * 1 * 1 12 * 1 * 1 1
NDV c1 NDV c2 4 3
= =>
MAKE MODEL COLOR
BMW 530xi RED
=
16 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Extended Statistics
SELECT * FROM vehicles WHERE model = ‘530xi’
AND make = ‘BMW’;
Column Group Statistics
SLIVERC320MERC
REDSLKMERC
RED911PORSCHE
SILVER530xiBMW
BLACK530xiBMW
RED530xiBMW
ColorModelMake
Vehicles Table
Cardinality #ROWS * 1 * 1 12 * 1 * 1 1
NDV c1 NDV c2 4 3
= => =
MAKE MODEL COLOR
BMW 530xi RED
BMW 530xi BLACK
BMW 530xi SLIVER
17 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Extended Statistics
• Create extended statistics on the Model & Make columns using
DBMS_STATS.CREATE_EXTENDED_STATS
Column Group Statistics
New Column
with system
generated
name
18 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Extended Statistics
SELECT * FROM vehicles WHERE model = ‘530xi’
AND make = ‘BMW’;
Column Group Statistics
SLIVERC320MERC
REDSLKMERC
RED911PORSCHE
SILVER530xiBMW
BLACK530xiBMW
RED530xiBMW
ColorModelMake
Vehicles Table
Cardinality calculated using column group statistics
MAKE MODEL COLOR
BMW 530xi RED
BMW 530xi BLACK
BMW 530xi SLIVER
19 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Extended Statistics
SELECT *
FROM Customers
WHERE UPPER(CUST_LAST_NAME) = ‘SMITH’;
• Optimizer doesn’t know how function affects values in the column
• Optimizer guesses the cardinality to be 1% of rows
SELECT count(*) FROM customers;
COUNT(*)
55500
Expression Statistics
Cardinality estimate
is 1% of the rows
20 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Extended Statistics
Expression Statistics
New Column with
system generated
name
21 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Extended Statistics
1. Start column group usage capture
Automatic Column Group Detection
• Oracle can automatically
detect column group
candidates based on an STS
or by monitoring a workload
• Uses DBMS_STATS procedure
SEED_COL_USAGE
• If the first two arguments are
set to NULL the current
workload will be monitored
• The third argument is the
time limit in seconds
22 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Extended Statistics
2. Run your workload
Automatic Column Group Detection
• Actual number of rows
returned by this query is 932
• Optimizer under-estimates
the cardinality as it assumes
each where clause predicate
will reduce number of rows
returned
• Optimizer is not aware of
real-world relations between
city, state, & country
23 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Extended Statistics
2. Run your workload
Automatic Column Group Detection
• Actual number of rows
returned by this query is 145
• Optimizer over-estimates the
cardinality as it is not aware
of the real-world relations
between state & country
24 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Extended Statistics
3. Check column usage information recorded for our table
Automatic Column Group Detection
COLUMN USAGE REPORT FOR SH.CUSTOMERS
1. COUNTRY_ID : EQ
2. CUST_CITY : EQ
3. CUST_STATE_PROVINCE : EQ
4. (CUST_CITY, CUST_STATE_PROVINCE, COUNTRY_ID) : FILTER
5. (CUST_STATE_PROVINCE, COUNTRY_ID) : GROUP_BY
SELECT dbms_stats.report_col_usage(user, 'customers') FROM dual;
EQ means column was used in
equality predicate in query 1
GROUP_BY columns used in group
by expression in query 2
FILTER means columns used together
as filter predicates rather than join
etc. Comes from query 1
25 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Statistics Enhancements
4. Create extended stats for customers based on usage
EXTENSIONS FOR SH.CUSTOMERS
1. (CUST_CITY, CUST_STATE_PROVINCE, COUNTRY_ID):
SYS_STUMZ$C3AIHLPBROI#SKA58H_N created
2. (CUST_STATE_PROVINCE, COUNTRY_ID) :
SYS_STU#S#WF25Z#QAHIHE#MOFFMM_ created
Column group statistics will now be automatically maintained
every time you gather statistics on this table
Automatic Column Group Detection
SELECT dbms_stats.create_extended_stats(user, 'customers')
FROM dual;
26 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Agenda
• How to gather statistics
• Additional types of statistics
• When to gather statistics
• Statistics gathering performance
27 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
When to Gather Statistics
• Oracle automatically collect statistics for all database
objects, which are missing or have stale statistics
• AutoTask run during a predefined maintenance window
• Internally prioritizes the database objects
– Both user schema and dictionary tables
– Objects that need updated statistics most are processed first
• Controlled by DBMS_AUTO_TASK_ADMIN package or via
Enterprise Manager
Automatic Statistics Gathering
28 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
When to Gather Statistics
Automatic Statistics Gathering in Enterprise Manager
• Enterprise Manager allows
you to control all aspects of
the automatic statistics
gathering task
• The statistics gathering task
can be set to only run during
certain maintenance windows
29 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
When to Gather Statistics
• If you want to disable auto job for application schema
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
Automatic Statistics Gathering
30 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
When to Gather Statistics
• Need to determine when to manually gather statistics
• After large data loads
– Add statistics gather to the ETL or ELT process
• If trickle loading or online transactions
– Manually determine when statistics are stale and trigger gather
– USER_TAB_MODIFICATIONS lists # INSERTS, UPDATES, and
DELETES that occurs on each table
• If trickle loading into a partition table
– Used dbms.stats.copy_table_stats()
If the Auto Statistics Gather Job is not suitable
31 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
When to Gather Statistics
If the Auto Statistics Gather Job is not suitable
Partitioned Table
Partition 1
June 1st 2012
:
Partition 4
June 4th 2012
Partition 5
June 5th 2012
DBMS_STATS.COPY_TABLE_STATS();
• Copies statistic from source
partition to new partition
• Adjusts min & max values for
partition column
• Both partition & global statistics
• Copies statistics of the
dependent objects
• Columns, local (partitioned)
indexes* etc.
• Does not update global indexes
32 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Agenda
• How to gather statistics
• Additional types of statistics
• When to gather statistics
• Statistics gathering performance
33 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Statistics Gathering Performance
• Three parallel options to speed up statistics gathering
– Inter object using parallel execution
– Intra object using concurrency
– The combination of Inter and Intra object
• Incremental statistics gathering for partitioned tables
How to speed up statistics gathering
34 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Statistics Gathering Performance
• Controlled by GATHER_*_STATS parameter DEGREE
• Default is to use parallel degree specified on object
• If set to AUTO Oracle decide parallel degree used
• Works on one object at a time
Inter Object using parallel execution
35 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Statistics Gathering Performance
Inter Object using parallel execution
P4
P3
P2
P1
Customers
Table
• Customers table has a
degree of parallelism of 4
• 4 parallel server processes
will be used to gather stats
36 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Statistics Gathering Performance
Inter Object using parallel execution
Exec DBMS_STATS.GATHER_TABLE_STATS(‘SH’,’SALES);
Sales Table
Partition 1
May 18th 2012
Partition 2
May 19th 2012
Partition 3
May 20th 2012
• Each individual partition will
have statistics gathered one
after the other
• The statistics gather
procedure on each individual
partition operates in parallel
BUT the statistics gathering
procedures won’t happen
concurrently
P4
P3
P2
P1
37 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Statistics Gathering Performance
• Gather statistics on multiple objects at the same time
• Controlled by DBMS_STATS preference, CONCURRENT
• Uses Database Scheduler and Advanced Queuing
• Number of concurrent gather operations controlled by
job_queue_processes parameter
• Each gather operation can still operate in parallel
Intra Object
38 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Statistics Gathering Performance
Intra Object Statistics Gathering for SH Schema
Exec DBMS_STATS.GATHER_SCHEMA_STATS(‘SH’);
• A statistics gathering job is
created for each table and
partition in the schema
• Level 1 contain statistics
gathering jobs for all non-
partitioned tables and a
coordinating job for each
partitioned table
• Level 2 contain statistics
gathering jobs for each
partition in the partitioned
tables
39 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Statistics Gathering Performance
Inter Object using concurrent parallel execution
Exec DBMS_STATS.GATHER_TABLE_STATS(‘SH’,’SALES);
Sales Table
Partition 1
May 18th 2012
Partition 2
May 19th 2012
Partition 3
May 20th 2012
Job1
Job2
Job3
• The number of concurrent
gathers is controlled by the
parameter
job_queue_processes
• In this example it is set to 3
• Remember each concurrent
gather operates in parallel
• In this example parallel
degree is 4
40 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Statistics Gathering Performance
• Typically gathering statistics after a bulk loading data
into one partition would causes a full scan of all
partitions to gather global table statistics
– Extremely time consuming
• With Incremental Statistic gather statistics for touched
partition(s) ONLY
– Table (global) statistics are accurately built from partition statistics
– Reduce statistics gathering time considerably
– Controlled by INCREMENTAL preference
Incremental Statistics Gathering for Partitioned tables
41 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Incremental Statistics Gathering
Sales Table
May 22nd 2011
May 23rd 2011
May 18th 2011
May 19th 2011
May 20th 2011
May 21st 2011
Sysaux Tablespace
1. Partition level stats are
gathered & synopsis created
2. Global stats generated by aggregating
partition level statistics and synopsis
42 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Incremental Statistics Gathering
Sales Table
May 22nd 2011
May 23rd 2011
May 18th 2011
May 19th 2011
May 20th 2011
May 21st 2011
Sysaux Tablespace
May 24th 2011
4. Gather partition
statistics for new partition
5. Retrieve synopsis for
each of the other partitions
from Sysaux
6. Global stats generated by aggregating
the original partition synopsis with the
new one
3. A new partition is added to the table & Data is Loaded
43 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
More Information
• Accompanying Two Part White Paper Series
– Understanding Optimizer Statistics
– Best Practices for Managing Optimizer Statistics
• Optimizer Blog
– http://blogs.oracle.com/optimizer
• Oracle.com
– http://www.oracle.com/technetwork/database/focus-areas/bi-
datawarehousing/dbbi-tech-info-optmztn-092214.html
• Oracle Exadata Database Machine
– http://www.oracle.com/exadata
44 Copyright © 2011, Oracle and/or its affiliates. All rights
reserved.
Ad

More Related Content

What's hot (20)

Parallel Query on Exadata
Parallel Query on ExadataParallel Query on Exadata
Parallel Query on Exadata
Enkitec
 
Troubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contentionTroubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contention
Tanel Poder
 
Same plan different performance
Same plan different performanceSame plan different performance
Same plan different performance
Mauro Pagano
 
Oracle Performance Tools of the Trade
Oracle Performance Tools of the TradeOracle Performance Tools of the Trade
Oracle Performance Tools of the Trade
Carlos Sierra
 
Exadata Performance Optimization
Exadata Performance OptimizationExadata Performance Optimization
Exadata Performance Optimization
Enkitec
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning Fundamentals
Enkitec
 
Tanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools shortTanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools short
Tanel Poder
 
Christo kutrovsky oracle, memory & linux
Christo kutrovsky   oracle, memory & linuxChristo kutrovsky   oracle, memory & linux
Christo kutrovsky oracle, memory & linux
Kyle Hailey
 
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentalsDB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
John Beresniewicz
 
Adapting and adopting spm v04
Adapting and adopting spm v04Adapting and adopting spm v04
Adapting and adopting spm v04
Carlos Sierra
 
Oracle Exadata Maintenance tasks 101 - OTN Tour 2015
Oracle Exadata Maintenance tasks 101 - OTN Tour 2015Oracle Exadata Maintenance tasks 101 - OTN Tour 2015
Oracle Exadata Maintenance tasks 101 - OTN Tour 2015
Nelson Calero
 
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Tanel Poder
 
Exadata master series_asm_2020
Exadata master series_asm_2020Exadata master series_asm_2020
Exadata master series_asm_2020
Anil Nair
 
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Sandesh Rao
 
Oracle database performance tuning
Oracle database performance tuningOracle database performance tuning
Oracle database performance tuning
Abishek V S
 
Ash architecture and advanced usage rmoug2014
Ash architecture and advanced usage rmoug2014Ash architecture and advanced usage rmoug2014
Ash architecture and advanced usage rmoug2014
John Beresniewicz
 
Oracle Latch and Mutex Contention Troubleshooting
Oracle Latch and Mutex Contention TroubleshootingOracle Latch and Mutex Contention Troubleshooting
Oracle Latch and Mutex Contention Troubleshooting
Tanel Poder
 
AWR and ASH Deep Dive
AWR and ASH Deep DiveAWR and ASH Deep Dive
AWR and ASH Deep Dive
Kellyn Pot'Vin-Gorman
 
Chasing the optimizer
Chasing the optimizerChasing the optimizer
Chasing the optimizer
Mauro Pagano
 
SQL Monitoring in Oracle Database 12c
SQL Monitoring in Oracle Database 12cSQL Monitoring in Oracle Database 12c
SQL Monitoring in Oracle Database 12c
Tanel Poder
 
Parallel Query on Exadata
Parallel Query on ExadataParallel Query on Exadata
Parallel Query on Exadata
Enkitec
 
Troubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contentionTroubleshooting Complex Performance issues - Oracle SEG$ contention
Troubleshooting Complex Performance issues - Oracle SEG$ contention
Tanel Poder
 
Same plan different performance
Same plan different performanceSame plan different performance
Same plan different performance
Mauro Pagano
 
Oracle Performance Tools of the Trade
Oracle Performance Tools of the TradeOracle Performance Tools of the Trade
Oracle Performance Tools of the Trade
Carlos Sierra
 
Exadata Performance Optimization
Exadata Performance OptimizationExadata Performance Optimization
Exadata Performance Optimization
Enkitec
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning Fundamentals
Enkitec
 
Tanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools shortTanel Poder - Scripts and Tools short
Tanel Poder - Scripts and Tools short
Tanel Poder
 
Christo kutrovsky oracle, memory & linux
Christo kutrovsky   oracle, memory & linuxChristo kutrovsky   oracle, memory & linux
Christo kutrovsky oracle, memory & linux
Kyle Hailey
 
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentalsDB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
John Beresniewicz
 
Adapting and adopting spm v04
Adapting and adopting spm v04Adapting and adopting spm v04
Adapting and adopting spm v04
Carlos Sierra
 
Oracle Exadata Maintenance tasks 101 - OTN Tour 2015
Oracle Exadata Maintenance tasks 101 - OTN Tour 2015Oracle Exadata Maintenance tasks 101 - OTN Tour 2015
Oracle Exadata Maintenance tasks 101 - OTN Tour 2015
Nelson Calero
 
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Tanel Poder
 
Exadata master series_asm_2020
Exadata master series_asm_2020Exadata master series_asm_2020
Exadata master series_asm_2020
Anil Nair
 
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Sandesh Rao
 
Oracle database performance tuning
Oracle database performance tuningOracle database performance tuning
Oracle database performance tuning
Abishek V S
 
Ash architecture and advanced usage rmoug2014
Ash architecture and advanced usage rmoug2014Ash architecture and advanced usage rmoug2014
Ash architecture and advanced usage rmoug2014
John Beresniewicz
 
Oracle Latch and Mutex Contention Troubleshooting
Oracle Latch and Mutex Contention TroubleshootingOracle Latch and Mutex Contention Troubleshooting
Oracle Latch and Mutex Contention Troubleshooting
Tanel Poder
 
Chasing the optimizer
Chasing the optimizerChasing the optimizer
Chasing the optimizer
Mauro Pagano
 
SQL Monitoring in Oracle Database 12c
SQL Monitoring in Oracle Database 12cSQL Monitoring in Oracle Database 12c
SQL Monitoring in Oracle Database 12c
Tanel Poder
 

Viewers also liked (8)

My First 100 days with an Exadata (PPT)
My First 100 days with an Exadata (PPT)My First 100 days with an Exadata (PPT)
My First 100 days with an Exadata (PPT)
Gustavo Rene Antunez
 
HIgh Performance Messaging App Development with Oracle Advance Queuing
HIgh Performance Messaging App Development with Oracle Advance QueuingHIgh Performance Messaging App Development with Oracle Advance Queuing
HIgh Performance Messaging App Development with Oracle Advance Queuing
Jeff Jacobs
 
Best Practices – Extreme Performance with Data Warehousing on Oracle Databa...
Best Practices –  Extreme Performance with Data Warehousing  on Oracle Databa...Best Practices –  Extreme Performance with Data Warehousing  on Oracle Databa...
Best Practices – Extreme Performance with Data Warehousing on Oracle Databa...
Edgar Alejandro Villegas
 
Oracle Exadata Performance: Latest Improvements and Less Known Features
Oracle Exadata Performance: Latest Improvements and Less Known FeaturesOracle Exadata Performance: Latest Improvements and Less Known Features
Oracle Exadata Performance: Latest Improvements and Less Known Features
Tanel Poder
 
RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)
Gustavo Rene Antunez
 
Oracle Database Appliance X5-2
Oracle Database Appliance X5-2 Oracle Database Appliance X5-2
Oracle Database Appliance X5-2
Yasir El Nimr
 
Oracle Database Appliance Workshop
Oracle Database Appliance WorkshopOracle Database Appliance Workshop
Oracle Database Appliance Workshop
MarketingArrowECS_CZ
 
ODA X6-2 family
ODA X6-2 familyODA X6-2 family
ODA X6-2 family
MarketingArrowECS_CZ
 
My First 100 days with an Exadata (PPT)
My First 100 days with an Exadata (PPT)My First 100 days with an Exadata (PPT)
My First 100 days with an Exadata (PPT)
Gustavo Rene Antunez
 
HIgh Performance Messaging App Development with Oracle Advance Queuing
HIgh Performance Messaging App Development with Oracle Advance QueuingHIgh Performance Messaging App Development with Oracle Advance Queuing
HIgh Performance Messaging App Development with Oracle Advance Queuing
Jeff Jacobs
 
Best Practices – Extreme Performance with Data Warehousing on Oracle Databa...
Best Practices –  Extreme Performance with Data Warehousing  on Oracle Databa...Best Practices –  Extreme Performance with Data Warehousing  on Oracle Databa...
Best Practices – Extreme Performance with Data Warehousing on Oracle Databa...
Edgar Alejandro Villegas
 
Oracle Exadata Performance: Latest Improvements and Less Known Features
Oracle Exadata Performance: Latest Improvements and Less Known FeaturesOracle Exadata Performance: Latest Improvements and Less Known Features
Oracle Exadata Performance: Latest Improvements and Less Known Features
Tanel Poder
 
RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)RMAN in 12c: The Next Generation (WP)
RMAN in 12c: The Next Generation (WP)
Gustavo Rene Antunez
 
Oracle Database Appliance X5-2
Oracle Database Appliance X5-2 Oracle Database Appliance X5-2
Oracle Database Appliance X5-2
Yasir El Nimr
 
Oracle Database Appliance Workshop
Oracle Database Appliance WorkshopOracle Database Appliance Workshop
Oracle Database Appliance Workshop
MarketingArrowECS_CZ
 
Ad

Similar to Best Practices for Oracle Exadata and the Oracle Optimizer (20)

Part2 Best Practices for Managing Optimizer Statistics
Part2 Best Practices for Managing Optimizer StatisticsPart2 Best Practices for Managing Optimizer Statistics
Part2 Best Practices for Managing Optimizer Statistics
Maria Colgan
 
Presentación Oracle Database Migración consideraciones 10g/11g/12c
Presentación Oracle Database Migración consideraciones 10g/11g/12cPresentación Oracle Database Migración consideraciones 10g/11g/12c
Presentación Oracle Database Migración consideraciones 10g/11g/12c
Ronald Francisco Vargas Quesada
 
Oracle Query Optimizer - An Introduction
Oracle Query Optimizer - An IntroductionOracle Query Optimizer - An Introduction
Oracle Query Optimizer - An Introduction
adryanbub
 
Improve speed & performance of informix 11.xx part 1
Improve speed & performance of informix 11.xx   part 1Improve speed & performance of informix 11.xx   part 1
Improve speed & performance of informix 11.xx part 1
am_prasanna
 
Beginners guide to_optimizer
Beginners guide to_optimizerBeginners guide to_optimizer
Beginners guide to_optimizer
Maria Colgan
 
How to analyze and tune sql queries for better performance
How to analyze and tune sql queries for better performanceHow to analyze and tune sql queries for better performance
How to analyze and tune sql queries for better performance
oysteing
 
Oracle Data Redaction
Oracle Data RedactionOracle Data Redaction
Oracle Data Redaction
Alex Zaballa
 
Machine Learning and AI at Oracle
Machine Learning and AI at OracleMachine Learning and AI at Oracle
Machine Learning and AI at Oracle
Sandesh Rao
 
Optimizing Alert Monitoring with Oracle Enterprise Manager
Optimizing Alert Monitoring with Oracle Enterprise ManagerOptimizing Alert Monitoring with Oracle Enterprise Manager
Optimizing Alert Monitoring with Oracle Enterprise Manager
Datavail
 
05_DP_300T00A_Optimize.pptx
05_DP_300T00A_Optimize.pptx05_DP_300T00A_Optimize.pptx
05_DP_300T00A_Optimize.pptx
KareemBullard1
 
New Performance Benchmarks: Apache Impala (incubating) Leads Traditional Anal...
New Performance Benchmarks: Apache Impala (incubating) Leads Traditional Anal...New Performance Benchmarks: Apache Impala (incubating) Leads Traditional Anal...
New Performance Benchmarks: Apache Impala (incubating) Leads Traditional Anal...
Cloudera, Inc.
 
Explain the explain_plan
Explain the explain_planExplain the explain_plan
Explain the explain_plan
Maria Colgan
 
MySQL: Know more about open Source Database
MySQL: Know more about open Source DatabaseMySQL: Know more about open Source Database
MySQL: Know more about open Source Database
Mahesh Salaria
 
Unifying your data management with Hadoop
Unifying your data management with HadoopUnifying your data management with Hadoop
Unifying your data management with Hadoop
Jayant Shekhar
 
Nose Dive into Apache Spark ML
Nose Dive into Apache Spark MLNose Dive into Apache Spark ML
Nose Dive into Apache Spark ML
Ahmet Bulut
 
Whats New on SAP HANA SPS 11 Core Database Capabilities
Whats New on SAP HANA SPS 11 Core Database CapabilitiesWhats New on SAP HANA SPS 11 Core Database Capabilities
Whats New on SAP HANA SPS 11 Core Database Capabilities
SAP Technology
 
Sql and PL/SQL Best Practices I
Sql and PL/SQL Best Practices ISql and PL/SQL Best Practices I
Sql and PL/SQL Best Practices I
Carlos Oliveira
 
How to Analyze and Tune MySQL Queries for Better Performance
How to Analyze and Tune MySQL Queries for Better PerformanceHow to Analyze and Tune MySQL Queries for Better Performance
How to Analyze and Tune MySQL Queries for Better Performance
oysteing
 
Data Redaction - OTN TOUR LA 2015
Data Redaction - OTN TOUR LA 2015 Data Redaction - OTN TOUR LA 2015
Data Redaction - OTN TOUR LA 2015
Alex Zaballa
 
Getting optimal performance from oracle e business suite
Getting optimal performance from oracle e business suiteGetting optimal performance from oracle e business suite
Getting optimal performance from oracle e business suite
aioughydchapter
 
Part2 Best Practices for Managing Optimizer Statistics
Part2 Best Practices for Managing Optimizer StatisticsPart2 Best Practices for Managing Optimizer Statistics
Part2 Best Practices for Managing Optimizer Statistics
Maria Colgan
 
Presentación Oracle Database Migración consideraciones 10g/11g/12c
Presentación Oracle Database Migración consideraciones 10g/11g/12cPresentación Oracle Database Migración consideraciones 10g/11g/12c
Presentación Oracle Database Migración consideraciones 10g/11g/12c
Ronald Francisco Vargas Quesada
 
Oracle Query Optimizer - An Introduction
Oracle Query Optimizer - An IntroductionOracle Query Optimizer - An Introduction
Oracle Query Optimizer - An Introduction
adryanbub
 
Improve speed & performance of informix 11.xx part 1
Improve speed & performance of informix 11.xx   part 1Improve speed & performance of informix 11.xx   part 1
Improve speed & performance of informix 11.xx part 1
am_prasanna
 
Beginners guide to_optimizer
Beginners guide to_optimizerBeginners guide to_optimizer
Beginners guide to_optimizer
Maria Colgan
 
How to analyze and tune sql queries for better performance
How to analyze and tune sql queries for better performanceHow to analyze and tune sql queries for better performance
How to analyze and tune sql queries for better performance
oysteing
 
Oracle Data Redaction
Oracle Data RedactionOracle Data Redaction
Oracle Data Redaction
Alex Zaballa
 
Machine Learning and AI at Oracle
Machine Learning and AI at OracleMachine Learning and AI at Oracle
Machine Learning and AI at Oracle
Sandesh Rao
 
Optimizing Alert Monitoring with Oracle Enterprise Manager
Optimizing Alert Monitoring with Oracle Enterprise ManagerOptimizing Alert Monitoring with Oracle Enterprise Manager
Optimizing Alert Monitoring with Oracle Enterprise Manager
Datavail
 
05_DP_300T00A_Optimize.pptx
05_DP_300T00A_Optimize.pptx05_DP_300T00A_Optimize.pptx
05_DP_300T00A_Optimize.pptx
KareemBullard1
 
New Performance Benchmarks: Apache Impala (incubating) Leads Traditional Anal...
New Performance Benchmarks: Apache Impala (incubating) Leads Traditional Anal...New Performance Benchmarks: Apache Impala (incubating) Leads Traditional Anal...
New Performance Benchmarks: Apache Impala (incubating) Leads Traditional Anal...
Cloudera, Inc.
 
Explain the explain_plan
Explain the explain_planExplain the explain_plan
Explain the explain_plan
Maria Colgan
 
MySQL: Know more about open Source Database
MySQL: Know more about open Source DatabaseMySQL: Know more about open Source Database
MySQL: Know more about open Source Database
Mahesh Salaria
 
Unifying your data management with Hadoop
Unifying your data management with HadoopUnifying your data management with Hadoop
Unifying your data management with Hadoop
Jayant Shekhar
 
Nose Dive into Apache Spark ML
Nose Dive into Apache Spark MLNose Dive into Apache Spark ML
Nose Dive into Apache Spark ML
Ahmet Bulut
 
Whats New on SAP HANA SPS 11 Core Database Capabilities
Whats New on SAP HANA SPS 11 Core Database CapabilitiesWhats New on SAP HANA SPS 11 Core Database Capabilities
Whats New on SAP HANA SPS 11 Core Database Capabilities
SAP Technology
 
Sql and PL/SQL Best Practices I
Sql and PL/SQL Best Practices ISql and PL/SQL Best Practices I
Sql and PL/SQL Best Practices I
Carlos Oliveira
 
How to Analyze and Tune MySQL Queries for Better Performance
How to Analyze and Tune MySQL Queries for Better PerformanceHow to Analyze and Tune MySQL Queries for Better Performance
How to Analyze and Tune MySQL Queries for Better Performance
oysteing
 
Data Redaction - OTN TOUR LA 2015
Data Redaction - OTN TOUR LA 2015 Data Redaction - OTN TOUR LA 2015
Data Redaction - OTN TOUR LA 2015
Alex Zaballa
 
Getting optimal performance from oracle e business suite
Getting optimal performance from oracle e business suiteGetting optimal performance from oracle e business suite
Getting optimal performance from oracle e business suite
aioughydchapter
 
Ad

More from Edgar Alejandro Villegas (20)

What's New in Predictive Analytics IBM SPSS - Apr 2016
What's New in Predictive Analytics IBM SPSS - Apr 2016What's New in Predictive Analytics IBM SPSS - Apr 2016
What's New in Predictive Analytics IBM SPSS - Apr 2016
Edgar Alejandro Villegas
 
Oracle big data discovery 994294
Oracle big data discovery   994294Oracle big data discovery   994294
Oracle big data discovery 994294
Edgar Alejandro Villegas
 
Actian Ingres10.2 Datasheet
Actian Ingres10.2 DatasheetActian Ingres10.2 Datasheet
Actian Ingres10.2 Datasheet
Edgar Alejandro Villegas
 
Actian Matrix Datasheet
Actian Matrix DatasheetActian Matrix Datasheet
Actian Matrix Datasheet
Edgar Alejandro Villegas
 
Actian Matrix Whitepaper
 Actian Matrix Whitepaper Actian Matrix Whitepaper
Actian Matrix Whitepaper
Edgar Alejandro Villegas
 
Actian Vector Whitepaper
 Actian Vector Whitepaper Actian Vector Whitepaper
Actian Vector Whitepaper
Edgar Alejandro Villegas
 
Actian DataFlow Whitepaper
Actian DataFlow WhitepaperActian DataFlow Whitepaper
Actian DataFlow Whitepaper
Edgar Alejandro Villegas
 
The Four Pillars of Analytics Technology Whitepaper
The Four Pillars of Analytics Technology WhitepaperThe Four Pillars of Analytics Technology Whitepaper
The Four Pillars of Analytics Technology Whitepaper
Edgar Alejandro Villegas
 
SQL in Hadoop To Boldly Go Where no Data Warehouse Has Gone Before
SQL in Hadoop  To Boldly Go Where no Data Warehouse Has Gone BeforeSQL in Hadoop  To Boldly Go Where no Data Warehouse Has Gone Before
SQL in Hadoop To Boldly Go Where no Data Warehouse Has Gone Before
Edgar Alejandro Villegas
 
Realtime analytics with_hadoop
Realtime analytics with_hadoopRealtime analytics with_hadoop
Realtime analytics with_hadoop
Edgar Alejandro Villegas
 
SQL – The Natural Language for Analysis - Oracle - Whitepaper - 2431343
SQL – The Natural Language for Analysis - Oracle - Whitepaper - 2431343SQL – The Natural Language for Analysis - Oracle - Whitepaper - 2431343
SQL – The Natural Language for Analysis - Oracle - Whitepaper - 2431343
Edgar Alejandro Villegas
 
Hadoop and Your Enterprise Data Warehouse
Hadoop and Your Enterprise Data WarehouseHadoop and Your Enterprise Data Warehouse
Hadoop and Your Enterprise Data Warehouse
Edgar Alejandro Villegas
 
Big Data SurVey - IOUG - 2013 - 594292
Big Data SurVey - IOUG - 2013 - 594292Big Data SurVey - IOUG - 2013 - 594292
Big Data SurVey - IOUG - 2013 - 594292
Edgar Alejandro Villegas
 
Big Data and Enterprise Data - Oracle -1663869
Big Data and Enterprise Data - Oracle -1663869Big Data and Enterprise Data - Oracle -1663869
Big Data and Enterprise Data - Oracle -1663869
Edgar Alejandro Villegas
 
Fast and Easy Analytics: - Tableau - Data Base Trends - Dbt06122013slides
Fast and Easy Analytics: - Tableau - Data Base Trends - Dbt06122013slidesFast and Easy Analytics: - Tableau - Data Base Trends - Dbt06122013slides
Fast and Easy Analytics: - Tableau - Data Base Trends - Dbt06122013slides
Edgar Alejandro Villegas
 
BITGLASS - DATA BREACH DISCOVERY DATASHEET
BITGLASS - DATA BREACH DISCOVERY DATASHEETBITGLASS - DATA BREACH DISCOVERY DATASHEET
BITGLASS - DATA BREACH DISCOVERY DATASHEET
Edgar Alejandro Villegas
 
Four Pillars of Business Analytics - e-book - Actuate
Four Pillars of Business Analytics - e-book - ActuateFour Pillars of Business Analytics - e-book - Actuate
Four Pillars of Business Analytics - e-book - Actuate
Edgar Alejandro Villegas
 
Sas hpa-va-bda-exadata-2389280
Sas hpa-va-bda-exadata-2389280Sas hpa-va-bda-exadata-2389280
Sas hpa-va-bda-exadata-2389280
Edgar Alejandro Villegas
 
Splice machine-bloor-webinar-data-lakes
Splice machine-bloor-webinar-data-lakesSplice machine-bloor-webinar-data-lakes
Splice machine-bloor-webinar-data-lakes
Edgar Alejandro Villegas
 
Analytics Trends 20145 - Deloitte - us-da-analytics-analytics-trends-2015
Analytics Trends 20145 -  Deloitte - us-da-analytics-analytics-trends-2015Analytics Trends 20145 -  Deloitte - us-da-analytics-analytics-trends-2015
Analytics Trends 20145 - Deloitte - us-da-analytics-analytics-trends-2015
Edgar Alejandro Villegas
 
What's New in Predictive Analytics IBM SPSS - Apr 2016
What's New in Predictive Analytics IBM SPSS - Apr 2016What's New in Predictive Analytics IBM SPSS - Apr 2016
What's New in Predictive Analytics IBM SPSS - Apr 2016
Edgar Alejandro Villegas
 
The Four Pillars of Analytics Technology Whitepaper
The Four Pillars of Analytics Technology WhitepaperThe Four Pillars of Analytics Technology Whitepaper
The Four Pillars of Analytics Technology Whitepaper
Edgar Alejandro Villegas
 
SQL in Hadoop To Boldly Go Where no Data Warehouse Has Gone Before
SQL in Hadoop  To Boldly Go Where no Data Warehouse Has Gone BeforeSQL in Hadoop  To Boldly Go Where no Data Warehouse Has Gone Before
SQL in Hadoop To Boldly Go Where no Data Warehouse Has Gone Before
Edgar Alejandro Villegas
 
SQL – The Natural Language for Analysis - Oracle - Whitepaper - 2431343
SQL – The Natural Language for Analysis - Oracle - Whitepaper - 2431343SQL – The Natural Language for Analysis - Oracle - Whitepaper - 2431343
SQL – The Natural Language for Analysis - Oracle - Whitepaper - 2431343
Edgar Alejandro Villegas
 
Big Data and Enterprise Data - Oracle -1663869
Big Data and Enterprise Data - Oracle -1663869Big Data and Enterprise Data - Oracle -1663869
Big Data and Enterprise Data - Oracle -1663869
Edgar Alejandro Villegas
 
Fast and Easy Analytics: - Tableau - Data Base Trends - Dbt06122013slides
Fast and Easy Analytics: - Tableau - Data Base Trends - Dbt06122013slidesFast and Easy Analytics: - Tableau - Data Base Trends - Dbt06122013slides
Fast and Easy Analytics: - Tableau - Data Base Trends - Dbt06122013slides
Edgar Alejandro Villegas
 
BITGLASS - DATA BREACH DISCOVERY DATASHEET
BITGLASS - DATA BREACH DISCOVERY DATASHEETBITGLASS - DATA BREACH DISCOVERY DATASHEET
BITGLASS - DATA BREACH DISCOVERY DATASHEET
Edgar Alejandro Villegas
 
Four Pillars of Business Analytics - e-book - Actuate
Four Pillars of Business Analytics - e-book - ActuateFour Pillars of Business Analytics - e-book - Actuate
Four Pillars of Business Analytics - e-book - Actuate
Edgar Alejandro Villegas
 
Analytics Trends 20145 - Deloitte - us-da-analytics-analytics-trends-2015
Analytics Trends 20145 -  Deloitte - us-da-analytics-analytics-trends-2015Analytics Trends 20145 -  Deloitte - us-da-analytics-analytics-trends-2015
Analytics Trends 20145 - Deloitte - us-da-analytics-analytics-trends-2015
Edgar Alejandro Villegas
 

Recently uploaded (20)

Calories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptxCalories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptx
TijiLMAHESHWARI
 
03 Daniel 2-notes.ppt seminario escatologia
03 Daniel 2-notes.ppt seminario escatologia03 Daniel 2-notes.ppt seminario escatologia
03 Daniel 2-notes.ppt seminario escatologia
Alexander Romero Arosquipa
 
computer organization and assembly language.docx
computer organization and assembly language.docxcomputer organization and assembly language.docx
computer organization and assembly language.docx
alisoftwareengineer1
 
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjks
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjksPpt. Nikhil.pptxnshwuudgcudisisshvehsjks
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjks
panchariyasahil
 
Thingyan is now a global treasure! See how people around the world are search...
Thingyan is now a global treasure! See how people around the world are search...Thingyan is now a global treasure! See how people around the world are search...
Thingyan is now a global treasure! See how people around the world are search...
Pixellion
 
183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag
fardin123rahman07
 
Simple_AI_Explanation_English somplr.pptx
Simple_AI_Explanation_English somplr.pptxSimple_AI_Explanation_English somplr.pptx
Simple_AI_Explanation_English somplr.pptx
ssuser2aa19f
 
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Abodahab
 
GenAI for Quant Analytics: survey-analytics.ai
GenAI for Quant Analytics: survey-analytics.aiGenAI for Quant Analytics: survey-analytics.ai
GenAI for Quant Analytics: survey-analytics.ai
Inspirient
 
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
Simran112433
 
How to join illuminati Agent in uganda call+256776963507/0741506136
How to join illuminati Agent in uganda call+256776963507/0741506136How to join illuminati Agent in uganda call+256776963507/0741506136
How to join illuminati Agent in uganda call+256776963507/0741506136
illuminati Agent uganda call+256776963507/0741506136
 
chapter3 Central Tendency statistics.ppt
chapter3 Central Tendency statistics.pptchapter3 Central Tendency statistics.ppt
chapter3 Central Tendency statistics.ppt
justinebandajbn
 
AI Competitor Analysis: How to Monitor and Outperform Your Competitors
AI Competitor Analysis: How to Monitor and Outperform Your CompetitorsAI Competitor Analysis: How to Monitor and Outperform Your Competitors
AI Competitor Analysis: How to Monitor and Outperform Your Competitors
Contify
 
Developing Security Orchestration, Automation, and Response Applications
Developing Security Orchestration, Automation, and Response ApplicationsDeveloping Security Orchestration, Automation, and Response Applications
Developing Security Orchestration, Automation, and Response Applications
VICTOR MAESTRE RAMIREZ
 
LLM finetuning for multiple choice google bert
LLM finetuning for multiple choice google bertLLM finetuning for multiple choice google bert
LLM finetuning for multiple choice google bert
ChadapornK
 
FPET_Implementation_2_MA to 360 Engage Direct.pptx
FPET_Implementation_2_MA to 360 Engage Direct.pptxFPET_Implementation_2_MA to 360 Engage Direct.pptx
FPET_Implementation_2_MA to 360 Engage Direct.pptx
ssuser4ef83d
 
Flip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptxFlip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptx
mubashirkhan45461
 
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptxmd-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
fatimalazaar2004
 
04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story
ccctableauusergroup
 
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnTemplate_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
cegiver630
 
Calories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptxCalories_Prediction_using_Linear_Regression.pptx
Calories_Prediction_using_Linear_Regression.pptx
TijiLMAHESHWARI
 
computer organization and assembly language.docx
computer organization and assembly language.docxcomputer organization and assembly language.docx
computer organization and assembly language.docx
alisoftwareengineer1
 
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjks
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjksPpt. Nikhil.pptxnshwuudgcudisisshvehsjks
Ppt. Nikhil.pptxnshwuudgcudisisshvehsjks
panchariyasahil
 
Thingyan is now a global treasure! See how people around the world are search...
Thingyan is now a global treasure! See how people around the world are search...Thingyan is now a global treasure! See how people around the world are search...
Thingyan is now a global treasure! See how people around the world are search...
Pixellion
 
183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag183409-christina-rossetti.pdfdsfsdasggsag
183409-christina-rossetti.pdfdsfsdasggsag
fardin123rahman07
 
Simple_AI_Explanation_English somplr.pptx
Simple_AI_Explanation_English somplr.pptxSimple_AI_Explanation_English somplr.pptx
Simple_AI_Explanation_English somplr.pptx
ssuser2aa19f
 
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Day 1 - Lab 1 Reconnaissance Scanning with NMAP, Vulnerability Assessment wit...
Abodahab
 
GenAI for Quant Analytics: survey-analytics.ai
GenAI for Quant Analytics: survey-analytics.aiGenAI for Quant Analytics: survey-analytics.ai
GenAI for Quant Analytics: survey-analytics.ai
Inspirient
 
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
1. Briefing Session_SEED with Hon. Governor Assam - 27.10.pdf
Simran112433
 
chapter3 Central Tendency statistics.ppt
chapter3 Central Tendency statistics.pptchapter3 Central Tendency statistics.ppt
chapter3 Central Tendency statistics.ppt
justinebandajbn
 
AI Competitor Analysis: How to Monitor and Outperform Your Competitors
AI Competitor Analysis: How to Monitor and Outperform Your CompetitorsAI Competitor Analysis: How to Monitor and Outperform Your Competitors
AI Competitor Analysis: How to Monitor and Outperform Your Competitors
Contify
 
Developing Security Orchestration, Automation, and Response Applications
Developing Security Orchestration, Automation, and Response ApplicationsDeveloping Security Orchestration, Automation, and Response Applications
Developing Security Orchestration, Automation, and Response Applications
VICTOR MAESTRE RAMIREZ
 
LLM finetuning for multiple choice google bert
LLM finetuning for multiple choice google bertLLM finetuning for multiple choice google bert
LLM finetuning for multiple choice google bert
ChadapornK
 
FPET_Implementation_2_MA to 360 Engage Direct.pptx
FPET_Implementation_2_MA to 360 Engage Direct.pptxFPET_Implementation_2_MA to 360 Engage Direct.pptx
FPET_Implementation_2_MA to 360 Engage Direct.pptx
ssuser4ef83d
 
Flip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptxFlip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptx
mubashirkhan45461
 
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptxmd-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
fatimalazaar2004
 
04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story
ccctableauusergroup
 
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnTemplate_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
cegiver630
 

Best Practices for Oracle Exadata and the Oracle Optimizer

  • 1. 1 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Best Practices for Oracle Exadata and the Oracle Optimizer Maria Colgan, Product Manager, Oracle Optimizer Levi Norman, Product Marketing Director, Oracle Exadata
  • 2. 2 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. • Fastest Data Warehouse & OLTP • Best Cost/Performance Data Warehouse & OLTP • Optimized Hardware • Software Breakthroughs • Scales from ¼ Rack to 8 Full Racks Oracle Exadata Database Machine Extreme performance. Lowest cost.
  • 3. 3 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Hybrid Columnar Compression Smart Flash Cache Smart Scan Queries Up to 50X10X + ++ Oracle Exadata Innovation Storage Server Software
  • 4. 4 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Standardized and Simple to Deploy Delivered Ready-to-Run • Oracle Exadata Database Machines Are The Same Thoroughly Tested & Highly Supportable Identical Configuration Used by Oracle Engineering • Run Existing OLTP and DW Applications 30 Years of Oracle DB Capabilities No Exadata Certification Required • Leverage Oracle Ecosystem Skills, Knowledge Base, People, & Partners
  • 5. 5 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Oracle Exadata in the Market Rapid Adoption Across Geographies and Industries
  • 6. 6 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Agenda • How to gather statistics • Additional types of statistics • When to gather statistics • Statistics gathering performance
  • 7. 7 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. How to Gather Statistics • Analyze command is deprecated – Only good for row chaining • The GATHER_*_STATS procedures take 13 parameters – Ideally you should only set the first 2-3 parameters • SCHEMA NAME • TABLE NAME • PARTITION NAME Use DBMS_STATS Package
  • 8. 8 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. How to Gather Statistics Use DBMS_STATS Package • Your gather statistics commands should be this simple
  • 9. 9 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. How to Gather Statistics • Can change the default value at the global level – DBMS_STATS.SET_GLOBAL_PREF – This changes the value for all existing objects and any new objects • Can change the default value at the table level – DBMS_STATS.SET_TABLE_PREF Changing Default Parameter Values for Gathering Statistics
  • 10. 10 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. How to Gather Statistics • CASCADE • CONCURRENT • DEGREE • ESTIMATE_PERCENT • METHOD_OPT • NO_INVALIDATE • GRANULARITY • PUBLISH • INCREMENTAL • STALE_PERCENT • AUTOSTATS_TARGET (SET_GLOBAL_PREFS only) Changing Default Parameter Values for Gathering Statistics •The following parameter defaults can be changed:
  • 11. 11 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. How to Gather Statistics • # 1 most commonly asked question – “What sample size should I use?” • Controlled by ESTIMATE_PRECENT parameter • From 11g onwards use default value AUTO_SAMPLE_SIZE – New hash based algorithm – Speed of a 10% sample – Accuracy of 100% sample Sample Size
  • 12. 12 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. How to Gather Statistics • Speed of a 10% sample • Accuracy of 100% sample Sample Size Run Num AUTO_SAMPLE_SIZE 10% SAMPLE 100% SAMPLE 1 00:02:21.86 00:02:31.56 00:08:24.10 2 00:02:38.11 00:02:49.49 00:07:38.25 3 00:02:39.31 00:02:38.55 00:07:37.83 Column Name NDV with AUTO_SAMPLE_SIZE NDV with 10% SAMPLE NDV with 100% SAMPLE C1 59852 31464 60351 C2 1270912 608544 1289760 C3 768384 359424 777942
  • 13. 13 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Agenda • How to gather statistics • Additional types of statistics • When to gather statistics • Statistics gathering performance
  • 14. 14 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Additional Types of Statistics • Two types of Extended Statistics – Column groups statistics • Column group statistics useful when multiple column from the same table are used in where clause predicates – Expression statistics • Expression statistics useful when a column is used as part of a complex expression in where clause predicate • Can be manually or automatically created • Automatically maintained when statistics are gathered When Table and Column Statistics are not enough
  • 15. 15 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Extended Statistics – SELECT * FROM vehicles WHERE model = ‘530xi’ AND color = 'RED’; Column Group Statistics SLIVERC320MERC REDSLKMERC RED911PORSCHE SILVER530xiBMW BLACK530xiBMW RED530xiBMW ColorModelMake Vehicles Table Cardinality #ROWS * 1 * 1 12 * 1 * 1 1 NDV c1 NDV c2 4 3 = => MAKE MODEL COLOR BMW 530xi RED =
  • 16. 16 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Extended Statistics SELECT * FROM vehicles WHERE model = ‘530xi’ AND make = ‘BMW’; Column Group Statistics SLIVERC320MERC REDSLKMERC RED911PORSCHE SILVER530xiBMW BLACK530xiBMW RED530xiBMW ColorModelMake Vehicles Table Cardinality #ROWS * 1 * 1 12 * 1 * 1 1 NDV c1 NDV c2 4 3 = => = MAKE MODEL COLOR BMW 530xi RED BMW 530xi BLACK BMW 530xi SLIVER
  • 17. 17 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Extended Statistics • Create extended statistics on the Model & Make columns using DBMS_STATS.CREATE_EXTENDED_STATS Column Group Statistics New Column with system generated name
  • 18. 18 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Extended Statistics SELECT * FROM vehicles WHERE model = ‘530xi’ AND make = ‘BMW’; Column Group Statistics SLIVERC320MERC REDSLKMERC RED911PORSCHE SILVER530xiBMW BLACK530xiBMW RED530xiBMW ColorModelMake Vehicles Table Cardinality calculated using column group statistics MAKE MODEL COLOR BMW 530xi RED BMW 530xi BLACK BMW 530xi SLIVER
  • 19. 19 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Extended Statistics SELECT * FROM Customers WHERE UPPER(CUST_LAST_NAME) = ‘SMITH’; • Optimizer doesn’t know how function affects values in the column • Optimizer guesses the cardinality to be 1% of rows SELECT count(*) FROM customers; COUNT(*) 55500 Expression Statistics Cardinality estimate is 1% of the rows
  • 20. 20 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Extended Statistics Expression Statistics New Column with system generated name
  • 21. 21 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Extended Statistics 1. Start column group usage capture Automatic Column Group Detection • Oracle can automatically detect column group candidates based on an STS or by monitoring a workload • Uses DBMS_STATS procedure SEED_COL_USAGE • If the first two arguments are set to NULL the current workload will be monitored • The third argument is the time limit in seconds
  • 22. 22 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Extended Statistics 2. Run your workload Automatic Column Group Detection • Actual number of rows returned by this query is 932 • Optimizer under-estimates the cardinality as it assumes each where clause predicate will reduce number of rows returned • Optimizer is not aware of real-world relations between city, state, & country
  • 23. 23 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Extended Statistics 2. Run your workload Automatic Column Group Detection • Actual number of rows returned by this query is 145 • Optimizer over-estimates the cardinality as it is not aware of the real-world relations between state & country
  • 24. 24 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Extended Statistics 3. Check column usage information recorded for our table Automatic Column Group Detection COLUMN USAGE REPORT FOR SH.CUSTOMERS 1. COUNTRY_ID : EQ 2. CUST_CITY : EQ 3. CUST_STATE_PROVINCE : EQ 4. (CUST_CITY, CUST_STATE_PROVINCE, COUNTRY_ID) : FILTER 5. (CUST_STATE_PROVINCE, COUNTRY_ID) : GROUP_BY SELECT dbms_stats.report_col_usage(user, 'customers') FROM dual; EQ means column was used in equality predicate in query 1 GROUP_BY columns used in group by expression in query 2 FILTER means columns used together as filter predicates rather than join etc. Comes from query 1
  • 25. 25 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Statistics Enhancements 4. Create extended stats for customers based on usage EXTENSIONS FOR SH.CUSTOMERS 1. (CUST_CITY, CUST_STATE_PROVINCE, COUNTRY_ID): SYS_STUMZ$C3AIHLPBROI#SKA58H_N created 2. (CUST_STATE_PROVINCE, COUNTRY_ID) : SYS_STU#S#WF25Z#QAHIHE#MOFFMM_ created Column group statistics will now be automatically maintained every time you gather statistics on this table Automatic Column Group Detection SELECT dbms_stats.create_extended_stats(user, 'customers') FROM dual;
  • 26. 26 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Agenda • How to gather statistics • Additional types of statistics • When to gather statistics • Statistics gathering performance
  • 27. 27 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. When to Gather Statistics • Oracle automatically collect statistics for all database objects, which are missing or have stale statistics • AutoTask run during a predefined maintenance window • Internally prioritizes the database objects – Both user schema and dictionary tables – Objects that need updated statistics most are processed first • Controlled by DBMS_AUTO_TASK_ADMIN package or via Enterprise Manager Automatic Statistics Gathering
  • 28. 28 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. When to Gather Statistics Automatic Statistics Gathering in Enterprise Manager • Enterprise Manager allows you to control all aspects of the automatic statistics gathering task • The statistics gathering task can be set to only run during certain maintenance windows
  • 29. 29 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. When to Gather Statistics • If you want to disable auto job for application schema 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 Automatic Statistics Gathering
  • 30. 30 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. When to Gather Statistics • Need to determine when to manually gather statistics • After large data loads – Add statistics gather to the ETL or ELT process • If trickle loading or online transactions – Manually determine when statistics are stale and trigger gather – USER_TAB_MODIFICATIONS lists # INSERTS, UPDATES, and DELETES that occurs on each table • If trickle loading into a partition table – Used dbms.stats.copy_table_stats() If the Auto Statistics Gather Job is not suitable
  • 31. 31 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. When to Gather Statistics If the Auto Statistics Gather Job is not suitable Partitioned Table Partition 1 June 1st 2012 : Partition 4 June 4th 2012 Partition 5 June 5th 2012 DBMS_STATS.COPY_TABLE_STATS(); • Copies statistic from source partition to new partition • Adjusts min & max values for partition column • Both partition & global statistics • Copies statistics of the dependent objects • Columns, local (partitioned) indexes* etc. • Does not update global indexes
  • 32. 32 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Agenda • How to gather statistics • Additional types of statistics • When to gather statistics • Statistics gathering performance
  • 33. 33 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Statistics Gathering Performance • Three parallel options to speed up statistics gathering – Inter object using parallel execution – Intra object using concurrency – The combination of Inter and Intra object • Incremental statistics gathering for partitioned tables How to speed up statistics gathering
  • 34. 34 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Statistics Gathering Performance • Controlled by GATHER_*_STATS parameter DEGREE • Default is to use parallel degree specified on object • If set to AUTO Oracle decide parallel degree used • Works on one object at a time Inter Object using parallel execution
  • 35. 35 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Statistics Gathering Performance Inter Object using parallel execution P4 P3 P2 P1 Customers Table • Customers table has a degree of parallelism of 4 • 4 parallel server processes will be used to gather stats
  • 36. 36 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Statistics Gathering Performance Inter Object using parallel execution Exec DBMS_STATS.GATHER_TABLE_STATS(‘SH’,’SALES); Sales Table Partition 1 May 18th 2012 Partition 2 May 19th 2012 Partition 3 May 20th 2012 • Each individual partition will have statistics gathered one after the other • The statistics gather procedure on each individual partition operates in parallel BUT the statistics gathering procedures won’t happen concurrently P4 P3 P2 P1
  • 37. 37 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Statistics Gathering Performance • Gather statistics on multiple objects at the same time • Controlled by DBMS_STATS preference, CONCURRENT • Uses Database Scheduler and Advanced Queuing • Number of concurrent gather operations controlled by job_queue_processes parameter • Each gather operation can still operate in parallel Intra Object
  • 38. 38 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Statistics Gathering Performance Intra Object Statistics Gathering for SH Schema Exec DBMS_STATS.GATHER_SCHEMA_STATS(‘SH’); • A statistics gathering job is created for each table and partition in the schema • Level 1 contain statistics gathering jobs for all non- partitioned tables and a coordinating job for each partitioned table • Level 2 contain statistics gathering jobs for each partition in the partitioned tables
  • 39. 39 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Statistics Gathering Performance Inter Object using concurrent parallel execution Exec DBMS_STATS.GATHER_TABLE_STATS(‘SH’,’SALES); Sales Table Partition 1 May 18th 2012 Partition 2 May 19th 2012 Partition 3 May 20th 2012 Job1 Job2 Job3 • The number of concurrent gathers is controlled by the parameter job_queue_processes • In this example it is set to 3 • Remember each concurrent gather operates in parallel • In this example parallel degree is 4
  • 40. 40 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Statistics Gathering Performance • Typically gathering statistics after a bulk loading data into one partition would causes a full scan of all partitions to gather global table statistics – Extremely time consuming • With Incremental Statistic gather statistics for touched partition(s) ONLY – Table (global) statistics are accurately built from partition statistics – Reduce statistics gathering time considerably – Controlled by INCREMENTAL preference Incremental Statistics Gathering for Partitioned tables
  • 41. 41 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Incremental Statistics Gathering Sales Table May 22nd 2011 May 23rd 2011 May 18th 2011 May 19th 2011 May 20th 2011 May 21st 2011 Sysaux Tablespace 1. Partition level stats are gathered & synopsis created 2. Global stats generated by aggregating partition level statistics and synopsis
  • 42. 42 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Incremental Statistics Gathering Sales Table May 22nd 2011 May 23rd 2011 May 18th 2011 May 19th 2011 May 20th 2011 May 21st 2011 Sysaux Tablespace May 24th 2011 4. Gather partition statistics for new partition 5. Retrieve synopsis for each of the other partitions from Sysaux 6. Global stats generated by aggregating the original partition synopsis with the new one 3. A new partition is added to the table & Data is Loaded
  • 43. 43 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. More Information • Accompanying Two Part White Paper Series – Understanding Optimizer Statistics – Best Practices for Managing Optimizer Statistics • Optimizer Blog – http://blogs.oracle.com/optimizer • Oracle.com – http://www.oracle.com/technetwork/database/focus-areas/bi- datawarehousing/dbbi-tech-info-optmztn-092214.html • Oracle Exadata Database Machine – http://www.oracle.com/exadata
  • 44. 44 Copyright © 2011, Oracle and/or its affiliates. All rights reserved.