Escolar Documentos
Profissional Documentos
Cultura Documentos
Business Benefit
Lower cost
Lower risk
Deploy
Test
Change
Remediate
Database Replay
Database Replay
Errors
Data divergence
Performance divergence
Client
Client
Changes
Unsupported
Middle Tier
Changes Supported
Database Upgrades, Patches
Recording of
External Client
Requests
Schema, Parameters
RAC nodes, Interconnect
OS Platforms, OS Upgrades
CPU, Memory
Storage
Etc.
Storage
80
60
24
40
20
20
5
20
4
0
Install & Setup
0
Understand
Application
Usage
0
Identify Key
Transactions
2
Generate
Workload
5
Run Test
LoadRunner
DB Replay
Why DB Replay?
150
Days
From:
To:
Artificial workloads
Production workloads
Partial workflows
Complete workflows
Months of development
Days of development
Manual intensive
Automated
High risk
Low risk
10
Days
Test (11.1)
Replay Driver
Mid-Tier
Storage
Storage
Capture
Process
Replay
Analysis &
Reporting
Production System
Client
Client
File System
Minimal performance
overhead for capture
Middle Tier
File 1
File 2
File n
Storage
Capture Options
Workload can be filtered to customize what is captured
Filter Types
Inclusion Filters: Specifies which sessions should be captured
Exclusion Filters: Specifies which sessions should NOT be
captured
Filter Attributes: Workload capture can be filtered using any of the
following session attributes
User
Program
Module
Action
Service
Session ID
11
Test System
12
File 1
File 1
File 2
File 2
File n
File n
Metadata
Capture Files
Replay Files
13
Test System
Replay Driver
File 1
File 2
File n
Metadata
Replay Files
Replay Options
Unsynchronized Replay
14
Replay Options
15
Replay Options
Number of Replay Clients
Configurable by user
Client Calibration Advisor recommends number of replay
clients needed for specific workload
Replay clients are multithreaded clients that can drive multiple
workload sessions each
16
17
18
Current Restrictions
Database Replay does not support the following
features in the current release
19
Best Practices
Capture
Replay
20
Process Workload
SQL Performance
Analyzer (SPA)
21
23
From:
To:
Synthetic workload
Production workload
Partial workload
Complete workload
High risk
Low risk
Client
Client
Production Test
Re-execute SQL Queries
Middle Tier
Capture SQL
Oracle DB
Storage
24
SPA Benefits
SPA can help with any change that impacts SQL execution plan
DB upgrades
Optimizer statistics refresh
New indexes, Materialized Views, Partitions, etc.
Integrated with SQL Tuning Advisor and SQL Plan Baselines for
regression remediation
25
Clients
Test (11.1)
Mid-Tier
Storage
Storage
Capture
SQL
26
Transport
SQL
Execute SQL
Pre-change
Execute SQL
Post-change
Compare
Perf
STS includes:
Cursor Cache
Incremental Capture
27
SQL Text
Bind variables
Execution plans
Execution statistics
Cursor Cache
Production Database
28
Export/Import
Test Database
Test Execute
Save Result
DDL/DML skipped
nge
e Cha
r
o
f
e
B
29
Test Execute
Completed
nge
e Cha
r
o
f
e
B
e
Chang
After
30
Completed
nge
e Cha
r
o
f
e
B
e
Chang
After
Elapsed Time
CPU Time
Optimizer Cost
Buffer Gets
Compare
SQL Performance
Analysis Report
31
SPA Report
32
33
Best Practices
Workload Capture
Use incremental STS capture
Peak or representative workloads can be more accurately captured
with this mechanism
Test system
Run SPA on test system instead of production as analysis can be
resource intensive
Ensure test system has similar configuration and comparable
optimizer statistics as production
Performance comparison
Use several different metrics, e.g., elapsed time, CPU time, etc., to
compare pre- and post-change performance for reliable results
Regression remediation
Use SQL Tuning Advisor and SQL Plan Baselines to fix regressions
34
35