Oracle 10g Advanced Performance Tuning Kyle Hailey Delphix - wait events docs – tools S-ASH.

Slides:



Advertisements
Similar presentations
Advanced Oracle DB tuning Performance can be defined in very different ways (OLTP versus DSS) Specific goals and targets must be set => clear recognition.
Advertisements

Database Tuning. Objectives Describe the roles associated with database tuning. Describe the dependency between tuning in different development phases.
Presentation Date Top Down Performance Management with OEM Grid Control Or how I learned to stop worrying and love OEM Grid Control 10/1/2010 John Darrah.
Copyright © SoftTree Technologies, Inc. DB Tuning Expert.
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Overview of performance tuning strategies Oracle Performance Tuning Allan Young June 2008.
Dashboards Slide by ana’s presentation. Tired of these challenges? No centralized view of executive information from multiple functional areas and systems;
IO Waits Kyle Hailey #.2 Copyright 2006 Kyle Hailey Waits Covered in this Section  db file sequential read  db file scattered.
Enqueue Waits : Locks. #.2 Copyright 2006 Kyle Hailey Wait Tree - Locks Waits Disk I/O Library Cache Enqueue Undo TX 6 Row Lock TX 4 ITL Lock HW Lock.
Enqueue Waits : Locks. #.2 Copyright 2006 Kyle Hailey Locks REDO Lib Cache Buffer Cache IO Locks Network.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Oracle High Availability Solutions RAC and Standby Database Copyright System Managers LLC 2008.
1 Chapter 16 Latch and Mutex Contention. 2 Architecture Overview of Latches Protect Oracle’s SGA Prevent two processes from updating same area of SGA.
Buffer Cache Waits. #.2 Copyright 2006 Kyle Hailey Buffer Cache Waits Waits Disk I/O Buffer Busy Library Cache Enqueue SQL*Net Free Buffer Hot Blocks.
Keeping our websites running - troubleshooting with Appdynamics Benoit Villaumie Lead Architect Guillaume Postaire Infrastructure Manager.
Delphix User Experience
Engineering H193 - Team Project Gateway Engineering Education Coalition P. 1Spring Quarter 2007 Week 8 Day 1 Notes on Individual Competition and Visual.
©Company confidential 1 Performance Testing for TM & D – An Overview.
Anton Topurov IT Department – DB Group Database Performance Tuning with EM12c.
1 DOS with Windows 3.1 and 3.11 Operating Environments n Designed to allow applications to have a graphical interface DOS runs in the background as the.
Redo Waits Kyle Hailey #.2 Copyright 2006 Kyle Hailey Redo REDO Lib Cache Buffer Cache Locks Network I/O.
Average Session Load (ASL) The Golden Metric ? Kyle Hailey
Copyright © 2007 Quest Software The Changing Role of SQL Server DBA’s Bryan Oliver SQL Server Domain Expert Quest Software.
1 9/4/2015 Graphics. My Inspirations Interface Revolutions : 1984 Mac 1992 Browser 1998 Google 2006 DBO Take computer centric interfaces and made them.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
® IBM Software Group © 2012 IBM Corporation OPTIM Data Studio – Jon Sayles, IBM/Rational November, 2012.
2 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Overview.
Database Edition for Sybase Sales Presentation. Market Drivers DBAs are facing immense time pressure in an environment with ever-increasing data Continuous.
1 Robert Wijnbelt Health Check your Database A Performance Tuning Methodology.
Part II : Waits Events Kyle Hailey
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software.
Oracle Tuning Ashok Kapur Hawkeye Technology, Inc.
Learningcomputer.com SQL Server 2008 – Profiling and Monitoring Tools.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101.
Achieving Scalability, Performance and Availability on Linux with Oracle 9iR2-RAC Grant McAlister Senior Database Engineer Amazon.com Paper
1 06/05/08 Statspack Kyle Hailey
Student’s Page Discussion Building a Better website By…. Student’s Page Click to continue.
Average Active Sessions (AAS) The Golden Metric ? Kyle Hailey
Process Architecture Process Architecture - A portion of a program that can run independently of and concurrently with other portions of the program. Some.
#.6 Sampling Kyle Hailey
CERN IT Department CH-1211 Geneva 23 Switzerland t Oracle Tutorials CERN June 8 th, 2012 Performance Tuning.
Oracle 10g Advanced Performance Tuning Kyle Hailey - wait events docs – tools S-ASH and.
Copyright © 2006 Quest Software Toad Through the Years A Celebration of 10 Years of Toad.
#.1 SASH – Simulated ASH and other tools. #.2 OEMDB Optimizer Lab 128SASH performance$100,000$1500$500free SQL Tuning$100,000includedN/A Both$200,000$1500N/A.
#.1 Average Active Sessions (AAS) The Golden Metric ? Kyle Hailey
Join us on Twitter: #AU2013 Building Well-Performing Autodesk® AutoCAD® Applications Albert Szilvasy Software Architect.
Copyright 2014 – Noah Mendelsohn Performance Analysis Tools Noah Mendelsohn Tufts University Web:
Advanced Performance Forensics Uncovering the Mysteries of Performance and Scalability Incidents through Forensic Engineering Stephen Feldman Senior Director.
Oracle Virtualization Last Update Copyright 2012 Kenneth M. Chipps Ph.D.
OEM 10g Performance and Tuning. #.2 Copyright 2006 Kyle Hailey Performance SQL Diagnostics SQLTuning Performance Session DB HOME.
SQL*Net & Other Waits. #.2 Copyright 2006 Kyle Hailey SQL*Net Waits Session Shadow Log Buffer Buffer Cache Log Buffer Buffer Cache SGA Library Cache Host.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 1.
Troubleshooting Dennis Shasha and Philippe Bonnet, 2013.
SQL Advanced Monitoring Using DMV, Extended Events and Service Broker Javier Villegas – DBA | MCP | MCTS.
Configuring SQL Server for a successful SharePoint Server Deployment Haaron Gonzalez Solution Architect & Consultant Microsoft MVP SharePoint Server
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
This document is provided for informational purposes only and Microsoft makes no warranties, either express or implied, in this document. Information.
Oracle Database Architectural Components
1 PVSS Oracle scalability Target = changes per second (tested with 160k) changes per client 5 nodes RAC NAS 3040, each with one.
Performance Tuning Renegade
Chapter 21 SGA Architecture and Wait Event Summarized & Presented by Yeon JongHeum IDS Lab., Seoul National University.
Linux Performance Profiling & Visualization
Query Performance Tuning: Start to Finish
Linux Performance Profiling & Visualization
Simplifying XEvents Management with dbatools
Troubleshooting Techniques(*)
SQL Server Performance Tuning
Performance And Scalability In Oracle9i And SQL Server 2000
Presentation transcript:

Oracle 10g Advanced Performance Tuning Kyle Hailey Delphix - wait events docs – tools S-ASH and ASHMON - power points

Who is Kyle Hailey  1990 Oracle  90 support  92 Ported v6  93 France  95 Benchmarking  98 ST Real World Performance  2000 Dot.Com  2001 Quest  2002 Oracle OEM 10g  2006 Independent  2008 Embarcadero  DB Optimizer  2010 Delphix Success! First successful OEM design

8 Copyright 2006 Kyle Hailey My Goal Simplify the information and empower the DBA

Launch: Pressure Midnight before January 28, 1986 Lives are on the line Thanks to Edward Tufte

Copyright 2006 Kyle Hailey 13 Pages Faxed

Copyright 2006 Kyle Hailey Original Engineering data only showed damage “damages at the hottest and coldest temperature” - management

Copyright 2006 Kyle Hailey Congressional Hearings Evidence

Copyright 2006 Kyle Hailey Clearer 1.Include successes 2.Mark Differences 3.Normalize same temp 4.Scale known vs unknown X

Copyright 2006 Kyle Hailey Difficult  NASA Engineers Fail  Congressional Investigators Fail  Data Visualization is Difficult But … Lack of Clarity can be devastating

Solutions  Clear Identification  Know how to identify problems and issues  Access to details  Provide solutions and/or information to address the issues  Graphics  Easy understanding, effective communication and discussion

First Step: Graphics “The humans … are exceptionally good at parsing visual information, especially when that information is coded by color and/or _____.” Knowledge representation in cognitive science. Westbury, C. & Wilensky, U. (1998) motion

Why Use Graphics You can't imagine how many times I was told that nobody wanted or would use graphics … -- Jef Raskin, the creator of the Macintosh Infocus – (overhead projectors) sited a study that humans can parse graphical information 400,000 times faster than textual data

18 Counties in US  3101 Counties in US  50 pages

“If I can't picture it, I can't understand it” Anscombe's Quartet IIIIIIIV xyxyxyxy Average Standard Deviation Linear Regression Albert Einstein

Graphics for Anscombe’s Quartet

What is a day in the life look like for a DBA who has performance issues? Tuning the DatabaseComplex Averages Anscombe's Quartet IIIIIIIV xyxyxyxy Average Standard Deviation Linear Regression 1.33

LOAD Top Activity SQL Events Events Sessions Get Details Click here Max CPU (yard stick) How Can We Open the Black Box?

OEMASHMON/SASH DB Optimizer Powerful - Identifies issues quickly and powerfullyPowerful - Identifies issues quickly and powerfully Interactive - Allows exploring the dataInteractive - Allows exploring the data Easy - Understandable by everyone, DBA, Dev and Managers !Easy - Understandable by everyone, DBA, Dev and Managers !

Copyright 2006 Kyle Hailey Ideas for TodayASH Sampling Waits AAS

Copyright 2006 Kyle Hailey Sections Day 1  New Ideas  Statspack  ASH  AAS  OEM 10g Day 2   Waits   Buffer Cache   IO   Redo   Enqueues   Shared Pool   SQL*Net Day 3   SQL Tuning – wait documentation

Copyright 2006 Kyle Hailey Do You Want? Engineering Data?

Copyright 2006 Kyle Hailey Do You Want? Pretty Pictures

Copyright 2006 Kyle Hailey Do You Want? Clean and Clear ? ? ? ? ? ?

Copyright 2006 Kyle Hailey Imagine Trying to Drive your Car And is updated once and hour Or would you like it to look … Would you want your dashboard to look like :

Copyright 2006 Kyle Hailey Or This

Summary 1.Database - AAS  Profile database  Use wait interface and graphics  Identify machine, application, database or SQL 2.SQL - VST  Indexes, stats, execution path  Visual SQL Tuning

Bibliography Refactoring SQL Applications – Stephane Faroult Troubleshooting Oracle Performance – Christian Antognini SQL Tuning – Dan Tow Cost-Based Oracle Fundamentals – Jonathan Lewis

END Copyright 2006 Kyle Hailey

When to Tune 1.Machine a) CPU  Response times skewed  100% CPU might be fine  Users wait in queue (run queue) => machine underpowered b) Memory  Paging  Wait times skewed (ex : latch free)  Erratic response times ( ex : ls ) 2.Oracle 1) Waits > CPU ?  tune waits 2) CPU > 100% ?  tune top CPU SQL 3) Else  It’s the application Oracle Load (AAS) Top Session Top Wait Top SQL SQL Detail Session Detail File Detail Object Detail Wait Detail Host AAS > #CPU AAS > 1 Waits > CPU CPU > Waits CPU Memory Memory

Machine Make sure the machine is healthy before tuning Oracle  CPU => use run queue, < 2 * #CPU  Memory => page out VMSTAT

Summary 1.Machine - vmstat  Memory, CPU (we can see IO response in Oracle) 2.Database - AAS  Use wait interface and graphics  Identify machine, application, database or SQL 3.SQL - VST  Indexes, stats, execution path  Visual SQL Tuning

How Can We Open the Black Box?OEMASHMON/SASH DB Optimizer Powerful - Identifies issues quickly and powerfullyPowerful - Identifies issues quickly and powerfully Interactive - Allows exploring the dataInteractive - Allows exploring the data Easy - Understandable by everyone, DBA, Dev and Managers !Easy - Understandable by everyone, DBA, Dev and Managers !