Beruflich Dokumente
Kultur Dokumente
Provisioning, Configuration
Management Real Application Testing
Application
Servers
Database
Servers
PRODUCTION
Testing Today
Test – 1-2 testers trying to be 1,000s of users
Application
Servers
Database Database
Servers Servers
PRODUCTION TEST
Database Replay
Real workload for 1,000s of online users captured
Application
Servers
Database
Servers
Capture
Workload
PRODUCTION
Database Replay
Real workload for 1,000s of online users replayed
Application
Servers
Database Database
Servers Servers
Capture Replay
Workload
PRODUCTION TEST
Database Replay
Test your system changes at production levels
Application Application
Servers Servers
Database Database
Servers Servers
Capture Replay 11g ONLY
9.2.0.8,
10.2.0.3+, 11g
Workload
PRODUCTION TEST
Real Application Testing with
Database Replay
• Replay production workload in test environment
• Identify, analyze and fix potential instabilities before making
changes to production
• Capture Workload in Production
• Capture full production workload with real load, timing &
concurrency characteristics
• Move the captured workload to test system
• Replay Workload in Test
• Make the desired changes in test system
• Replay workload with full production characteristics
• Honor commit ordering
• Analyze & Report
• Errors
• Data divergence Analysis & Reporting
• Performance divergence
Why DB Replay?
From: To:
Artificial workloads Production workloads
Changes
Unsupported Application
Servers
Changes Supported
Database
•Database Upgrades, Patches
Servers
•Schema, Parameters Recording of
External Client
•RAC nodes, Interconnect Requests
•OS Platforms, OS Upgrades
•CPU, Memory
•Storage
•Etc.
Database Replay Workflow
Production
(9.2.0.8, 10gR2, 11g) Test (11g)
Clients
… Replay Driver
Mid-Tier
Storage
Storage
Analysis &
Capture Process Replay
Reporting
<Insert Picture Here>
Application Quality
Management
Capture SQL
… … Use SQL Tuning
Oracle DB Advisor to tune
regression
9i, 10g, 11g 10g, 11g
Storage
Why SQL Performance Analyzer (SPA)?
Mid-Tier
Storage
Storage
Application Quality
Management
How it works? • Executes each SQL, stored in SQL • Captures workloads and replays it
Tuning Set, in isolation using with production characteristics
production context and then including concurrency,
compares before and after execution synchronization &
plans and run-time statistics dependencies
When to use? • Unit testing of SQL with the goal to • Comprehensive testing of all
identify the set of SQL statements sub-systems of the database
with improved/regressed performance server using real production
workload
2013
2014
2002
2003
2004
2005
2006
2007
2008
2009
2010
2012
2016
2015
http://www.oracle.com/support/library/data-sheet/oracle-lifetime-support-policy-datasheet.pdf
David Mitchell
Senior Vice President, OVUM
Source: Oracle Real ApplicationTesting – business agility through superior testing, Jan 2008
Further Information
9iR2 11g • 9.2.0.8 + one-off patch • Limited performance data available for
captured workload – can use STATSPACK
SQL Performance Analyzer
for Earlier Releases
• Help customers smoothly transition to Oracle Database 10g and 11g
• SQL Test Execution feature of SPA backported to 10gR2
• For more details:
• Metalink Note: 560977.1 – “Real Application Testing for Earlier Releases”
• Metalink Note: 562899.1 – “Testing Performance Impact of an Oracle 9i to
Oracle Database 10g Release 2 Upgrade with SQL Performance Analyzer”