find fix and_validate

277
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 1 Maximize your Database Performance Find, Fix and Validate Jesús Leonardo Robles DB & O Business Development Manager Valentín Leonard Tabacaru Presales Technology Consultant

Upload: oracle-espana

Post on 28-Aug-2014

896 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 1

Maximize your Database Performance Find, Fix and Validate

Jesús Leonardo Robles DB & O Business Development Manager

Valentín Leonard Tabacaru Presales Technology Consultant

Page 2: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 2

Agenda

Database Performance Analysis

– Challenges and Solutions

1.- Find

2.- Fix

3.- Validate

Resources

Page 3: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 3

Database Performance Analysis Challenges

•Reported by end users

•Discovered by daily checks

•Reactive to end-users

Find?

•Relate symptom to possible cause

•Relate possible cause to probable metric

•Implement change

Fix? •Did it work?

•End-user feedback?

•Run reports on metric

Validate?

•Will it occur again?

•Custom script to watch for the metric

•Complex alerting and notification

Track?

1

2

3

4

Page 4: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 4

• For problem diagnosis use ADDM, EM Performance

• ADDM reveals significant problems including problematic SQL details and recommendations improve to performance

• ADDM family – Compare Period, Real-Time ADDM

1 – Find: Diagnostics

Page 5: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 5

Boost Administrator Productivity

Eliminate Performance Bottlenecks

Lower IT Management Costs

Deliver Higher Quality of Service

Automatic Performance Diagnostics Maximize Performance With Self-Managing Database

• Sustain maximum performance with self-managing database

• Top-down analysis using Automatic Workload Repository snapshots

• Real-time performance analysis with Automatic Database Diagnostic Monitor

• Resolve performance issues faster with drill-down root-cause analysis

• Classification tree based on Oracle performance tuning expertise

• Performance expert; now a RAC specialist too in Oracle Database 11g

Automatic Workload

Repository Snapshots

Performance &

Management

Advisors

High

Load

SQL

RAC

Issues

IO / CPU

Issues

Self-Diagnostic

Engine

Page 6: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 6

Performance Issues Automatically Diagnosed by ADDM

Top SQL I/O Issues

Parsing Configuration

Issues

Application Usage

Excessive Logon/Logoff

Undersized Memory

Hot Blocks and Objects

RAC Service Issues

Locks & ITL contention

Checkpoint causes

PL/SQL, Java Time

Page 7: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 7

Real-Time ADDM—Architecture

• Makes a lightweight connection without acquiring additional locks and

resources, bypassing the SQL layer through the agent

• Also attempts to initiate standard JDBC connection

• Data returned by either connection is analyzed by Real-Time ADDM

EM Agent

JDBC Connection

Diagnostic Connection

ADDM

Analysis Database

Resource Constraints

Hangs

Memory Issues

Resource Limits Reached

Deadlocks

Top Issues Identified by

Real-Time ADDM

Page 8: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 8

Real-Time ADDM

Page 9: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 9

Compare Period ADDM

• Full ADDM analysis across two AWR snapshot periods

• Detects causes, measure effects, then correlates them

• Causes: workload changes, configuration changes

• Effects: regressed SQL, reach resource limits (CPU, I/O, memory, interconnect)

• Makes actionable recommendations along with quantified impact

AWR Snapshot

Period 1

AWR Snapshot

Period 2 Analysis Report Compare

Period ADDM

SQL Commonality

Regressed SQL

I/O Bound

Undersized SGA

Page 10: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 10

Compare Period ADDM: Method

• Identify what changed

• DB configurations, workload changes

• Quantify performance differences

• Uses DB Time as basis for measuring performance

• Identify root cause

• Correlate performance differences with changes

Did the Buffer cache get smaller?

Why is there 10% new SQL?

Why Top SQL increased by 45%?

Read I/O are up by 55%, why?

Did a buffer cache reduction

cause a read I/O increase?

Page 11: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 11

Compare Period – 3 Modes

One snapshot offset

System moving window

Customized period

Page 12: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 12

Compare Period: Report

Page 13: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 13

Active Session History (ASH)

All ‘Active’ sessions captured every second

• Foregrounds and backgrounds are sampled

• Active foregrounds contribute to DB Time

In-memory: V$ACTIVE_SESSION_HISTORY

• Sampling interval = 1 second

On-disk: DBA_HIST_ACTIVE_SESS_HISTORY

• Sampling interval = 10 seconds

ASH is a system-wide record of database activity

• A FACT table with multiple dimensions that help diagnose performance issues

Page 14: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 14

Drilling into Logical Dimensions

ASH

SQL

PL/SQL

Resource Usage

Session Identifiers

Session Attributes

SQL

SQL ID

Plan Hash

Operation

OpCode

PL/SQL

PL/SQL

Top Level PL/SQL

Resources

Wait Class

Wait Event

Object

Blocking Session

Identifiers

Instance

Services

User Session

Parallel Process

Program

Session Type

Attributes

Cons. Group

Module

Action

Client

Trans. ID

Page 15: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 15

ASH Analytics

Flexible Time Picker

Flexible Activity Chart

Flexible Top Chart Flexible Top Chart

Page 16: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 16

• Seamless integration between Find and Fix

• In-depth analysis and recommendation of the fix

• Gather statistics for this example…

• How would we validate this changes?

2 – Fix: Tuning

Page 17: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 17

SQL Problems

Bind-sensitive SQL with bind peeking

Literal usage

CURSOR SHARING

Cursor Sharing

Issues

Hardware resource crunch

Contention (row lock contention, block update contention)

Data fragmentation

Resource &

Contention

Issues

RESOURCES

Stale/Missing statistics

Incomplete statistics

Improper optimizer configuration

Upgraded Database: new optimizer

Changing statistics

Rapidly changing data

STATISTICS

Optimizer

Statistics Issues

Missing access structures

Poorly written SQL statements Application

Issues

APPLICATIONS

Not parallelized (no scaling to large data)

Improperly parallelized (partially parallelized, skews) Parallelism

Issues

PARALLELISM

Page 18: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 18

SQL Tuning Advisor

SQL Tuning Advisor

Identifies alternate execution plans using

real-time and historical performance data

Recommends parallel profile if it will improve SQL performance significantly (2x or more)

SQL Profiling

Statistics Analysis

Access Path Analysis

SQL Restructure Analysis

Alternative Plan Analysis

Parallel Query Analysis

Automatic Tuning Optimizer

Administrator

SQL Tuning

Recommendations

Gather Missing or Stale Statistics

Create a SQL Profile

Add Missing Access Structures

Modify SQL Constructs

Adopt Alternative

Execution Plan

Create Parallel SQL Profile

SQL Tuning Advisor

Page 19: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 19

Application Tuning Automatic SQL Tuning

Automatic SQL Tuning

•Captures high-load SQL

•Tunes SQL using SQL Profiles

•Implements improved SQL plans (optional)

Performance benefit of advice

provided

SQL Profiling tunes execution

plan without changing SQL

text

Enables transparent tuning for packaged

applications

Applications

High-Load

Packaged Apps + SQL Profile

Customizable Apps + SQL Advice

Customizable Apps + Indexes & MVs + Partitions

Tuned SQL

Automatic Tuning Optimizer

Page 20: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 20

SQL Access Advisor

Automatic Tuning

Optimizer

SQL Cache

SQL Tuning

sets SQL Access Advisor

Indexes

Materialized Views

Materialized Views

Logs

Partitioned Objects

SQL Access Advisor

• Capture SQL Workload from multiple sources

Set filters on the Workload

SQL Access Recommendations

Page 21: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 21

Real-Time SQL Monitoring Looking Inside SQL Execution

Guides tuning efforts Automatically

monitors

long running SQL

Enabled

out-of-the-box

with no performance impact

Monitors

SQL execution

Exposes monitoring statistics

Global execution level

Plan operation level

Parallel Execution level

Page 22: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 22

SQL Monitoring Details Expensive Hash Join

Page 23: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 23

Real-Time PL/SQL Monitoring

PL/SQL execution no longer a “black box”

•Answers questions like “why did my DBMS_STATS job take twice as long this time?”

Shows global (PL/SQL) and SQL level statistics

Each SQL called by PL/SQL recursively

monitored

Drill-down to slow SQL for diagnosing

unexpected PL/SQL behavior

Page 24: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 24

Performance Diagnostics Active Reports

Interactive reports for

off-line analysis

Drill-downs for detailed analysis

Can be emailed

for analysis

Does not require Oracle Enterprise

Manager installation

Page 25: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 25

D E M O N S T R A T I O N

Automatic SQL Tuning

Page 26: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 26

Page 27: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 27

Page 28: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 28

Page 29: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 29

Page 30: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 30

Page 31: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 31

Page 32: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 32

Page 33: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 33

Page 34: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 34

Page 35: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 35

Page 36: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 36

Page 37: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 37

Page 38: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 38

Page 39: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 39

Page 40: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 40

Page 41: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 41

Page 42: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 42

Page 43: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 43

Page 44: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 44

Page 45: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 45

Page 46: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 46

Page 47: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 47

Page 48: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 48

Page 49: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 49

Page 50: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 50

Page 51: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 51

Page 52: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 52

Page 53: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 53

Page 54: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 54

Page 55: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 55

Page 56: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 56

Page 57: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 57

Page 58: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 58

Page 59: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 59

Page 60: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 60

Page 61: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 61

Page 62: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 62

Page 63: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 63

Page 64: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 64

Page 65: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 65

Page 66: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 66

Page 67: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 67

Page 68: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 68

Page 69: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 69

Page 70: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 70

Page 71: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 71

Page 72: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 72

Page 73: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 73

Page 74: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 74

Page 75: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 75

Page 76: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 76

Page 77: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 77

Page 78: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 78

Page 79: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 79

Page 80: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 80

Page 81: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 81

Page 82: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 82

Page 83: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 83

Page 84: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 84

Page 85: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 85

Page 86: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 86

Page 87: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 87

Page 88: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 88

Page 89: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 89

Page 90: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 90

Page 91: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 91

Page 92: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 92

Page 93: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 93

Page 94: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 94

Page 95: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 95

Page 96: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 96

D E M O N S T R A T I O N

Monitoring SQL Statements

Page 97: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 97

Page 98: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 98

Page 99: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 99

Page 100: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 100

Page 101: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 101

Page 102: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 102

Page 103: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 103

Page 104: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 104

Page 105: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 105

Page 106: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 106

Page 107: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 107

Page 108: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 108

Page 109: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 109

Page 110: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 110

Page 111: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 111

Page 112: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 112

Page 113: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 113

Page 114: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 114

Page 115: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 115

Page 116: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 116

Page 117: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 117

Page 118: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 118

Page 119: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 119

Page 120: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 120

Page 121: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 121

Page 122: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 122

Page 123: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 123

Page 124: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 124

Page 125: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 125

Page 126: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 126

Page 127: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 127

Page 128: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 128

Page 129: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 129

Page 130: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 130

Page 131: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 131

Page 132: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 132

Page 133: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 133

Page 134: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 134

Page 135: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 135

Page 136: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 136

Page 137: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 137

Page 138: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 138

Page 139: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 139

Page 140: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 140

Page 141: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 141

Page 142: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 142

Page 143: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 143

Page 144: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 144

Page 145: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 145

Page 146: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 146

Page 147: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 147

Page 148: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 148

Page 149: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 149

Page 150: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 150

Page 151: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 151

Page 152: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 152

Page 153: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 153

Page 154: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 154

Page 155: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 155

Page 156: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 156

Page 157: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 157

Page 158: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 158

Page 159: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 159

Page 160: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 160

Page 161: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 161

Page 162: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 162

Page 163: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 163

Page 164: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 164

Page 165: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 165

Page 166: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 166

Page 167: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 167

Page 168: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 168

Page 169: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 169

Page 170: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 170

Page 171: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 171

Page 172: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 172

Page 173: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 173

• End-to-end SPA workflow using Optimizer Statistics

• Seamless integration from Find to Fix to Validate to Implement with confidence

• No more guesswork

3 – Validate: SPA

Page 174: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 174

Real Application Testing SQL Performance Analyzer (SPA)

SQL Workload

STS

SQL Plans + Run-time Stats

Pre-Change Trial

SQL Plans + Run-time Stats

Post-Change Trial

Compare SQL

Performance Analysis Report

• Test and predict impact of system changes on SQL query performance

• Analyze performance changes for improvements and regressions

• Comprehensive performance analysis and reporting

• Re-execute SQL queries in the given environment

• End-to-end solution: STS, SQL Plan Baselines, and SQL Tuning Advisor

Page 175: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 175

SPA Analysis Report Example

4

1

3 2

5

Page 176: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 176

SPA Report Regressed SQL Statements

Page 177: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 177

Usage Scenario: Evaluating Changes On Production

Page 178: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 178

+Parameter

Change

Fix Regression thru

SPM

+Add

indexes

Using SPA For Changes in Production: Example

Fix Regression

SQL Profile

Prod

+SQL

Profile

+New Stats

Change

+Partitioning

+Validate

Tuning

Parameter change

was bad in this case

And so on…

+Index

Unusable

• Bubble following the arrow indicates the

delta change on Production

• SPA is used for testing every change

Page 179: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 179

When to use SPA?

• Optimizer Statistics

• Database parameter changes

• Database schema changes (e.g., add/drop indexes)

• Implementation of tuning recommendations

• I/O subsystem changes (e.g., ASM, Database Machine)

• For consolidation (schema, CDB/PDB)

• On test, standby, and production environments

• Extended to home-grown scripts, application specific database changes, third-party testing tools using STS compare analysis

• Supports most applications - EBS, SAP, Siebel, home-grown, etc

SPA Provides Broad Testing Coverage

• My Oracle Support (MOS) Note: 560977.1

• 9.2/10.1 10.2 or 11g or 12 releases

• 10.2.0.x 10.2.0.y or 11g or 12 releases

SPA Provides Testing in Various Database Releases

Page 180: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 180

D E M O N S T R A T I O N

SQL Access Advisor & SQL Performance Analyzer

Page 181: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 181

Page 182: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 182

Page 183: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 183

Page 184: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 184

Page 185: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 185

Page 186: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 186

Page 187: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 187

Page 188: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 188

Page 189: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 189

Page 190: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 190

Page 191: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 191

Page 192: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 192

Page 193: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 193

Page 194: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 194

Page 195: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 195

Page 196: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 196

Page 197: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 197

Page 198: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 198

Page 199: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 199

Page 200: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 200

Page 201: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 201

Page 202: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 202

Page 203: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 203

Page 204: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 204

Page 205: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 205

Page 206: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 206

Page 207: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 207

Page 208: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 208

Page 209: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 209

Page 210: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 210

Page 211: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 211

Page 212: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 212

Page 213: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 213

Page 214: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 214

Page 215: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 215

Page 216: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 216

Page 217: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 217

Page 218: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 218

Page 219: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 219

Page 220: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 220

Page 221: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 221

Page 222: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 222

Page 223: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 223

Page 224: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 224

Page 225: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 225

Page 226: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 226

Page 227: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 227

Page 228: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 228

Page 229: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 229

Page 230: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 230

Page 231: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 231

Page 232: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 232

Page 233: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 233

Page 234: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 234

Page 235: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 235

Page 236: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 236

Page 237: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 237

Page 238: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 238

Page 239: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 239

Page 240: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 240

Page 241: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 241

Page 242: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 242

Page 243: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 243

Page 244: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 244

Page 245: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 245

Page 246: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 246

Page 247: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 247

Page 248: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 248

Page 249: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 249

Page 250: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 250

Page 251: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 251

Page 252: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 252

Page 253: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 253

Page 254: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 254

Page 255: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 255

Page 256: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 256

Page 257: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 257

Page 258: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 258

Page 259: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 259

Page 260: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 260

Page 261: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 261

Page 262: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 262

Page 263: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 263

Page 264: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 264

Page 265: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 265

Page 266: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 266

Page 267: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 267

Page 268: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 268

Page 269: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 269

Page 270: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 270

Page 271: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 271

Page 272: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 272

Page 273: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 273

Page 274: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 274

Advanced Databases Performance Analysis Solution

• Built-in, self-diagnostics engine: Automatic Database Diagnostics Monitor (ADDM) (Diagnostics Pack)

Find

• Automates complex and time consuming task of application tuning (Tuning Pack)

Fix • Validates tuning and “what-if” activities (Real Application Testing)

Validate

• Extend EM out-of-box metrics - Can be defined for any target type, including applications (Metric Extensions)

Track

Page 275: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 275

Resources

Oracle Enterprise Manager 12c:

http://www.oracle.com/us/products/enterprise-manager

Oracle Enterprise Manager 12c Database Management

http://www.oracle.com/technetwork/oem/db-mgmt

Database Manageability and Real Application Testing:

http://www.oracle.com/technetwork/database/manageability

Oracle Enterprise Manager on Beehive Online

Downloadable Technical Assets

[email protected] mailing list for support

Page 276: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 276

Page 277: Find fix and_validate

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 277