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

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.
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.
Exadata Distinctives Brown Bag New features for tuning Oracle database applications.
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.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 1.
Profit from the cloud TM Parallels Dynamic Infrastructure AndOpenStack.
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
What is SDM? SDM : Server and Database Monitoring  SDM is the web-based real-time server and database monitoring and reporting tool  Service Items Server.
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.
Overview of SQL Server Alka Arora.
Introduction and simple using of Oracle Logistics Information System Yaxian Yao
M ODULE 2 D ATABASE I NSTALLATION AND C ONFIGURATION Section 1: DBMS Installation 1 ITEC 450 Fall 2012.
® 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.
Part II : Waits Events Kyle Hailey
Improving Efficiency of I/O Bound Systems More Memory, Better Caching Newer and Faster Disk Drives Set Object Access (SETOBJACC) Reorganize (RGZPFM) w/
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.
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
Learningcomputer.com SQL Server 2008 – Profiling and Monitoring Tools.
DONE-08 Sizing and Performance Tuning N-Tier Applications Mike Furgal Performance Manager Progress Software
© 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
Linux interoperability Question: How can I handle interoperability between Linux and UNIX in my IT environment? HP’s Approach With HP’s Linux Compatibility.
Oracle 10g Advanced Performance Tuning Kyle Hailey Delphix - wait events docs – tools S-ASH.
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
Winning with Storage Foundation 5.x – 4.x End Of Life Process Winning with Storage Foundation 5.x.
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.
Jack Malloch Product Service Advisor Global Support Services.
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.
Capacity Planning in a Virtual Environment Chris Chesley, Sr. Systems Engineer
Alfresco Scalability Benchmarking Before telling how cool Alfresco is, you better prove it!
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
Chapter 21 SGA Architecture and Wait Event Summarized & Presented by Yeon JongHeum IDS Lab., Seoul National University.
From Disk to Memory It’s 2016 Folks!
Understanding the New PTC System Monitor (PSM/Dynatrace) Application’s Capabilities and Advanced Usage Stephen Vaillancourt PTC Technical Support –Technical.
Query Performance Tuning: Start to Finish
The Case of the Limitless DBA
Windows Azure Migrating SQL Server Workloads
Introduction of Week 3 Assignment Discussion
Simplifying XEvents Management with dbatools
Troubleshooting Techniques(*)
Dana Kaufman SQL Server Appliance Engineering
Performance And Scalability In Oracle9i And SQL Server 2000
Setting up PostgreSQL for Production in AWS
Presentation transcript:

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

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 Software appliance installs in under an hour on bare-metal x86 servers using SAN storage or in a VM for Oracle 10g or 11g on Linux, Solaris, AIX, and HP-UX 1 TB Fast, Non-disruptive Deployment NFS 1 TB ProductionDevelopmentQ/AReportingUAT Sync via standard APIs 300MB 1 TB VDB Provision and refresh from any time or SCN

9 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  Identify  Details  Graphics

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

19 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 ! Other tools: Lab128, ashviewer, oemlite

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

END Copyright 2006 Kyle Hailey

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

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 !