Ash and AWR Performance Data. Kellyn Pot Vin Sr. Technical Consultant Enkitec

Similar documents
Oracle Database 12c: Performance Management and Tuning NEW

Top Down Performance Management with OEM Grid Control Or How I learned to stop worrying and love OEM Grid Control John Darrah, DBAK

Collecting Oracle AWR Reports for Database Infrastructure Evaluator Tool (DIET) by Hitachi Data Systems

Basic Tuning Tools Monitoring tools overview Enterprise Manager V$ Views, Statistics and Metrics Wait Events

Proactive Performance Monitoring Using Metric Extensions and SPA

Oracle Database 12c: Performance Management and Tuning NEW

Oracle Database 11g: SQL Tuning Workshop

Oracle Database 11g: SQL Tuning Workshop Release 2

Oracle Database 11 g Performance Tuning. Recipes. Sam R. Alapati Darl Kuhn Bill Padfield. Apress*

Oracle Database 11g: Performance Tuning DBA Release 2

Oracle Database 10g. Page # The Self-Managing Database. Agenda. Benoit Dageville Oracle Corporation benoit.dageville@oracle.com

1. This lesson introduces the Performance Tuning course objectives and agenda

Monitoring and Diagnosing Oracle RAC Performance with Oracle Enterprise Manager

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Performance Tuning DBA Release 2. 5 Jours [35 Heures]

Programa de Actualización Profesional ACTI Oracle Database 11g: SQL Tuning Workshop

Monitoring and Diagnosing Oracle RAC Performance with Oracle Enterprise Manager. Kai Yu, Orlando Gallegos Dell Oracle Solutions Engineering

Oracle Database 10g: New Features for Administrators

How To Test For A Test On A Test Server

Oracle Database 11g: New Features for Administrators 15-1

Real Application Testing. Fred Louis Oracle Enterprise Architect

Maximizing Performance for Oracle Database 12c using Oracle Enterprise Manager

Oracle Database 12c: Administration Workshop NEW

Exploiting Oracle Tools and Utilities for Monitoring and Testing Oracle RAC OTN Tour

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

Why Standardize on Oracle Database 11g Next Generation Database Management. Thomas Kyte

Customer evaluation guide Toad for Oracle v12 Database administration

DBA Best Practices: A Primer on Managing Oracle Databases. Leng Leng Tan Vice President, Systems and Applications Management

Oracle 11g Database Administration

Oracle Database 12c: Administration Workshop NEW. Duration: 5 Days. What you will learn

Oracle. Brief Course Content This course can be done in modular form as per the detail below. ORA-1 Oracle Database 10g: SQL 4 Weeks 4000/-

DBACockpit for Oracle. Dr. Ralf Hackmann SAP AG - CoE EMEA Tech Appl. Platf. DOAG St. Leon-Rot 02. July 2013

Oracle Enterprise Manager 12c New Capabilities for the DBA. Charlie Garry, Director, Product Management Oracle Server Technologies

Expert Oracle Enterprise

An Oracle White Paper February, Oracle Database In-Memory Advisor Best Practices

Keep It Simple - Common, Overlooked Performance Tuning Tips. Paul Jackson Hotsos

Oracle Database 11g: New Features for Administrators

Oracle Database 12c: Admin, Install and Upgrade Accelerated

Oracle vs. SQL Server. Simon Pane & Steve Recsky First4 Database Partners Inc. September 20, 2012

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

Evidence-based Best Practices for JD Edwards EnterpriseOne

Safe Harbor Statement

Using Database Diagnostic and Tuning Packs through Oracle Enterprise Manager 12c. Eric Siglin OCM, OCP, CTT+ Senior Oracle DBA

DBA Cockpit for Oracle

ORACLE DATABASE ADMINISTRATOR RESUME

COURCE TITLE DURATION. Oracle Database 11g: Administration Workshop I

Managing Database Performance. Copyright 2009, Oracle. All rights reserved.

Oracle Database 12c Administration Workshop

Oracle Database 10g: Administration Workshop II Release 2

Oracle Database Performance Management Best Practices Workshop. AIOUG Product Management Team Database Manageability

D12C-AIU Oracle Database 12c: Admin, Install and Upgrade Accelerated NEW

Module 15: Monitoring

Oracle Database. 2 Day + Performance Tuning Guide 12c Release 1 (12.1) E

Product Review: James F. Koopmann Pine Horse, Inc. Quest Software s Foglight Performance Analysis for Oracle

MyOra 3.5. User Guide. SQL Tool for Oracle. Kris Murthy

Top 10 Oracle SQL Developer Tips and Tricks

Oracle Database: SQL and PL/SQL Fundamentals NEW

Performance Tuning and Optimizing SQL Databases 2016

Oracle Enterprise Manager 13c Cloud Control

Microsoft SQL Server: MS Performance Tuning and Optimization Digital

Proactive database performance management

Oracle Database 11g: Administration Workshop II DBA Release 2

An Oracle White Paper November SQL Plan Management in Oracle Database 11g

The Power of 11g Automatic SQL Tuning Julian Dontcheff, Nokia, OCM

Oracle Database B

Optimizing Your Database Performance the Easy Way

PERFORMANCE TUNING ORACLE RAC ON LINUX

Oracle DBA Course Contents

Oracle Database In-Memory A Practical Solution

Oracle Database In-Memory The Next Big Thing

SQL Server Performance Tuning and Optimization

Performance Tuning with Oracle Enterprise Manager Session # S300610

Oracle Database 11g: Administration Workshop I

2013 OTM SIG CONFERENCE Performance Tuning/Monitoring

Oracle s SQL Performance Analyzer

Risk-Free Administration for Expert Database Administrators

Delivering Oracle Success. Automatic SQL Tuning in Oracle Database 10g and 11g. Lucy Feng. RMOUG Training Days February 15-17, 2011

SQL Sentry Essentials

Performance And Scalability In Oracle9i And SQL Server 2000

About the Author About the Technical Contributors About the Technical Reviewers Acknowledgments. How to Use This Book

Tuning poor performing SQL s Using Oracle 10g Enterprise Manager s Automatic SQL Tuning Advisor

Oracle Database 11g: Administration Workshop II DBA Release 2

A Decade of Oracle Database Manageability

Mind Q Systems Private Limited

SQL Server 2012 Database Administration With AlwaysOn & Clustering Techniques

Oracle Database 11g: Administration Workshop II Release 2

Common Anti Patterns for Optimizing Big Data Oracle Databases

Oracle Database 11g: New Features for Administrators DBA Release 2

ORACLE INSTANCE ARCHITECTURE

SQL Server Training Course Content

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into

<Insert Picture Here> Oracle SQL Developer 3.0: Overview and New Features

MyOra 4.5. User Guide. SQL Tool for Oracle. Kris Murthy

Real-Time SQL Monitoring. December 2009

SolarWinds Database Performance Analyzer (DPA) or OEM?

Oracle EXAM - 1Z Oracle Database 11g Security Essentials. Buy Full Product.

Copyright 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12

Tuning Oracle on Windows for Maximum Performance on PowerEdge Servers a White Paper sponsored by Dell, Oracle and Microsoft

ORACLE DATABASE 11G: COMPLETE

Database Services for CERN

Holistic Performance Analysis of J2EE Applications

Transcription:

Ash and AWR Performance Data Kellyn Pot Vin Sr. Technical Consultant Enkitec

A Little About Me: Sr. Technical Consultant for Enkitec Multi-Platform Tuning Specialist (Lately) EM12c Specialist Oracle ACE Training Days Director for RMOUG Blog at DBAKevlar.com

Brief History ASH= Active Session History AWR= Automatic Workload Repository Introduced in Oracle 10g Evolution to statspack, requests for performance reporting improvements. Always on approach to performance metrics with requirement of non-locking collection process. Requires Management Tuning Pack License from Oracle.

AWR Repository Used not only by the AWR reports Automatic Database Diagnostic Monitor, (ADDM Reporting) SQL Tuning Advisor Segment Advisor By default, snapshots every hour. Retention is for 7 days. Both are modifiable. Snapshots can be taken at any time: EXEC DBMS_WORKLOAD_REPOSITORY.create_snapshot;

ASH Data Samples each active database session every second. Data is held in buffer in memory. Built into the Oracle kernel and accessed through the v$active_session_history view. In an AWR snapshot, 1 row in 10 from ASH buffer is placed into the AWR repository. Managed by the MMNL, (Memory Monitor Lite) Should not be used to track occurrence.

Running AWR from Enterprise Manager

Running ASH Report from EM ASH is always by time, not snapshot. Set start date and time. End date and time Generate report

HTML Format ASH

Running Reports, Command Line $ORACLE_HOME/rdbms/admin/awrrpt.sql; $ORACLE_HOME/rdbms/admin/ashrpt.sql; $ORACLE_HOME/rdbms/admin/awrsqlrpt.sql; Less Known AWR Reports: awrinfo.sql General AWR Info awrddrpt.sql Comparison report between snapshots awrblmig.sql Migrates pre-11g baseline data into 11g Baseline tables. awrgrpt.sql RAC Aware AWR Report.

AWR Info Report Snapshot Interval Information Basic Info on Instances and Nodes No User or Application Schema info. Space Usage by SYSAUX WRH$ and Non- AWR Objects, ordered by size Snapshot info and if any errors. Advisor Tasks

AWR Info Report

ASH Info Report, (cont.)

AWR and ASH in Real Life Scenario RAC, 2-nodes, Ver. 10.2.0.5 Application Waits Seen in EM Performance Page. Out of the ordinary CPU Resource usage 50 minutes of time for evaluation. AWR set to 10 min. interval on snapshots.

Run AWR for Timeline Shown in Enterprise Manager Who needs a top five when the top 2 are so impacting?

Top SQL by Elapsed Time

AWR Segment Info

Next Steps Using ASH Limiting from a 50 minute/1 hour view to more definitive view of the database a given timeline. Top SQL Top Sessions Top Waits Blocking Sessions Top Objects Waits by time during sample intervals.

Top Modules and Clients

Top SQL Statements

Blocking Sessions The Blocking Session, along with Top Object should be noted.

Next Step Kill Blocking Session? Investigate Further? Investigate SQL_ID s with AWR SQL Two SQL_ID s are in question: 4z1vnc0995bm6 b6vaxgxt4wh8v

4z1vnc0995bm6- Update

Update Cont.

B6vaxgxt4wh8v- Select

Select Cont.

Long Story Short. Subsequent ASH reports showed blocked sessions became blocking sessions. Update statement and select belong to same code. Update is executed, then large select, no commit until AFTER select is complete. Request to development to commit before select and tuning recommendation from AWR SQL_ID specific report for select statement.

Querying ASH Data Directly More defined reporting No need to pull full report Detail on waits that are of interest Join to non-awr objects Simple queries presented

V$ACTIVE_SESSION_HISTORY More Column Data in 11g than shown. Flags column is for future development. Broken down into usable sections, easier to query.

Knowing What s in the ASH Buffer Deters from making assumptions on what data is being queried. Know your samples!

Wait Events Across Nodes

Query top 10 SQL_ID s in the last 10 minutes?

SQL_ID and CPU Usage

IO Waits by Object from ASH

SQL Text with ASH SQL for most recent five minutes of sample data from ASH

SQL Results SQL_ID, SQL Text, Sample Time that Process was captured in.

Tyler Muth ASH Mining Query

ASH Mining Output Additional Options: Physical Read Averages Physical Writes, (Max/Averages) Redo Info Logon Info Hard Parsing, etc.

Best Practice When Querying ASH Data Keep it Simple and don t reinvent the wheel. Samples are an alias for time, not for counts. Understand what is valuable and compare to packaged reports. Be aware on RAC of node specific data. Take care when querying Obj#, File# and Block#, (still issues in different versions ) Check the time that is available in buffer, don t assume!

AWR/ASH Links/Blogs Karl Arao: http://karlarao.wordpress.com Tyler Muth: http://tylermuth.wordpress.com/ Kyle Hailey, John Beresniewicz, Graham Wood: http://ashmasters.com/ Mine- For the Love of ASH and AWR http://dbakevlar.com/2011/02/for-thelove-of-awr-and-ash/

QUESTIONS Email: dbakevlar@gmail.com Company: http://enkitec.com Website: http://dbakevlar.com User Group: http://www.rmoug.org