This document discusses winning performance challenges in Oracle Standard Editions, which lack advanced diagnostics features only available in the Enterprise Edition. It recommends using Statspack and dictionary views to monitor performance. Foglight for Databases is presented as an alternative that provides visualization and cross-platform monitoring without spending on the Enterprise Edition. Specific techniques demonstrated include execution plan analysis, blocking lock detection, workload baselining and multi-dimensional analysis of waits and statistics.
4. 4
Who is Quest Software?
9 0 % o f
F o r t u n e 1 0 0
using our
software
1 , 5 0 0
engineers building
quality products
4 M
c o m m u n i t y
m e m b e r s
sharing best practices
3 , 5 0 0
employees focused
on customers
Quest is a global software provider trusted by
100,000 customers and 6,000 partners in 100
countries.
We help IT organizations spend less time on
administration and more time on innovation.
6 , 0 0 0
partners selling
our software
6. 6
Agenda
Introduction to Oracle database performance tuning
Common challenges when using standard editions
Winning performance challenges in standard editions
Q&A
10. Confidential10
Instance Tuning - Common Things to Consider
Initialization Parameters - (such as STATISTICS_LEVEL)
Memory structures - ASMM, AMM, min size for buffer pools
Files configuration - redo logs, undo tablespace
Hardware configuration - memory, storage characteristics, network
ASM configuration - disk groups and failure groups
Connection management - both app level and DB level
11. Confidential11
Bad SQLs - using literals instead of bind variables
Object analysis - Indexes, partitions, materialized views
Optimizer statistics - last analyzed, dynamic statistics (OPTIMIZER_DYNAMIC_SAMPLING)
Oracle features which may impact execution plans
• SQL Profiles (10g)
• Adaptive Cursor Sharing (11gR2)
• Cardinality Feedback (11gR2)
• Dynamic Statistics (12cR1)
• Adaptive Plans (12cR1)
Plan stability - SQL plan management (11gR1)
SQL Tuning - Common Things to Consider
12. Confidential12
1. Determine the most significant bottleneck – i.e. best tuning opportunities
2. Improve/Fix it
3. Repeat it until performance is good
My Blog Post:
http://oracledbpro.blogspot.com/2015/09/simple-performance-tuning-methodology.html
Simplified Performance Tuning Methodology
13. Confidential13
Time Based Analysis - Which statements should we address first?
X Axis - db time (CPU time + Non idle wait events)
Y Axis - number of executions
14. Confidential14
Time Based Analysis - Which statements should we address first?
X Axis - db time (CPU time + Non idle wait events)
Y Axis - number of executions
15. Confidential15
OK, we found the problematic statements - what’s next?
What is the statement doing and why?
• Execution plan + statistics
• Most significant wait-events (DB Time standpoint)
)e.g. “checkpoint not complete”, “db file scattered read”)
16. Confidential16
How can we find them with enterprise edition & diagnostics pack?
AWR
ADDM
ASH
ASH Analytics
SQL Tuning Advisory
17. Confidential17
How can we find them with enterprise edition & diagnostics pack?
AWR
ADDM
ASH
ASH Analytics
SQL Tuning Advisory
18. Confidential18
How can we find them with enterprise edition & diagnostics pack?
AWR
ADDM
ASH
ASH Analytics
SQL Tuning Advisory
19. Confidential19
How can we find them with enterprise edition & diagnostics pack?
AWR
ADDM
ASH
ASH Analytics
SQL Tuning Advisory
20. Confidential20
How can we find them with enterprise edition & diagnostics pack?
AWR
ADDM
ASH
ASH Analytics
SQL Tuning Advisory
22. Confidential22
Why Standard Editions?
Less expensive than enterprise edition (but with less capabilities)
What’s the main challenge when it comes to performance diagnosis?
• Best performance tuning features are part of Diagnostics & Tuning packs
• Diagnostics & Tuning packs – only available with Enterprise Edition
23. Confidential23
Which standard editions are available?
12.1.0.1 and earlier
• Standard Edition – support for RAC
• Standard Edition One – no support for RAC
12.1.0.2 and above
• Standard Edition 2
For more info:
http://www.oracle.com/us/products/database/oracle-db-se2-brief-2680836.pdf
24. Confidential24
Performance Tuning Challenges for DBAs
Feature No Diagnostics Pack Diagnostics Pack Diagnostics & Tuning Packs
Statspack
Dictionary Views *
(most of them…)
AWR х
ASH х
ASH Analytics х
ADDM/Compare Period ADDM х
SQL Tuning Advisor х х
SQL Access Advisor х х
32. 32
What are the challenges with these approaches?
Statspack
• Text format - less intuitive to navigate compared to AWR html format
• Not as feature-rich as AWR
Dictionary Views (below are my favorites…)
• Limited history
• Cumulative statistics - since startup
But most importantly… no visualization
34. They all provide a clearer perspective -
You can’t fix what you can’t see!
What if you could…
Gain complete visibility into the health
and performance of your cross-
platform database environments
37. Confidential37
Foglight for Oracle - the Oracle Diagnostics pack alternative
Analysis tool-set for deep visibility into database performance
Supports all editions and configurations
Remote (“agentless”) collector
Supports all database editions and configurations
Get Performance Diagnostics Without Spending a Fortune!
39. Deep-dive Multi-Dimensional workload analysis
The alternative to OEM Active Session History Analytics
Drilldown,
slice, and dice
operations
Comprehensive
set of
dimensions
46. Track Changes & Correlate them with your workload
Filter by
Execution Plan
Changes
Correlate
between changes
to the actual
workload
See the SQL
statements which
have new plans