Professional Documents
Culture Documents
Performance Analyzer
Prabhaker Gongloor (GP)
Khaled Yagoub
Pete Belknap
Database Manageability Group
Outline
• SPA Trials handle the SELECTS and query part of DML, DDL is skipped
New
Workflows !
Recommended Testing Methodology
Real Application Testing: Recommended Methodology
No
DONE?
Yes
DONE?
No
Yes
Prod +Add
indexes And so on…
Parameter change
was bad in this case
1. Fix Regression
thru SPM
+Parameter +Index
Change Unusable
+New Stats
Change
Fix Regression +Validate
SQL Profile Tuning
+Partitioning
+SQL
Profile
• Bubble following the arrow indicates the
delta change on Production
• SPA is used for testing every change
How to Minimize Impact on Production?
Scenario:
Can I use SPA to check if any SQL statements
regressed due to optimizer statistics refresh on my
10.2/11g production databases? If so, how?
Goal:
Assess impact of optimizer statistics gathering
on SQL workload performance on production system
using SPA & make sure are no negative effects of the
change
Evaluating Optimizer Statistics Refresh
• Assumptions
– Statistics refreshed periodically through custom jobs
– No test system available, so evaluation is done on production
– Should impact end-users minimally
– Test using optimizer pending statistics feature
• Use SPA remote trials capability (generate plan and test execute)
to evaluate statistics refresh on 10.2/11g production database
• Tips!
– If you’re creating remote trials, you will need a logon trigger to set
optimizer_use_pending_statistics = TRUE private to the second trial
(SPA establishes the connection itself, over db link, so you cannot run
alter session yourself)
– To test-execute only those SQLs with changed plans, subset your STS
after doing trial 2, then do a new SPA experiment on that STS
• Script to subset STS is on Notes slide
Usage Scenario:
End-to-End Case Study for 10.2 11g
Upgrade
10.2 11g DB Upgrade Using Enterprise Manager
Grid Control (EMGC) 10.2.0.5
Scenario:
I want to upgrade from 10.2 to 11g database release to
benefit from 11g functionality. How can I best accomplish the
upgrade?
Goal:
Assess impact of upgrade on SQL workload performance
using SPA so that there are no surprises after upgrade. Once
migrated to 11g new features can be enabled one at a time. Use
EMGC 10.2.0.5 for this purpose…
10.2 11g DB Upgrade
Test DB (11g)
Prod DB (10.2) Upgrade
Upgrade
Test DB (10.2)
2. Transport STS
3. Establish 10.2 and 11g Trials
11g SPA System 4. Compare performance and
generate SPA report
2. Transport STS
Step 2:
• Copy STS to SPA system
• Setup Test DB (Copy of Prod) – 10.2
• Upgrade Test DB from 10.2 to 11g
10.2 11g DB Upgrade
2. Transport STS
2. Transport STS
3 Note tuning/regression
2 fix is done on remote test
system that is being
upgraded
5*
1
4
SPA Report
Regressed SQL Statements
10.2 11g Upgrade
2. Transport STS
* Code snippet in Real Application Testing Users Guide (11.2), Chapter 11 Page 23
10.2 11g DB Upgrade
(5) Regression Remediation
10.2 11g DB Upgrade
(5) Deploy Tuning and Change in Production
10.2 11g Upgrade
2. Transport STS
• Active Reports
– New interactive, offline reports based on Adobe Flash Player UI
– Customers can share reports internally or with Oracle Support
• Save, email, View Reports
• Support can diagnose problems more efficiently
• Get EM UI without installing EM – useful for packaged apps and
internal development teams
– SPA Active Report Example
SPA Enhancements: Oracle Database 11g Release 2
Using SPA With Other Testing Tools – Build Trials from STS
Make
Make sure
sure directory
directory
object
object exists on
exists on Prod
Prod
and
andTest
TestDBDB
Make
Make sure
sure all
all the
the sub-steps
sub-steps
succeed
succeed