8/19/2019 Maximize Your Database
1/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.1
Maximize your DatabasePerformance
Find, Fix and Validate
Jesús Leonardo RoblesDB & O Business Development Manager
Valentín Leonard TabacaruPresales Technology Consultant
8/19/2019 Maximize Your Database
2/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.2
Agenda
Database Performance Analysis
– Challenges and Solutions
1.- Find
2.- Fix
3.- Validate Resources
8/19/2019 Maximize Your Database
3/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.3
Database Performance AnalysisChallenges
•Reported by end users
•Discovered by daily
checks
•Reactive to end-users
Find?
•Relate symptom to
possible cause
•Relate possible cause to
probable metric
•Implement change
Fix?•Did it work?
•End-user feedback?
•Run reports on metric
Validate?
•Wil
•Cus
for t
•Com
not
1
2
3
8/19/2019 Maximize Your Database
4/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.4
• For problem diagnosis
use ADDM, EMPerformance
• ADDM revealssignificant problemsincluding problematicSQL details and
recommendationsimprove to performance
• ADDM family – Compare Period, Real-Time ADDM
1 – Find: Diagnostics
8/19/2019 Maximize Your Database
5/277Copyright © 2012, Oracle and/or its affiliates. All rights reserved.5
Automatic Performance DiagnosticsMaximize Performance With Self-Managing Da
• Sustain maximum performance with self-managing database
• Top-down analysis using Automatic Workload Repository snapshots
• Real-time performance analysis with Automatic Database Diagnostic Monitor
• Resolve performance issues faster with drill-down root-cause analysis
• Classification tree based on Oracle performance tuning expertise
• Performance expert; now a RAC specialist too in Oracle Database 11g
Automatic Workload
Repository Snapshots
Performance &
Management
Advisors
High
Load
SQL
RAC
Issues
IO / CPUIssues
Self-Diagnostic
Engine
8/19/2019 Maximize Your Database
6/277Copyright © 2012, Oracle and/or its affiliates. All rights reserved.6
Performance Issues Automatically Diagnosed
Top SQL I/O Issues
ParsingConfiguration
Issues
ApplicationUsage
ExcessiveLogon/Logoff UndersizedMemory
RAC ServiceIssues
Locks & ITLcontention
PL/SQL,Java Time
8/19/2019 Maximize Your Database
7/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.7
Real-Time ADDM—Architecture
• Makes a lightweight connection without acquiring additional locks
resources, bypassing the SQL layer through the agent
• Also attempts to initiate standard JDBC connection
• Data returned by either connection is analyzed by Real-Time ADD
EM Agent
JDBC Connection
Diagnostic Connection
ADDM
AnalysisDatabase
T
8/19/2019 Maximize Your Database
8/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.8
Real-Time ADDM
8/19/2019 Maximize Your Database
9/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.9
Compare Period ADDM
• Full ADDM analysis across two AWR snapshot periods
• Detects causes, measure effects, then correlates them
• Causes: workload changes, configuration changes
• Effects: regressed SQL, reach resource limits (CPU, I/O, memory, interconnect)
• Makes actionable recommendations along with quantified impact
AWR Snapshot
Period 1
AWR Snapshot
Period 2 Analysis ReportCompare
Period ADDM
S
R
U
8/19/2019 Maximize Your Database
10/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.10
Compare Period ADDM: Method
• Identify what changed
• DB con f igurat ions, work load c
• Quantify performance diff
• Uses DB Time as bas is fo
• Identify root cause
• Correlate perform ance di
Did the Buffer cachWhy is there 10%
Why Top SQL incr
Read I/O are up b
Did a buffer cac
cause a read I/O
8/19/2019 Maximize Your Database
11/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.11
Compare Period – 3 Modes
One snapshot o
System movingwindow
Customized per
8/19/2019 Maximize Your Database
12/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.12
Compare Period: Report
8/19/2019 Maximize Your Database
13/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.13
Active Session History (ASH)
All ‘Active’ sessions captured every second
• Foregrounds and backgrounds are sampled
• Active foregrounds contribute to DB Time
In-memory: V$ACTIVE_SESSION_HISTORY
• Sampling interval = 1 second
On-disk: DBA_HIST_ACTIVE_SESS_HISTORY
• Sampling interval = 10 seconds
ASH is a system-wide record of database activity
• A FACT table with multiple dimensions that help diagnose per
8/19/2019 Maximize Your Database
14/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.14
Drilling into Logical Dimensions
ASH
SQL
PL/SQL
ResourceUsage
SessionIdentifiers
Session Attributes
SQL
SQL ID
PlanHash
Operation
OpCode
PL/SQL
PL/SQL
Top LevelPL/SQL
Resources
WaitClass
WaitEvent
Object
BlockingSession
Identifiers
Instance
Services
UserSession
ParallelProcess
Program
SessionType
8/19/2019 Maximize Your Database
15/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.15
ASH Analytics
Flexible Time Picker
Flexible Activity Chart
Flexible Top Chart Flexible Top Cha
8/19/2019 Maximize Your Database
16/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.16
• Seamless integrationbetween Find and Fix
• In-depth analysis andrecommendation of thefix
• Gather statistics for this
example…
• How would we validatethis changes?
2 – Fix: Tuning
SQL P bl
8/19/2019 Maximize Your Database
17/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.17
SQL Problems
Bind-sensitive SQL with bind peeking
Literal usage
CURSOR SHARING
Cursor Sharing
Issues
Hardware resource crunch
Contention (row lock contention, block update contention)
Data fragmentation
Resource &
Contention
Issues
RESOURCES
Stale/Missing statistics
Incomplete statistics
Improper optimizer configuration
Upgraded Database:
Changing statistics
Rapidly changing dat
STATISTICS
Optimizer
Statistics Issues
Missing access structures
Poorly written SQL statements ApplicationIssues
APPLICATIONS
Not parallelized (no scaling to large data)
Improperly parallelized (partially parallelized, skews)ParallelismIssues
PARALLELISM
8/19/2019 Maximize Your Database
18/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.18
SQL Tuning Advisor
SQL Tuning Advisor
Identifies alternate execution plans using
real-time and historical performance data
Recommends parallel profile if it wperformance significantly (2x
SQL Profiling
Statistics Analysis
Access Path Analysis
SQL Restructure Analysis
Alternative Plan Analysis
Parallel Query Analysis
Automatic Tuning Optimizer
S
Reco
Gather Missing or Stale Statistics
Create a SQL Profile
Add Missing Access Structures
Modify SQL Constructs
Adopt Alternative
Execution Plan
Create Parallel SQL Profile
SQL TuningAdvisor
8/19/2019 Maximize Your Database
19/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.19
Application TuningAutomatic SQL Tuning
Automatic SQLTuning
•Captures high-loadSQL
•Tunes SQL usingSQL Profiles
•Implements improvedSQL plans (optional)
Performancebenefit of advice
provided
SQL Profilingtunes execution
plan withoutchanging SQL
text
Applications
High-Load
PacSQ
Cu
SQ
CuIndPa
T
Automatic Tuning Optimizer
8/19/2019 Maximize Your Database
20/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.20
SQL Access Advisor
Automatic Tuning
Optimizer
SQLCache
SQLTuning
sets SQL Access
Advisor
Indexes
Material
Material
Logs
Partition
SQL Access Advisor
• Capture SQL Workloadfrom multiple sources
Set filters on theWorkload
SReco
R l Ti SQL M it i
8/19/2019 Maximize Your Database
21/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.21
Real-Time SQL MonitoringLooking Inside SQL Execution
G Automatically
monitors
long runningSQL
Enabledout-of-the-box
with noperformance impact
Expose
Glo
Pla
Para
8/19/2019 Maximize Your Database
22/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.22
SQL Monitoring DetailsExpensive Hash Join
8/19/2019 Maximize Your Database
23/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.23
Real-Time PL/SQL Monitoring
PL/SQL execution nolonger a “black box”
•Answers questions like “whydid my DBMS_STATS jobtake twice as long thistime?”
Shows global (PL/SQL)and SQL level statistics
Each SQL called byPL/SQL recursively
monitored
Dril
un
8/19/2019 Maximize Your Database
24/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.24
Performance DiagnosticsActive Reports
Interactive reportsfor
off-line analysis
Drill-downs fordetailed analysis
Can be emailed
for analysis
DO
8/19/2019 Maximize Your Database
25/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.25
D E M O N S T R A T I O
Automatic SQL Tunin
8/19/2019 Maximize Your Database
26/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.26
8/19/2019 Maximize Your Database
27/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.27
8/19/2019 Maximize Your Database
28/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.28
8/19/2019 Maximize Your Database
29/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.29
8/19/2019 Maximize Your Database
30/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.30
8/19/2019 Maximize Your Database
31/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.31
8/19/2019 Maximize Your Database
32/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.32
8/19/2019 Maximize Your Database
33/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.33
8/19/2019 Maximize Your Database
34/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.34
8/19/2019 Maximize Your Database
35/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.35
8/19/2019 Maximize Your Database
36/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.36
8/19/2019 Maximize Your Database
37/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.37
8/19/2019 Maximize Your Database
38/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.38
8/19/2019 Maximize Your Database
39/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.39
8/19/2019 Maximize Your Database
40/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.40
8/19/2019 Maximize Your Database
41/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.41
8/19/2019 Maximize Your Database
42/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.42
8/19/2019 Maximize Your Database
43/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.43
8/19/2019 Maximize Your Database
44/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.44
8/19/2019 Maximize Your Database
45/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.45
8/19/2019 Maximize Your Database
46/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.46
8/19/2019 Maximize Your Database
47/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.47
8/19/2019 Maximize Your Database
48/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.48
8/19/2019 Maximize Your Database
49/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.49
8/19/2019 Maximize Your Database
50/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.50
8/19/2019 Maximize Your Database
51/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.51
8/19/2019 Maximize Your Database
52/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.52
8/19/2019 Maximize Your Database
53/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.53
8/19/2019 Maximize Your Database
54/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.54
8/19/2019 Maximize Your Database
55/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.55
8/19/2019 Maximize Your Database
56/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.56
8/19/2019 Maximize Your Database
57/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.57
8/19/2019 Maximize Your Database
58/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.58
8/19/2019 Maximize Your Database
59/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.59
8/19/2019 Maximize Your Database
60/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.60
8/19/2019 Maximize Your Database
61/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.61
8/19/2019 Maximize Your Database
62/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.62
8/19/2019 Maximize Your Database
63/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.63
8/19/2019 Maximize Your Database
64/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.64
8/19/2019 Maximize Your Database
65/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.65
8/19/2019 Maximize Your Database
66/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.66
8/19/2019 Maximize Your Database
67/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.67
8/19/2019 Maximize Your Database
68/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.68
8/19/2019 Maximize Your Database
69/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.69
8/19/2019 Maximize Your Database
70/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.70
8/19/2019 Maximize Your Database
71/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.71
8/19/2019 Maximize Your Database
72/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.72
8/19/2019 Maximize Your Database
73/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.73
8/19/2019 Maximize Your Database
74/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.74
8/19/2019 Maximize Your Database
75/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.75
8/19/2019 Maximize Your Database
76/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.76
8/19/2019 Maximize Your Database
77/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.77
8/19/2019 Maximize Your Database
78/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.78
8/19/2019 Maximize Your Database
79/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.79
8/19/2019 Maximize Your Database
80/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.80
8/19/2019 Maximize Your Database
81/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.81
8/19/2019 Maximize Your Database
82/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.82
8/19/2019 Maximize Your Database
83/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.83
8/19/2019 Maximize Your Database
84/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.84
8/19/2019 Maximize Your Database
85/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.85
8/19/2019 Maximize Your Database
86/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.86
8/19/2019 Maximize Your Database
87/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.87
8/19/2019 Maximize Your Database
88/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.88
8/19/2019 Maximize Your Database
89/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.89
8/19/2019 Maximize Your Database
90/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.90
8/19/2019 Maximize Your Database
91/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.91
8/19/2019 Maximize Your Database
92/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.92
8/19/2019 Maximize Your Database
93/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.93
8/19/2019 Maximize Your Database
94/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.94
8/19/2019 Maximize Your Database
95/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.95
8/19/2019 Maximize Your Database
96/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.96
D E M O N S T R A T I O
Monitoring SQL Stateme
8/19/2019 Maximize Your Database
97/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.97
8/19/2019 Maximize Your Database
98/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.98
8/19/2019 Maximize Your Database
99/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.99
8/19/2019 Maximize Your Database
100/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.100
8/19/2019 Maximize Your Database
101/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.101
8/19/2019 Maximize Your Database
102/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.102
8/19/2019 Maximize Your Database
103/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.103
8/19/2019 Maximize Your Database
104/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.104
8/19/2019 Maximize Your Database
105/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.105
8/19/2019 Maximize Your Database
106/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.106
8/19/2019 Maximize Your Database
107/277
8/19/2019 Maximize Your Database
108/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.108
8/19/2019 Maximize Your Database
109/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.109
8/19/2019 Maximize Your Database
110/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.110
8/19/2019 Maximize Your Database
111/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.111
8/19/2019 Maximize Your Database
112/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.112
8/19/2019 Maximize Your Database
113/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.113
8/19/2019 Maximize Your Database
114/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.114
8/19/2019 Maximize Your Database
115/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.115
8/19/2019 Maximize Your Database
116/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.116
8/19/2019 Maximize Your Database
117/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.117
8/19/2019 Maximize Your Database
118/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.118
8/19/2019 Maximize Your Database
119/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.119
8/19/2019 Maximize Your Database
120/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.120
8/19/2019 Maximize Your Database
121/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.121
8/19/2019 Maximize Your Database
122/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.122
8/19/2019 Maximize Your Database
123/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.123
8/19/2019 Maximize Your Database
124/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.124
8/19/2019 Maximize Your Database
125/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.125
8/19/2019 Maximize Your Database
126/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.126
8/19/2019 Maximize Your Database
127/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.127
8/19/2019 Maximize Your Database
128/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.128
8/19/2019 Maximize Your Database
129/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.129
8/19/2019 Maximize Your Database
130/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.130
8/19/2019 Maximize Your Database
131/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.131
8/19/2019 Maximize Your Database
132/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.132
8/19/2019 Maximize Your Database
133/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.133
8/19/2019 Maximize Your Database
134/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.134
8/19/2019 Maximize Your Database
135/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.135
8/19/2019 Maximize Your Database
136/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.136
8/19/2019 Maximize Your Database
137/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.137
8/19/2019 Maximize Your Database
138/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.138
8/19/2019 Maximize Your Database
139/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.139
8/19/2019 Maximize Your Database
140/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.140
8/19/2019 Maximize Your Database
141/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.141
8/19/2019 Maximize Your Database
142/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.142
8/19/2019 Maximize Your Database
143/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.143
8/19/2019 Maximize Your Database
144/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.144
8/19/2019 Maximize Your Database
145/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.145
8/19/2019 Maximize Your Database
146/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.146
8/19/2019 Maximize Your Database
147/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.147
8/19/2019 Maximize Your Database
148/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.148
8/19/2019 Maximize Your Database
149/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.149
8/19/2019 Maximize Your Database
150/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.150
8/19/2019 Maximize Your Database
151/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.151
8/19/2019 Maximize Your Database
152/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.152
8/19/2019 Maximize Your Database
153/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.153
8/19/2019 Maximize Your Database
154/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.154
8/19/2019 Maximize Your Database
155/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.155
8/19/2019 Maximize Your Database
156/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.156
8/19/2019 Maximize Your Database
157/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.157
8/19/2019 Maximize Your Database
158/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.158
8/19/2019 Maximize Your Database
159/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.159
8/19/2019 Maximize Your Database
160/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.160
8/19/2019 Maximize Your Database
161/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.161
8/19/2019 Maximize Your Database
162/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.162
8/19/2019 Maximize Your Database
163/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.163
8/19/2019 Maximize Your Database
164/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.164
8/19/2019 Maximize Your Database
165/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.165
8/19/2019 Maximize Your Database
166/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.166
8/19/2019 Maximize Your Database
167/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.167
8/19/2019 Maximize Your Database
168/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.168
8/19/2019 Maximize Your Database
169/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.169
8/19/2019 Maximize Your Database
170/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.170
8/19/2019 Maximize Your Database
171/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.171
8/19/2019 Maximize Your Database
172/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.172
• End-to-end SPAworkflow using
3 – Validate: SPA
8/19/2019 Maximize Your Database
173/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.173
Optimizer Statistics
• Seamless integrationfrom Find to Fix toValidate to Implementwith confidence
• No more guesswork
Real Application TestingSQL Performance Analyzer (SPA)
SQL Plans + Run-time Stats
Pre-Change Trial
8/19/2019 Maximize Your Database
174/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.174
SQL Workload
STS SQL Plans + Run-time StatsPost-Change Trial
Compare SQLPerformance Ana
• Test and predict impact of system changes on SQL query performance
• Analyze performance changes for improvements and regressions• Comprehensive performance analysis and reporting
• Re-execute SQL queries in the given environment
• End-to-end solution: STS, SQL Plan Baselines, and SQL Tuning Advisor
SPA Analysis Report Example
32
8/19/2019 Maximize Your Database
175/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.175
4
1
SPA ReportRegressed SQL Statements
8/19/2019 Maximize Your Database
176/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.176
Usage Scenario: Evaluating Chang
8/19/2019 Maximize Your Database
177/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.177
Production
Fix Regression thru
+Add
indexes
Using SPA For Changes in Production: Example
Prod
Parameter changewas bad in this case
8/19/2019 Maximize Your Database
178/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.178
+Parameter
Change
g
SPM
Fix Regression
SQL Profile
+SQL
Profile
+New Stats
Change
+Partitioning
+Valida
Tuning
• Bubble following the arr
delta change on Produc
• SPA is used for testing
When to use SPA?
• Optimizer Statistics
• Database parameter changes
• Database schema changes (e.g., add/drop indexes)
• Implementation of tuning recommendations
SPA Provides Broad Testing Coverage
8/19/2019 Maximize Your Database
179/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.179
• I/O subsystem changes (e.g., ASM, Database Machine)• For consolidation (schema, CDB/PDB)
• On test, standby, and production environments
• Extended to home-grown scripts, application specific database changes, third-partytesting tools using STS compare analysis
• Supports most applications - EBS, SAP, Siebel, home-grown, etc
• My Oracle Support (MOS) Note: 560977.1
• 9.2/10.110.2 or 11g or 12 releases
• 10.2.0.x10.2.0.y or 11g or 12 releases
SPA Provides Testing in Various Database Releases
8/19/2019 Maximize Your Database
180/277
8/19/2019 Maximize Your Database
181/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.181
8/19/2019 Maximize Your Database
182/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.182
8/19/2019 Maximize Your Database
183/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.183
8/19/2019 Maximize Your Database
184/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.184
8/19/2019 Maximize Your Database
185/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.185
8/19/2019 Maximize Your Database
186/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.186
8/19/2019 Maximize Your Database
187/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.187
8/19/2019 Maximize Your Database
188/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.188
8/19/2019 Maximize Your Database
189/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.189
8/19/2019 Maximize Your Database
190/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.190
8/19/2019 Maximize Your Database
191/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.191
8/19/2019 Maximize Your Database
192/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.192
8/19/2019 Maximize Your Database
193/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.193
8/19/2019 Maximize Your Database
194/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.194
8/19/2019 Maximize Your Database
195/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.195
8/19/2019 Maximize Your Database
196/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.196
8/19/2019 Maximize Your Database
197/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.197
8/19/2019 Maximize Your Database
198/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.198
8/19/2019 Maximize Your Database
199/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.199
8/19/2019 Maximize Your Database
200/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.200
8/19/2019 Maximize Your Database
201/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.201
8/19/2019 Maximize Your Database
202/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.202
8/19/2019 Maximize Your Database
203/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.203
8/19/2019 Maximize Your Database
204/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.204
8/19/2019 Maximize Your Database
205/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.205
8/19/2019 Maximize Your Database
206/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.206
8/19/2019 Maximize Your Database
207/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.207
8/19/2019 Maximize Your Database
208/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.208
8/19/2019 Maximize Your Database
209/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.209
8/19/2019 Maximize Your Database
210/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.210
8/19/2019 Maximize Your Database
211/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.211
8/19/2019 Maximize Your Database
212/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.212
8/19/2019 Maximize Your Database
213/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.213
8/19/2019 Maximize Your Database
214/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.214
8/19/2019 Maximize Your Database
215/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.215
8/19/2019 Maximize Your Database
216/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.216
8/19/2019 Maximize Your Database
217/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.217
8/19/2019 Maximize Your Database
218/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.218
8/19/2019 Maximize Your Database
219/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.219
8/19/2019 Maximize Your Database
220/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.220
8/19/2019 Maximize Your Database
221/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.221
8/19/2019 Maximize Your Database
222/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.222
8/19/2019 Maximize Your Database
223/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.223
8/19/2019 Maximize Your Database
224/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.224
8/19/2019 Maximize Your Database
225/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.225
8/19/2019 Maximize Your Database
226/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.226
8/19/2019 Maximize Your Database
227/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.227
8/19/2019 Maximize Your Database
228/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.228
8/19/2019 Maximize Your Database
229/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.229
8/19/2019 Maximize Your Database
230/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.230
8/19/2019 Maximize Your Database
231/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.231
8/19/2019 Maximize Your Database
232/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.232
8/19/2019 Maximize Your Database
233/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.233
8/19/2019 Maximize Your Database
234/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.234
8/19/2019 Maximize Your Database
235/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.235
8/19/2019 Maximize Your Database
236/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.236
8/19/2019 Maximize Your Database
237/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.237
8/19/2019 Maximize Your Database
238/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.238
8/19/2019 Maximize Your Database
239/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.239
8/19/2019 Maximize Your Database
240/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.240
8/19/2019 Maximize Your Database
241/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.241
8/19/2019 Maximize Your Database
242/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.242
8/19/2019 Maximize Your Database
243/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.243
8/19/2019 Maximize Your Database
244/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.244
8/19/2019 Maximize Your Database
245/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.245
8/19/2019 Maximize Your Database
246/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.246
8/19/2019 Maximize Your Database
247/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.247
8/19/2019 Maximize Your Database
248/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.248
8/19/2019 Maximize Your Database
249/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.249
8/19/2019 Maximize Your Database
250/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.250
8/19/2019 Maximize Your Database
251/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.251
8/19/2019 Maximize Your Database
252/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.252
8/19/2019 Maximize Your Database
253/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.253
8/19/2019 Maximize Your Database
254/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.254
8/19/2019 Maximize Your Database
255/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.255
8/19/2019 Maximize Your Database
256/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.256
8/19/2019 Maximize Your Database
257/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.257
8/19/2019 Maximize Your Database
258/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.258
8/19/2019 Maximize Your Database
259/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.259
8/19/2019 Maximize Your Database
260/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.260
8/19/2019 Maximize Your Database
261/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.261
8/19/2019 Maximize Your Database
262/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.262
8/19/2019 Maximize Your Database
263/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.263
8/19/2019 Maximize Your Database
264/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.264
8/19/2019 Maximize Your Database
265/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.265
8/19/2019 Maximize Your Database
266/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.266
8/19/2019 Maximize Your Database
267/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.267
8/19/2019 Maximize Your Database
268/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.268
8/19/2019 Maximize Your Database
269/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.269
8/19/2019 Maximize Your Database
270/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.270
8/19/2019 Maximize Your Database
271/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.271
8/19/2019 Maximize Your Database
272/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.272
8/19/2019 Maximize Your Database
273/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.273
Advanced Databases Performance Analy
Solution
• Built-in, self-diagnosticsengine: AutomaticDatabase DiagnosticsMonitor (ADDM)
(Diagnostics Pack)
Find
• Automates complex andtime consuming task of
application tuning
(Tuning Pack)
Fix • Validates tuning and“what-if” activities
(Real Application Testing)
Validate
• Extemetr
for aninclu
(Met
8/19/2019 Maximize Your Database
274/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.274
Resources
Oracle Enterprise Manager 12c:
http://www.oracle.com/us/products/enterprise-manager
Oracle Enterprise Manager 12c Database Management
http://www.oracle.com/technetwork/oem/db-mgmt
Database Manageability and Real Application Testing:
http://www.oracle.com/technetwork/database/manageability
Oracle Enterprise Manager on Beehive Online
Downloadable Technical Assets
http://www.oracle.com/us/products/enterprise-managerhttp://www.oracle.com/technetwork/oem/db-mgmthttp://www.oracle.com/us/products/enterprise-managerhttp://www.oracle.com/technetwork/database/manageabilityhttp://www.oracle.com/technetwork/database/manageabilityhttp://www.oracle.com/us/products/enterprise-managerhttp://www.oracle.com/technetwork/oem/db-mgmthttp://www.oracle.com/technetwork/oem/db-mgmthttp://www.oracle.com/technetwork/oem/db-mgmthttp://www.oracle.com/us/products/enterprise-managerhttp://www.oracle.com/us/products/enterprise-managerhttp://www.oracle.com/us/products/enterprise-manager
8/19/2019 Maximize Your Database
275/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.275
Downloadable Technical Assets
[email protected] mailing list for support
8/19/2019 Maximize Your Database
276/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.276
8/19/2019 Maximize Your Database
277/277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.277