Professional Documents
Culture Documents
Björn Bolltoft
Product Manager - Oracle
Observability & Management
➢ Introduction
➢ Automatic Database Tuning
➢ Hands-on Lab Overview
➢ Q&A
DBA Masterclass
Session #1: Recording
https://youtu.be/FBSgfNS7654
Session #2:
https://youtu.be/YUYGdpSNzDg
https://oracle.com/goto/uk/dba-masterclass
https://bit.ly/emea_oracle_dba
Björn Bolltoft
Consulting Product Manager
Key Takeaway:
Improve & Ensure Higher Quality of Service
Downtime resulting
78%
from untested changes
15 Copyright © 2023, Oracle and/or its affiliates Source: From Database Clouds to Big Data: IOUG Survey on Database Manageability
Top Challenges
Database Management
?
39% Automate
Handle more than
50 DBs each
Key Takeaway:
Improve & Ensure Higher Quality of Service
Downtime resulting
78% Validate
from untested changes
16 Copyright © 2023, Oracle and/or its affiliates Source: From Database Clouds to Big Data: IOUG Survey on Database Manageability
Past DB Tuning Process
Inefficient, Inaccurate, Manual
Find a Implement
Default value is 100,
problematic a possible
metric Fix …so let’s set it to 50…
Will optimizer_index_cost_adj
improving my sequential reads…
Wait for
end-user
Did it work? feedback Are customers complaining?
The “trial and error” method can consume more than 50% of the DBA time
17 Copyright © 2023, Oracle and/or its affiliates
Future Generation DB Tuning Process
Effective, Accurate, Automated
SQL
Performance Validates tuning activities
Validate
Analyzer (Real Application Testing)
(SPA)
SQL Performance
Analyzer (SPA)
Active Session =
Session currently spending time in a database call
Database Time (DB Time) =
Total time session spent in all database calls
Average Activity of the Session (% Activity) =
The ratio of time active to total wall-clock time
The Find
Automatic Workload Repository
Challenge Solution
Challenge Solution
Single report
• One datapoint
• Is it good or is it bad?
140
120
100
80
60
40
20
0
Total(s)
250
200
150
100
50
0
Total(s)
300
200
100
0
0:00
3:00
6:00
9:00
12:00
15:00
18:00
21:00
0:00
3:00
6:00
9:00
12:00
15:00
18:00
21:00
0:00
3:00
6:00
9:00
12:00
15:00
18:00
21:00
0:00
3:00
6:00
9:00
12:00
15:00
18:00
21:00
Challenge Solution
es
ASH Operation Object User Session Action
Blocking Parallel
OpCode Client
Session Process
Session
Resourc
Identifie
es
rs Program Trans. ID
Session Type
Challenge Solution
Challenge:
Production system changes have the potential to disrupt availability and performance SLAs. DBAs need to weigh the
costs vs. benefits of making high-impact system changes
Solution:
Provide insights on what changes need to be implemented to improve performance by providing synopsis of ADDM
findings/ recommendations and their impact/benefit over a longer period
Benefit:
• Gives you confidence to implement recommendations
• Up-level junior staff with expert advice
• Up-level system optimization from tactical to strategic
Features covered:
• Event Annotations
• Findings, Recommendations & Database Parameters tabs
SQL Commonality
The Fix
Automatic SQL Tuning
• SQL plan baselines are proactive but restricts your potential gain
• SQL profiles are reactive but can improve your performance
The Validate
SPA Overview
• Build different SQL trials (experiments) of SQL Pre-change Trial Post-change Trial
statements performance by test execution
• Analyzes performance differences Compare
SQL Performance
2 5
1
4
Minimizes use
Identifies subset Test-executes of production Multiple No full DML
SQL workload with only SQLs with resources executions (execute Select
plan changes first plan changes dramatically – up disabled part of workload)
to 10x reduction
• Remedy regression
• SQL Plan Baseline
• Tuning advisor
• Remedy regression
• SQL Plan Baseline
• Tuning advisor
• Implement (for this example)
• SQL Plan Baseline
• Remedy regression
• SQL Plan Baseline
• Tuning advisor
• Implement (for this example)
• SQL Plan Baseline
• Validate again
• Remedy regression
• SQL Plan Baseline
• Tuning advisor
• Implement (for this example)
• SQL Plan Baseline
• Validate again
• Publish Statistics
Problem:
• My manager wants me to improve database performance by tuning the optimizer_index_caching
parameter. The assumption is that will help
improve the performance significantly…
• However, I’m not sure if this parameter will help, how do I quickly and accurately validate the impact of the
above parameter for my workload?
Solution: You can use SPA Quick Check to validate the performance impact of
the parameter…
Tuning
STEP 1 - Find Issues
Diagnostics STEP 2 - Fix Issues
SPA Quick
Check
STEP 3 - Validate Fix
4. Documentation:
https://docs.oracle.com/en/enterprise-
30-Day Free Trial
manager/cloud-control/enterprise-manager- Free credits you can use for
cloud-control/13.5/index.html more services
Hands-on-labs
5. Try it now
www.oracle.com/cloud/free