23
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

Embed Size (px)

Citation preview

Page 1: 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

Page 2: 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

Page 3: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

3© 2009 Copyright Transfer Solutions BV

Database Replay: Overview

Page 4: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

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

Page 5: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

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

Page 6: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

6© 2009 Copyright Transfer Solutions BV

Database Replay: Capture

Page 7: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

7© 2009 Copyright Transfer Solutions BV

Database Replay: Replay

Page 8: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

8© 2009 Copyright Transfer Solutions BV

Database Replay:Stap 1 -> Capture

Directory voor de binary files (capture files)

Gebruik maken van filters

Capture Rapport

Page 9: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

9© 2009 Copyright Transfer Solutions BV

Database Replay: Stap 2 -> Process

Process de capture files

Configureer de replay clients (WRC)

Page 10: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

10© 2009 Copyright Transfer Solutions BV

Database Replay: Stap 3 -> Replay

Synchronization

Page 11: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

11© 2009 Copyright Transfer Solutions BV

Database Replay: Stap 4 -> Analysis & Reporting

Replay Rapport

AWR, ASH en ADDM

Page 12: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

12© 2009 Copyright Transfer Solutions BV

SQL Performance Analyzer: Overview

Page 13: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

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

Page 14: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

14© 2009 Copyright Transfer Solutions BV

SQL Performance Analyzer: Voorbeeld

Impact van een index bekijken met behulp van de SQL Performance Analyzer

Page 15: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

15© 2009 Copyright Transfer Solutions BV

SQL Performance Analyzer: Film Uitwerking SQL Performance

Analyzer

Page 16: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

16© 2009 Copyright Transfer Solutions BV

SQL Performance Analyzer: Opties

Optimizer Upgrade Simulation

Parameter Change

Guided Workflow

Page 17: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

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

Page 18: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

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

Page 19: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

19© 2009 Copyright Transfer Solutions BV

SQL Performance Analyzer:

Stap 3 -> Make Change

Creëer een index

Refresh statistieken

Parameter aanpassing

Etc.

Page 20: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

20© 2009 Copyright Transfer Solutions BV

SQL Performance Analyzer:

Stap 4 -> Execute SQL

Draai opnieuw de SQL uit de SQL Tuning Set

Page 21: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

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

Page 22: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

22© 2009 Copyright Transfer Solutions BV

Real Application Testing

Wat gaat dat betekenen voor de performance?

Page 23: Real Application Testing Spreker: Datum: Patrick Munne, Senior Oracle DBA 17 april 2009

&V r a g e n

A n t w o o r d e n

[email protected]

TRANSFER SOLUTIONSICT Advisering | Ontwikkeling | Beheer | Opleidingen