Professional Documents
Culture Documents
Fred Louis
Oracle Enterprise Architect
Set Up Test
Environments
Provision for
Production
Set Up Test
Environments
Provision for
Production
Business Benefit
Deploy
Test
Change
Lower cost
Lower risk
Features
Database Replay
SQL Performance Analyzer (SPA)
Remediate
Database Replay
Testing Today
Production 1,000s of Real Online Users
PRODUCTION
Testing Today
Test 1-2 testers trying to be 1,000s of users
PRODUCTION
TEST
Database Replay
Workload for 1,000s of online users captured
Capture
Workload
PRODUCTION
Database Replay
Workload for 1,000s of online users replayed
Capture
Replay
Workload
PRODUCTION
TEST
Database Replay
Test your system changes at production levels
Capture
Replay
Workload
PRODUCTION
TEST
Errors
Data divergence
Performance divergence
Supported Changes
Client
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
Test (11.1)
Replay Driver
Mid-Tier
Storage
Storage
Capture
Process
Replay
Analysis &
Reporting
D E M O N S T R A T I O N
Database Replay
Client
Client
Client
File System
Minimal overhead
Avoids function call when possible
Buffered I/O
Middle Tier
File 1
File 2
File n
Storage
Capture Options
Workload can be filtered to customize
what is captured
Inclusion Filters: Specifies which
sessions should be captured
Exclusion Filters: Specifies which
sessions should NOT be captured
Filter Attributes: Any of the following
session attributes can be used for
filtering
User
Program
Module
Action
Service
Session ID
Test System
File 1
File 1
File 2
File 2
File n
File n
Metadata
Capture Files
Replay Files
Replays workload
preserving timing,
concurrency and
dependencies of the
capture system
Replay Client is a special
program that consumes
processed workload and
sends requests to the
replay system
Clients interpret captured
calls into sequence of OCI
calls and submit to
database
For high concurrency
workloads, it may be
necessary to start multiple
clients
Test System
OCIStmtPrepare()
OCIBindByName()
OCIAttrSet()
OCIStmtExecute()
Replay Clients
File 1
File 2
File n
Metadata
Replay Files
Replay Options
Synchronized Replay (Default)
Synchronization controls
Data Divergence
Performance Reporting
Current Restrictions
Database Replay does not support the
following features in the current release
SQL Loader direct path load, import/export
OCI based object navigation (ADTs) and REF
binds
Streams, non-PL/SQL based AQ
Distributed transactions, remote
describe/commit operations
Flashback queries
Shared server
80
60
40
24
20
20
20
4
0
Install & Setup
0
Understand
Application
Usage
0
Identify Key
Transactions
2
Generate
Workload
5
Run Test
LoadRunner
DB Replay
Test Coverage
1-5% of workflow
100% of workflow
Test Effort
SQL Performance
Analyzer (SPA)
Client
Client
Production Test
Re-execute SQL Queries
Middle Tier
Capture SQL
Oracle DB
Storage
Clients
Storage
Storage
Capture
SQL
Transport
SQL
Execute SQL
Pre-change
Execute SQL
Post-change
Compare
Perf
Cursor Cache
Incremental Capture
Production Database
STS includes:
SQL Text
Bind variables
Execution plans
Execution statistics
Cursor Cache
Production Database
Export/Import
Test Database
Test Execute
Save Result
DDL/DML skipped
e Cha
Befor
nge
Test Execute
Completed
e Cha
Befor
nge
ge
Chan
After
Completed
e Cha
Befor
nge
ge
Chan
After
Elapsed Time
CPU Time
Optimizer Cost
Buffer Gets
Compare
SQL Performance
Analysis Report
D E M O N S T R A T I O N
SPA Report
To:
Synthetic workload
Production workload
Partial workload
Complete workload
High risk
Low risk
David Mitchell
Senior Vice President, OVUM
Source: Oracle Real ApplicationTesting business agility through superior testing, Jan 2008
Set Up Test
Environments
Provision for
Production
Provisioning Automation
Deployment Cycle
Testing and Staging
Test
users
2
Create reference system
Production
1
4
5
Scale back
3
Provision Production
system
Summary