Sei sulla pagina 1di 16
Oracle 11g Real Application Testing (RAT)
Oracle 11g
Real Application Testing (RAT)
Real Application Testing Overview: Database Replay Real Application Testing SQL Performance Analyzer (SPA) Demo
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
Real Application Testing
Database Replay – enables realistic testing of
system changes by essentially recreating the
production environment on a test system. It does
this by capturing a workload on the production
Real system Application with negligible Testing performance overhead
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 after-
change environments.
Real Application Testing Database Replay Recreate actual production database workload Real in Application test
Real Application Testing
Database Replay
Recreate actual production database workload
Real in Application test environment 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 RealClient ApplicationClient Testing Client … Product on i Test Replay
Real Application Testing
Database Replay
RealClient ApplicationClient
Testing
Client
Product on
i
Test
Replay DB Workload
Middle Tier
Capture DB Workload
Test migration
to RAC
Storage
Storage
Real Application Testing Comparison of LoadRunner & DB Replay Testing e-Business Suite 80 80 Real
Real Application Testing
Comparison of LoadRunner & DB Replay
Testing e-Business Suite
80
80
Real
Application Testing
60
40
24 20
20
5
20
LoadRunner
4
2 5
0
0
DB Replay
0
Install & Setup
Understand
Identify Key
Generate
Run Test
Application
Transactions
Workload
Usage
DB Replay: ½ month
LoadRunner: 7 ½ months
Tim e Taken (Da ys)
Real Application Testing Database Replay Availability Information Source DB Upgrade from release Destination DB
Real Application Testing
Database Replay Availability Information
Source DB Upgrade
from release
Destination DB
Upgrade to any
release
What patch you
need to apply?
Download
Comments
Information
9.2.0.8.0
>=11.1.0.6.0
9.2.0.8.0 + one off
patch 6973309
Real Application Testing
One-off patch can
be downloaded from
Metalink
10.2.0.2.0
>=11.1.0.6.0
10.2.0.2.0
+ one
off patch 6870469
One-off patch can
be downloaded from
Metalink
10.2.0.3.0
>=11.1.0.6.0
10.2.0.3.0
+ one off
patch 6974999
One-off patch can
be downloaded from
Metalink
10.2.0.4.0
>= 11.1.0.6.0
10.2.0.4.0
Patchset
Patchset can be
downloaded
from Metalink:
· Functionality
already exists in
Patchset, downloa
6810189
d from Metalink, no
additional patches
required
Real Application Testing Database Replay - Four major steps: Workload capture: Capture the workload from
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
Workload preprocessing: Following capture, a processing
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
to determine positive or negative impact.
Real Application Testing: Database Replay Important Items to Remember: Some activities are not captured (Direct
Real Application Testing: Database Replay
Important Items to Remember:
Some activities are not captured (Direct path loads, 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
where it was captured.
You can create filters at the time of capture (INSTANCE_NUMBER,
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
Real Application Testing: Database Replay
Practical Uses:
Normal application change rollout
Real Application Testing
Tuning efforts
Upgrade testing
Database Replay: Questions 11
Database Replay:
Questions
11
Real Application Testing SQL Performance Analyzer (SPA) Test impact of change on SQL query performance
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) Client Client Client Real Application Testing …
Real Application Testing
SQL Performance Analyzer (SPA)
Client
Client
Client
Real Application Testing
Production
Test
Re-execute SQL Queries
Middle Tier
Capture SQL
Use SQL Tuning
Advisor to tune
regression
Storage
Storage
Real Application Testing SQL Performance Analyzer - Five major steps: Capture SQL Workload: Capture a
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)
Real Application Testing
Measure Pre-Change SQL Performance Workload: measure the
performance of the workload before any changes by executing the SQL
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 Destination DB Upgrade to
Real Application Testing: SQL Performance Analyzer
Source DB Upgrade
from release
Destination DB
Upgrade to release
What patch you need
to apply?
Download
Comments
9.x
10.2.0.4.0
i)
One-off patch can be
·
No patches are needed
R
ea
11.1.0.6 test DB with
T
l A
pp ca
li
ti
on
es ng
ti
own oa e
Metalink
D
l
d
d f
rom
on
th
e source s
id
e
9
.x
Option + one-off patch:
·
11g test database does
6865809
AND
not need to have
application schema /data
ii)
Destination DB
Real Application Testing
10.2.0.4 + one-off patch:
6877038
10.2.0.2.0
10.2.0.4.0
i)
11.1.0.6 + one off
patch: 6865809 AND
One-off patch can be
Downloaded from
·
Patch Required for
source, destination and
ii)
10.2.0.2 + one off
Metalink
test databases
patch: 6903322
AND
iii) 10.2.0.4 + one off
patch: 6877038
·
11g test database does
not need to have
application schema /data
10.2.0.2.0
11.1.0.6.0
11.1.0.6 + one off
patch: 6865809
AND
i)
One-off patch can be
Downloaded from
Metalink
·
Test DB not required,
ii)
pa c
t h 6903322
10.2.0.2 + one off
:
11.1.0.6 is the
destination db upgraded
to
11.1.0.6
11.1.0.7
i)
11.1.0.6 + one off
patch: 6865809
AND
One-off patch can be
Downloaded from
Metalink
·
No patches are needed
on the source side 9.x
·
ii
)
11 1 0 7
.
– no pa c
required
.
.
t
h
Test DB not required,
.
destination db upgraded
to
11 1 0 7 i
.
.
s
th
e
info@sagelogix.com 16
info@sagelogix.com
16