Real Application Testing
Real Application Testing
Real Application Testing Overview: Database Replay Real Application Testing SQL Performance Analyzer (SPA) Demo Q&A
Real Application Testing Database Replay enables realistic testing of system changes by essentially recreating the production environment on a test system. It does i i this by capturing a workload on the production Real Application Testing performance overhead system with negligible and replaying it on a test system with exact timing, concurrency, and transaction characteristics of the original workload. SQL Performance Analyzer provides fine grain assessment of environment change on SQL execution plan and statistics by running the SQL statements serially in before-change and afterchange environments environments.
Real Application Testing Database Replay Recreate actual production database workload in test environment Real Application Testing Capture workload in production including critical concurrency Replay workload in test with production timing Analyze & fix issues before production
Database Replay
Real Application Testing Client Client Client Production
Middle Tier
Capture DB Workload
Storage
Storage
Real Application Testing Comparison of LoadRunner & DB Replay Testing e-Business Suite
80
Tim e Taken (D ay ys)
80
24 4 0
Understand Application A li i Usage
20 0
Identify Key Transactions T i
20 5 2
Generate Workload W kl d
5
Run Test
LoadRunner DB Replay
10.2.0.3.0
>=11.1.0.6.0
10.2.0.4.0
>= 11.1.0.6.0
10.2.0.4.0 Patchset
step is necessary to transform the captured information into a format suitable for replay. Workload replay: Typically on a separate system that has changes implemented, the workload is replayed while capturing performance information. Analysis and reporting: Once the workload is replayed, Oracle provides tools to compare the performance of the modified environment with the original baseline environment p g p to determine positive or negative impact.
Real Application Testing The think time in between queries as well as the ordering of events
will be replayed just as it happened on the production server ill b l dj t h d th d ti where it was captured. You can create filters at the time of capture (INSTANCE_NUMBER, USER, MODULE ACTION PROGRAM, USER MODULE, ACTION, PROGRAM or SERVICE) Capture process introduces some overhead (4.5%) Capture on 9i,10g,11g. Replay on 11g only. AWR data can be exported and compared.
Real Application Testing: Database Replay Practical Uses: Normal application change rollout Real Application Testing Tuning efforts Upgrade testing
Real Application Testing SQL Performance Analyzer (SPA) Test impact of change on SQL query performance Real Application Testing Capture SQL workload in production including statistics & bind variables Re-execute SQL queries in test environment Tune regressed SQL for production
Middle Tier
Capture SQL p
Storage
No patches are needed on the source side 9.x 9x 11g test database does not need to have application schema /data
Patch Required for source, destination and test databases 11g test database does not need to have application schema /data pp Test DB not required, 11.1.0.6 is the destination db upgraded to
10.2.0.2.0
11.1.0.6.0
11.1.0.6
11.1.0.7
i) 11.1.0.6 + one off patch: 6865809 AND ii) 11.1.0.7 no patch 11 1 0 7 required
No patches are needed on the source side 9.x Test DB not required, 11.1.0.7 11 1 0 7 is the destination db upgraded to
16