Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009.
-
Upload
miracle-littlehale -
Category
Documents
-
view
215 -
download
0
Transcript of Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009.
Real Application Testing
Spreker:
Datum:
Patrick Munne, Senior Oracle DBA
17 april 2009
2© 2009 Copyright Transfer Solutions BV
Real Application Testing
Database Replay
SQL Performance Analyzer
3© 2009 Copyright Transfer Solutions BV
Database Replay: Overview
4© 2009 Copyright Transfer Solutions BV
Database Replay
Met behulp van database replay kan de performance worden bekeken in scenario’s als:
Database upgrade
Single instance -> RAC
Filesystem -> ASM
OS -> OS bijv: Windows -> Linux
5© 2009 Copyright Transfer Solutions BV
Database Replay: Voorbeeld
Voorbeeld:
1. Capture van de productie omgeving.
2. Worden meer dan 2 miljoen records aangemaakt (met behulp van SwingBench)
3. Replay op de test omgeving
6© 2009 Copyright Transfer Solutions BV
Database Replay: Capture
7© 2009 Copyright Transfer Solutions BV
Database Replay: Replay
8© 2009 Copyright Transfer Solutions BV
Database Replay:Stap 1 -> Capture
Directory voor de binary files (capture files)
Gebruik maken van filters
Capture Rapport
9© 2009 Copyright Transfer Solutions BV
Database Replay: Stap 2 -> Process
Process de capture files
Configureer de replay clients (WRC)
10© 2009 Copyright Transfer Solutions BV
Database Replay: Stap 3 -> Replay
Synchronization
11© 2009 Copyright Transfer Solutions BV
Database Replay: Stap 4 -> Analysis & Reporting
Replay Rapport
AWR, ASH en ADDM
12© 2009 Copyright Transfer Solutions BV
SQL Performance Analyzer: Overview
13© 2009 Copyright Transfer Solutions BV
SQL Performance Analyzer:
Met behulp van SQL Performance Analyzer kan de performance worden bekeken in scenario’s als
Database upgrades
Parameter aanpassingen
Schema veranderingen
Optimizer Statistics
14© 2009 Copyright Transfer Solutions BV
SQL Performance Analyzer: Voorbeeld
Impact van een index bekijken met behulp van de SQL Performance Analyzer
15© 2009 Copyright Transfer Solutions BV
SQL Performance Analyzer: Film Uitwerking SQL Performance
Analyzer
16© 2009 Copyright Transfer Solutions BV
SQL Performance Analyzer: Opties
Optimizer Upgrade Simulation
Parameter Change
Guided Workflow
17© 2009 Copyright Transfer Solutions BV
SQL Performance Analyzer:
Stap 1 -> Execution
SQL opslaan in een SQL Tuning Set
De SQL Tuning Set exporteren en importeren in de test omgeving
18© 2009 Copyright Transfer Solutions BV
SQL Performance Analyzer:
Stap 2 -> Execute SQL
Zorg in de test omgeving voor een zelfde situatie als productie
Importeer de SQL Tuning Set
Run de SQL tuning set
19© 2009 Copyright Transfer Solutions BV
SQL Performance Analyzer:
Stap 3 -> Make Change
Creëer een index
Refresh statistieken
Parameter aanpassing
Etc.
20© 2009 Copyright Transfer Solutions BV
SQL Performance Analyzer:
Stap 4 -> Execute SQL
Draai opnieuw de SQL uit de SQL Tuning Set
21© 2009 Copyright Transfer Solutions BV
SQL Performance Analyzer:
Stap 5 -> Compare en Rapport
Analyseer het rapport
Een diepere analyse kan gedaan worden met: SQL Access Advisor SQL Tuning Advisor
22© 2009 Copyright Transfer Solutions BV
Real Application Testing
Wat gaat dat betekenen voor de performance?
&V r a g e n
A n t w o o r d e n
TRANSFER SOLUTIONSICT Advisering | Ontwikkeling | Beheer | Opleidingen