Sunteți pe pagina 1din 16

Oracle 11g Real Application Testing (RAT)

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

Real Application Testing

Database Replay
Real Application Testing Client Client Client Production
Middle Tier

Test Replay DB Workload

Capture DB Workload

Test migration to RAC

Storage

Storage

Real Application Testing Comparison of LoadRunner & DB Replay Testing e-Business Suite
80
Tim e Taken (D ay ys)

Real Application Testing


60 40 20

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

0 Install & Setup

DB Replay: month LoadRunner: 7 months L dR th

Real Application Testing Database Replay Availability Information


Source DB Upgrade from release f l 9.2.0.8.0 Destination DB Upgrade t any U d to release >=11.1.0.6.0 What patch you need t apply? d to l ? 9.2.0.8.0 + one off patch 6973309 Download Information I f ti One-off patch can be downloaded from Metalink One-off patch can be downloaded from Metalink One-off patch can be downloaded from Metalink Patchset can be downloaded from Metalink: 6810189 Functionality already exists in Patchset, downloa d from Metalink, no additional patches required i d Comments

Real Application Testing


10.2.0.2.0 >=11.1.0.6.0

10.2.0.2.0 + one off patch 6870469

10.2.0.3.0

>=11.1.0.6.0

10.2.0.3.0 + one off patch 6974999

10.2.0.4.0

>= 11.1.0.6.0

10.2.0.4.0 Patchset

Real Application Testing


Database Replay - Four major steps:
Workload capture: Capture the workload from a running production database as normal processing continues.

Real Application Testing Following capture, a processing Workload preprocessing:

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: Database Replay Important Items to Remember:


Some activities are not captured (Direct path loads, MTS, S ti iti t t d (Di t th l d MTS advanced replication, )

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

Database Replay: Questions


11

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

Real Application Testing SQL Performance Analyzer (SPA)

Production Real Application Testing


Client Client Client

Test Re-execute SQL Queries

Middle Tier

Capture SQL p

Use SQL Tuning Advisor to tune regression Storage

Storage

Real Application Testing


SQL Performance Analyzer - Five major steps:
Capture SQL Workload: Capture a SQL workload with negligible performance overhead from several sources into a SQL tuning set (STS) Measure Pre-ChangeTesting SQL Performance Workload: Real Applicationworkload before any changesmeasure theg the SQL p performance of the y g by executing y Q tuning set. Make a Change: make a change such as a database upgrade or optimizer statistics refresh Measure Post-Change SQL Performance Workload: measure the performance of the workload after the change by executing the SQL tuning set again. Compare: compare the two executions of the SQL tuning set to identify which SQL statements regressed, improved, or were unchanged.

Real Application Testing: SQL Performance Analyzer


Source DB Upgrade from release 9.x Destination DB Upgrade to release 10.2.0.4.0 What patch you need to apply? i) 11.1.0.6 test DB with Real Application Testing Option + one-off patch: 6865809 AND ii) Destination DB 10.2.0.4 + one-off patch: 6877038 i) 11.1.0.6 + one off patch: 6865809 AND ii) 10.2.0.2 + one off patch: 6903322 AND iii) 10.2.0.4 + one off ) patch: 6877038 i) 11.1.0.6 + one off patch: 6865809 AND ii) 10.2.0.2 + one off patch: 6903322 Download Comments

One-off patch can be Downloaded from Metalink

No patches are needed on the source side 9.x 9x 11g test database does not need to have application schema /data

Real Application Testing


10.2.0.2.0 10.2.0.4.0

One-off patch can be Downloaded from Metalink

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

One-off patch can be Downloaded from Metalink

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

One-off patch can be Downloaded from Metalink

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

info@sagelogix.com

16

S-ar putea să vă placă și