CERN IT Department CH-1211 Geneva 23 Switzerland www.cern.ch/i t Oracle Tutorials CERN June 8 th, 2012 Performance Tuning.

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

Database Tuning Principles, Experiments and Troubleshooting Techniques Baseado nos slides do tutorial com o mesmo nome da autoria de: Dennis Shasha
Advanced Oracle DB tuning Performance can be defined in very different ways (OLTP versus DSS) Specific goals and targets must be set => clear recognition.
Copyright © SoftTree Technologies, Inc. DB Tuning Expert.
Performance Tuning Compiled from: Oracle Database Administration, Session 13, Performance, Harvard U Oracle Server Tuning Accelerator, David Scott, Intec.
Chapter 9. Performance Management Enterprise wide endeavor Research and ascertain all performance problems – not just DBMS Five factors influence DB performance.
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
SQL SERVER 2012 XVELOCITY COLUMNSTORE INDEX Conor Cunningham Principal Architect SQL Server Engine.
Royal London Group A group of specialist businesses where the bottom line is always financial sense Oracle Statistics – with a little bit extra on top.
Cross-curricular Assignment Using your case study…
Beyond data modeling Model must be normalised – purpose ? Outcome is a set of tables = logical design Then, design can be warped until it meets the realistic.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 11 Database Performance Tuning and Query Optimization.
©Company confidential 1 Performance Testing for TM & D – An Overview.
CERN IT Department CH-1211 Geneva 23 Switzerland t Sequential data access with Oracle and Hadoop: a performance comparison Zbigniew Baranowski.
CERN - IT Department CH-1211 Genève 23 Switzerland t Oracle and Streams Diagnostics and Monitoring Eva Dafonte Pérez Florbela Tique Aires.
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.
Intro Informatica Productivity Pack Save Time and Money while Increasing the Quality of Your PowerCenter Deployment Louis Hausle.
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 11 Database Performance Tuning and Query Optimization.
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.
Test plans CSCI102 - Systems ITCS905 - Systems MCS Systems.
Luca Canali, CERN Dawid Wojcik, CERN
Lecture On Database Analysis and Design By- Jesmin Akhter Lecturer, IIT, Jahangirnagar University.
ITEC224 Database Programming
RDB/1 An introduction to RDBMS Objectives –To learn about the history and future direction of the SQL standard –To get an overall appreciation of a modern.
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
Methodology - Conceptual Database Design Transparencies
Software School of Hunan University Database Systems Design Part III Section 5 Design Methodology.
9/14/2012ISC329 Isabelle Bichindaritz1 Database System Life Cycle.
1 Robert Wijnbelt Health Check your Database A Performance Tuning Methodology.
Physical Database Design & Performance. Optimizing for Query Performance For DBs with high retrieval traffic as compared to maintenance traffic, optimizing.
Multimedia Specification Design and Production 2013 / Semester 1 / week 9 Lecturer: Dr. Nikos Gazepidis
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
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.
Methodology - Conceptual Database Design. 2 Design Methodology u Structured approach that uses procedures, techniques, tools, and documentation aids to.
SEMANTEC 1 Oracle Performance Tuning - Part I Krasen Paskalev Oracle 8i Certified DBA.
CERN - IT Department CH-1211 Genève 23 Switzerland t DB Development Tools Benthic SQL Developer Application Express WLCG Service Reliability.
Physical Database Design Transparencies. ©Pearson Education 2009 Chapter 11 - Objectives Purpose of physical database design. How to map the logical database.
Methodology - Conceptual Database Design
Srik Raghavan Principal Lead Program Manager Kevin Cox Principal Program Manager SESSION CODE: DAT206.
CERN IT Department CH-1211 Genève 23 Switzerland t DM Database Monitoring Tools Database Developers' Workshop CERN, July 8 th, 2008 Dawid.
Client requirements as key for project success Rabie Adel YVEMM.
CERN IT Department CH-1211 Genève 23 Switzerland t DBA Experience in a multiple RAC environment DM Technical Meeting, Feb 2008 Miguel Anjo.
Chapter 4 Logical & Physical Database Design
Query Optimization CMPE 226 Database Systems By, Arjun Gangisetty
1 Copyright © 2005, Oracle. All rights reserved. Following a Tuning Methodology.
PROGRAMMING TESTING B MODULE 2: SOFTWARE SYSTEMS 22 NOVEMBER 2013.
CERN IT Department CH-1211 Geneva 23 Switzerland t WLCG Operation Coordination Luca Canali (for IT-DB) Oracle Upgrades.
Database Performance Eric Grancher - Nilo Segura Oracle Support Team IT/DES.
RAC aware change In order to reduce the cluster contention, a new scheme for the insertion has been developed. In the new scheme: - each “client” receives.
Dynamicpartnerconnections.com Development for performance Oleksandr Katrusha, Program manager
Copyright Sammamish Software Services All rights reserved. 1 Prog 140  SQL Server Performance Monitoring and Tuning.
An Overview of Data Warehousing and OLAP Technology
Troubleshooting Dennis Shasha and Philippe Bonnet, 2013.
3 Copyright © 2006, Oracle. All rights reserved. Designing and Developing for Performance.
CERN IT Department CH-1211 Genève 23 Switzerland t Load testing & benchmarks on Oracle RAC Romain Basset – IT PSS DP.
Oracle Database Monitoring and beyond
Database Performance Tuning and Query Optimization
Case studies – Atlas and PVSS Oracle archiver
Data Lifecycle Review and Outlook
Akshay Tomar Prateek Singh Lohchubh
Fundamental Test Process
Troubleshooting Techniques(*)
Performance And Scalability In Oracle9i And SQL Server 2000
Chapter 11 Database Performance Tuning and Query Optimization
Performance And Scalability In Oracle9i And SQL Server 2000
Query Optimization Techniques
CS5123 Software Validation and Quality Assurance
Presentation transcript:

CERN IT Department CH-1211 Geneva 23 Switzerland t Oracle Tutorials CERN June 8 th, 2012 Performance Tuning

CERN IT Department CH-1211 Geneva 23 Switzerland t Oracle Tutorials, Performance Tuning Outline Introduction – Luca Canali Application instrumentation – Chris Roderick Tools – Dawid Wojcik Demo – Eric Grancher

CERN IT Department CH-1211 Geneva 23 Switzerland t Need faster interaction between application and database –Help DB engine to better serve your needs Why is it relevant and interesting? –Performance can be highly visible in critical projects –It’s about resources usage optimisation –Performance tuning requires logical thinking, systematic approach and creativity Oracle Tutorials, Performance Tuning Why Performance Tuning?

CERN IT Department CH-1211 Geneva 23 Switzerland t Oracle Tutorials, Performance Tuning Examples Examples of cases that stress database engine performance: –High rate of concurrent transactions –High rate of queries –Queries that scan large amounts of data –Complex joins and aggregations on data –Strict requirements on response time

CERN IT Department CH-1211 Geneva 23 Switzerland t Oracle Tutorials, Performance Tuning Proactive Tuning - Design Design phase –Foundations for future performance Example –Define logical and physical structure of the table –Define which tables to use, which indexes, etc Typical mistake –requirements change after design and we are stuck with suboptimal DB structure Critical: –Involve application owner (get the use case right) –involve DB experts

CERN IT Department CH-1211 Geneva 23 Switzerland t Oracle Tutorials, Performance Tuning Guidelines Development Lifecycle 1.Development DB 2.Pre-production tests (integration DB) 3.Stress testing (test DB) 4.Production (reactive tuning) In other words: –We promote extensive tests –Tests done in a production-like environment Test with realistic size of data Test with concurrent users

CERN IT Department CH-1211 Geneva 23 Switzerland t Oracle Tutorials, Performance Tuning Guidelines

CERN IT Department CH-1211 Geneva 23 Switzerland t Oracle Tutorials, Performance Tuning Systematic Approach Tuning by understanding Example: –Have a clear view of what is the final goal A good goal is something that matters to the end-users –Define the scope of the problem Drilldown to the problem-area –Build a mental model of what is happening Which parts are involved? How do they interact? –Perform tests and relevant measurements Where is time spent? Are there bottlenecks? Confirm or disprove the model, check the goal –Possibly propose change(s) + further testing

CERN IT Department CH-1211 Geneva 23 Switzerland t Oracle Tutorials, Performance Tuning Oracle is Instrumented Oracle database access is heavily instrumented –It is not a black box! Basic idea: –It is possible to know what Oracle is doing at a given time Example: –It is possible to measure where time is spent On which SQL statement On what part of the SQL execution How much time is spent on CPU How much time is spent waiting for disk access, etc

CERN IT Department CH-1211 Geneva 23 Switzerland t Oracle Tutorials, Performance Tuning Profiling Execution What we want to achieve –Find out where time is spent during execution Drill down on the relevant code part –Profile your code in the relevant parts Some times this is slower than actual Oracle SQL time –Profile Oracle execution Time-based details of SQL, CPU usage, I/O, etc Tools and techniques –Details in the following presentations –This includes, execution plan, SQL traces, OEM

CERN IT Department CH-1211 Geneva 23 Switzerland t Oracle Tutorials, Performance Tuning Finding Bottlenecks There is always a limiting factor –Measurements can show if and where it is on DB access Detail time spent by DB processing to find bottlenecks Examples: –IO read time (throughput) –IO random read time (latency) –Lock contention (transactional wait) –CPU time for SQL execution

CERN IT Department CH-1211 Geneva 23 Switzerland t Oracle Tutorials, Performance Tuning Lateral Thinking A different path to the same goal –Turn the problem around as opposed to tune the sub-steps one by one How to make it work. Example: –Have a clear understanding of the use case –Build a model of what is happening in the application and in Oracle i.e. understand why the implementation doesn’t perform –Know enough of the application and Oracle to get to the goal via a different path Know who to involve/ask for help

CERN IT Department CH-1211 Geneva 23 Switzerland t Oracle Tutorials, Performance Tuning What you Need to Know Know your application usage of Oracle Oracle knowledge –Know DB/Oracle features that can help Indexes, partitioning, etc –Know basic Oracle internals/architecture Know where to look for documentation – Know the tools available to gather data –See following presentations on tools Know how to ask for help –Provide precise problem info to database experts

CERN IT Department CH-1211 Geneva 23 Switzerland t Oracle Tutorials, Performance Tuning Key Points of the Introduction Performance is very important Tuning the design is most effective Follow a development lifecycle process –development -> test-> (stress test) -> production Analyse perf issues by understanding –Clear goal expressed with user-centric metrics –Gather relevant data and build model Use application and SQL profiling –Understand where time is spent –Understand where bottlenecks are