Copyright © 2002 VERITAS Software Corporation. All Rights Reserved. VERITAS, VERITAS Software, the VERITAS logo, and all other VERITAS product names and.

Slides:



Advertisements
Similar presentations
Performance Tuning Methods Author: Vladimir Andreev Semantec GmbH Lector: Stoyan Ivanov Semantec Bulgaria OOD Semantec GmbH Benzstr. 32 D Herrenberg,
Advertisements

DB-Time-based Oracle Performance Tuning: Theory and Practice
Copyright © SoftTree Technologies, Inc. DB Tuning Expert.
Office of the Accountant General (A&E) Andhra Pradesh Hyderabad
Unix Systems Performance Tuning Project of COSC 513 Name: Qinghui Mu Instructor: Prof. Anvari.
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.
Enqueue Waits : Locks. #.2 Copyright 2006 Kyle Hailey Locks REDO Lib Cache Buffer Cache IO Locks Network.
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.
Copyright © 200\8 Quest Software High Performance PL/SQL Guy Harrison Chief Architect, Database Solutions.
Oracle Architecture. Instances and Databases (1/2)
INTRODUCTION TO ORACLE DATABASE ADMINISTRATION Lynnwood Brown System Managers LLC Introduction – Lecture 1 Copyright System Managers LLC 2007 all rights.
CMPT 300: Operating Systems I Dr. Mohamed Hefeeda
Chapter 14 Chapter 14: Server Monitoring and Optimization.
V0.01 © 2009 Research In Motion Limited Introduction to Java Application Development for the BlackBerry Smartphone Trainer name Date.
Amit Banerjee Support Escalation Engineer Microsoft Corporation SQL Server FAQ: TroubleshootingSQL:
Computers They're Not Magic! (for the most part)‏ Adapted from Ryan Moore.
Chapter 9 Overview  Reasons to monitor SQL Server  Performance Monitoring and Tuning  Tools for Monitoring SQL Server  Common Monitoring and Tuning.
Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.
By: Dwayne Burl.  The Central Processing Unit (CPU) is responsible for interpreting and executing most of the commands from the computer's hardware and.
Copyright © 2002 VERITAS Software Corporation. All Rights Reserved. VERITAS, VERITAS Software, the VERITAS logo, and all other VERITAS product names and.
Chocolate Bar! luqili. Milestone 3 Speed 11% of final mark 7%: path quality and speed –Some cleverness required for full marks –Implement some A* techniques.
Introduction and simple using of Oracle Logistics Information System Yaxian Yao
® IBM Software Group © 2012 IBM Corporation OPTIM Data Studio – Jon Sayles, IBM/Rational November, 2012.
Introduction Optimizing Application Performance with Pinpoint Accuracy What every IT Executive, Administrator & Developer Needs to Know.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 10 Database Performance Tuning and Query Optimization.
2 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Overview.
Copyright ®xSpring Pte Ltd, All rights reserved Versions DateVersionDescriptionAuthor May First version. Modified from Enterprise edition.NBL.
1 Robert Wijnbelt Health Check your Database A Performance Tuning Methodology.
Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint
CHAPTER 2: COMPUTER-SYSTEM STRUCTURES Computer system operation Computer system operation I/O structure I/O structure Storage structure Storage structure.
Improving Efficiency of I/O Bound Systems More Memory, Better Caching Newer and Faster Disk Drives Set Object Access (SETOBJACC) Reorganize (RGZPFM) w/
*** CONFIDENTIAL *** © Toshiba Corporation 2008 Confidential Creating Report Templates.
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
Copyright © 2001 VERITAS Software Corporation. All Rights Reserved. VERITAS, VERITAS SOFTWARE, the VERITAS logo and VERITAS The Intelligent Storage Software.
Administration and Monitoring the Database Oracle 10g.
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.
Copyright 2002, Jeremy Zawodny MySQL Backup & Recovery O’Reilly Open Source Convention Jeremy Zawodny Yahoo! Finance July 24th, 2002.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
LOGO Team Assignment 1 Software Architectures. LOGO K15T2- Group21 Contents Introduce to Sale system 1 Architecture Drivers 2 Minimal Acceptable Delivery.
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101.
1 06/05/08 Statspack Kyle Hailey
1 Shared Files Sharing files among team members A shared file appearing simultaneously in different directories Share file by link File system becomes.
How STATSPACK Was Used to Solve Common Performance Issues Brian Hitchcock OCP 8, 8i, 9i DBA Sun Microsystems
WEBCAST SCHEDULE Today’s event will run one-hour long. Here are the expected times for each segment of the Webcast:  :00 – :05: Moderator introduces the.
CERN IT Department CH-1211 Geneva 23 Switzerland t Oracle Tutorials CERN June 8 th, 2012 Performance Tuning.
INTRODUCTION TO ORACLE DATABASE ADMINISTRATION Lynnwood Brown President System Managers LLC Introduction – Lecture 1 Copyright System Managers LLC 2003.
Project 4. “File System Implementation”
ASEMON JEAN-PAUL MARTIN May 2015.
1 Copyright © 2005, Oracle. All rights reserved. Following a Tuning Methodology.
Join us on Twitter: #AU2013 Building Well-Performing Autodesk® AutoCAD® Applications Albert Szilvasy Software Architect.
Lecture Topics: 11/29 File System Interface –Files and Directories –Access Methods –Protection –Consistency.
By: Dwayne Burl. 1. The definition and its history of a computer 2. The components that are needed for the built of a computer. 3. The step of the built.
Oracle9i Performance Tuning Chapter 4 Tuning the Shared Pool Memory.
8 Copyright © 2006, Oracle. All rights reserved. Tuning the Shared Pool.
SQL Advanced Monitoring Using DMV, Extended Events and Service Broker Javier Villegas – DBA | MCP | MCTS.
3 Copyright © 2006, Oracle. All rights reserved. Designing and Developing for Performance.
No more waiting. Sponsors About me  Database Technology Specialist  MVP  Blogger  Author 3
This document is provided for informational purposes only and Microsoft makes no warranties, either express or implied, in this document. Information.
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!
Installation The Intercompany Integration Solution for SAP Business One Version 2.0 for SAP Business One 9.1 Welcome to the course on the installation.
SQL Server Monitoring Overview
Installation The Intercompany Integration Solution for SAP Business One Version 2.0 for SAP Business One 9.1 Welcome to the course on the installation.
SQL Server 2016 Query Data Store
Chapter 2: Operating-System Structures
Performance And Scalability In Oracle9i And SQL Server 2000
Chapter 2: Operating-System Structures
Presentation transcript:

Copyright © 2002 VERITAS Software Corporation. All Rights Reserved. VERITAS, VERITAS Software, the VERITAS logo, and all other VERITAS product names and slogans are trademarks or registered trademarks of VERITAS Software Corporation in the US and/or other countries. Other product names and/or slogans mentioned herein may be trademarks or registered trademarks of their respective companies.

Speaker Name Speaker Title VERITAS Software

OraPerf.com: Real Life Performance Data

History of OraPerf.com Started in December 1998, in the basement Cable modem introduction Redhat Linux 2 CPU (366 Mhz Celeron, over clocked) Based on YAPP Initially supported only Utlbstat/Utlestat

YAPP OraPerf.com is based on YAPP YAPP = Yet Another Performance Profiling Methodology Developed in 1996 as reaction to the Check list/Ratio tuning Solved a real (large) customer performance problem, and they still use it today.

So what is YAPP? Basically (Response) Time based tuning (or taking a Holistic View of your system) R = C + W –R = (Response) Time –C = CPU/Service Time –W = Wait Time The basic idea is to look at all the time that is spent inside the database.

So what is YAPP? Checklist tuning is basically going down your list of ratios: –Buffer cache hit ratio –Latch miss ratio –Parse/execute ratio, etc. Ratios should never be used as the starting point of your tuning process! And what are good percentages for your ratios?

Use the expert guidelines: –> 94 – 97% in Oracle Applications (Source: Oracle) –> 80% (UNIX files) or > 90% (raw devices) (Source: Oracle) –> 95% online day and > 85% batch (Source: Gurry & Corrigan) –> % (Source: Richard Niemic) So even the experts don’t agree! Oracle Buffer Cache Hit Ratio

End User focus End users complain about –Response time problems –Throughput problems These should be used as the starting point of your tuning process, not a bad ratio

Improving TCO Another reason for starting the tuning process can be to reduce the Total Cost of Owner ship of a system –End users are happy, but can we provide the same performance/functionality with less? Ratios can never help here. Looking at where you spend your time, you can

Why Utlbstat/utlestat? Run utlbstat and some time later utlestat to produce a file called report.txt Shipped with Oracle Release –utlBstat – Begin Statistics –utlEstat – End Statistics Many DBAs use this to monitor their database(s) But …. –Don’t know how to interpret report.txt

Problems with Utlbstat/Utlestat Create/drop tables Doesn’t support OPS/RAC Only Instance statistics Not all interesting statistics are collected and reported

Interesting stats that are missing For Example: –SQL statements Buffer gets Disk reads Parse calls Executes Version count –Enqueue stats –Detailed latch statistics

STATSPACK since Much better than utlbstat/utlestat, but requires a bit more administration. The report/file generated contains much more info, but like report.txt it is difficult to read (file can be large) So lets sign up with OraPerf.com and have the file analyzed.

OraPerf Logon or Register and then logon. After login on, you will enter your personal workspace.

OraPerf Click on the BROWSE button to start browsing for the file that you want to upload. Then click on OPEN.

OraPerf If the file has been located, hit the UPLOAD FILE(S) button. One can take the default settings of the form, but incase the file is not recognized set the file type (“check file type”) or the version of STATSPACK that is used (not the RDBMS version).

Oracle Versions Uploaded

Is STATSPACK getting popular?

Common Problems Different databases and versions have the symptoms/problems: –Too many logical I/O –Slow physical I/O –Locking and Latching problems Why? There must be a common cause –Problem/limitations in Oracle kernel? –Oracle documentation not good (enough)? –Oracle books and courses not good (enough)?

Symptom: Too many Logical I/O Logical I/O or buffer get Relation between logical I/O and CPU usage Buffer cache hit ratio –(1 – (physical reads/(db buffer gets + consistent gets)) Too many logical I/O will give a good buffer cache hit ratio Reduce number of executes or logical I/O’s per execute High logical I/O count means normally inefficient SQL

From DUAL Many selects from DUAL –CURVAL, NEXTVAL from SEQUENCES –PL/SQL related functions –SYSDATE Interesting constructs –… where rownum = 1

Symptom 2: Too Slow Physical I/O Disk capacity increases rapidly Number of random I/O operations doesn’t increase as quickly Full seek time is biggest component Prices of disks keep dropping Disk Array with large Cache

Symptom 2: Too Slow Physical I/O More cost effective to buy large disks So database size roughly decides the number of disks needed OLTP databases should be sized based on the number of reads/writes per transaction Total number of reads + writes will decide the number of disks needed

Symptom 2: Too Slow Physical I/O Heavily accessed data files should be striped over enough disks Caching data is important, but where –Oracle buffer cache –File System buffer cache –Disk array cache

Average Read Time Single block I/O –Average 1-10 msec –Maximum500 msec Multi block I/O –Average1-50 msec –Maximum500+ msec Direct Path I/O –Average 1-50 msec –Maximum500+ msec

Symptom 3: Latch Synchronization means –Latch contention –Enqueue contention Always a symptom SLEEPS column in V$LATCH indication of contention Generally Oracle will sleep 1 centi second Faster CPU means that we spend a lot of time waiting So either don’t spin at all or spin more

Symptom 3: Latch contention Every logical I/O will result in a latch operation Cache buffer chain latch get –So many latch ‘gets’ and ‘sleeps’ on this Latch could be a symptom of too many buffer gets (logical I/Os) –Symptom of inefficient SQL

Symptom 3: Latch contention For Example Symptom of –Hard parsing (not sharing SQL) –Soft parsing (re-parsing the same SQL statements over and over again) Session_cached_cursors init.ora parameter –Too many Logical I/Os Hard parsing –Cursor_sharing init.ora parameter (> 8.1.5) –Exact, force, similar

Symptom 3: Enqueue contention Sequence problems –SQ enqueue –Need to increase cache size or check for sequences with order option High water mark problems –HW enqueue –Add free lists to the object

OraPerf.com now part VAN! Veritas Architect Network –The Online Community for IT Professionals Faster and more reliable access Current members can still use OraPerf.com –Only logon information will be used by Veritas. New members sign up under the VERITAS online Privacy Policy and Terms of Use. Checkout Veritas Indepth for Oracle, for better Application Tuning. OraPerf is basically high level instance tuning.

& ANSWERS QUESTIONS