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

Slides:



Advertisements
Similar presentations
ITEC474 INTRODUCTION.
Advertisements

Database Tuning Principles, Experiments and Troubleshooting Techniques Baseado nos slides do tutorial com o mesmo nome da autoria de: Dennis Shasha
Database Tuning. Objectives Describe the roles associated with database tuning. Describe the dependency between tuning in different development phases.
Copyright © SoftTree Technologies, Inc. DB Tuning Expert.
Office of the Accountant General (A&E) Andhra Pradesh Hyderabad
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.
13 Copyright © 2005, Oracle. All rights reserved. Monitoring and Improving Performance.
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Enhancing Application Performance Root Causes and Quick Solutions.
© Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi © Bharati Vidyapeeths Institute of Computer Applications and.
Topics to be discussed Introduction Performance Factors Methodology Test Process Tools Conclusion Abu Bakr Siddiq.
© IBM Corporation Informix Chat with the Labs John F. Miller III Unlocking the Mysteries Behind Update Statistics STSM.
2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
Acknowledgments Byron Bush, Scott S. Hilpert and Lee, JeongKyu
Chapter Physical Database Design Methodology Software & Hardware Mapping Logical Design to DBMS Physical Implementation Security Implementation Monitoring.
Measuring Performance Chapter 12 CSE807. Performance Measurement To assist in guaranteeing Service Level Agreements For capacity planning For troubleshooting.
Oracle 10g Database Administrator: Implementation and Administration Chapter 14 Proactive Maintenance.
Advanced Databases Basic Database Administration Guide to Oracle 10g 1.
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.
Load Test Planning Especially with HP LoadRunner >>>>>>>>>>>>>>>>>>>>>>
Module 15: Monitoring. Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried.
Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical.
IBM Software Group Washington Area Informix User Group Forum 2004 The DB2 DBA Checklist Dwaine R Snow, DB2 & Informix.
Chapter 2. Creating the Database Environment
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.
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.
CSC271 Database Systems Lecture # 30.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
ITEC224 Database Programming
Michael Sit Solution Specialists Manager Oracle Corporation.
Chapter 6 : Software Metrics
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
1 Robert Wijnbelt Health Check your Database A Performance Tuning Methodology.
Copyrighted material John Tullis 10/6/2015 page 1 Performance: WebSphere Commerce John Tullis DePaul Instructor
Physical Database Design & Performance. Optimizing for Query Performance For DBs with high retrieval traffic as compared to maintenance traffic, optimizing.
Recall: Three I/O Methods Synchronous: Wait for I/O operation to complete. Asynchronous: Post I/O request and switch to other work. DMA (Direct Memory.
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
LoadRunner SE Guide 김범수 한국비지네스써비스 ( 주 )
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.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
SEMANTEC 1 Oracle Performance Tuning - Part I Krasen Paskalev Oracle 8i Certified DBA.
Achieving Scalability, Performance and Availability on Linux with Oracle 9iR2-RAC Grant McAlister Senior Database Engineer Amazon.com Paper
1 Admission Control and Request Scheduling in E-Commerce Web Sites Sameh Elnikety, EPFL Erich Nahum, IBM Watson John Tracey, IBM Watson Willy Zwaenepoel,
OPERATING SYSTEMS CS 3530 Summer 2014 Systems with Multi-programming Chapter 4.
Process Architecture Process Architecture - A portion of a program that can run independently of and concurrently with other portions of the program. Some.
CERN IT Department CH-1211 Geneva 23 Switzerland t Oracle Tutorials CERN June 8 th, 2012 Performance Tuning.
Infrastructure for Data Warehouses. Basics Of Data Access Data Store Machine Memory Buffer Memory Cache Data Store Buffer Bus Structure.
MISSION CRITICAL COMPUTING Siebel Database Considerations.
1 Copyright © 2005, Oracle. All rights reserved. Following a Tuning Methodology.
Preface 1Performance Tuning Methodology: A Review Course Structure 1-2 Lesson Objective 1-3 Concepts 1-4 Determining the Worst Bottleneck 1-5 Understanding.
Chapter 8 System Management Semester 2. Objectives  Evaluating an operating system  Cooperation among components  The role of memory, processor,
Database Administration Basics. Basic Concepts and Definitions  Data Facts that can be recorded and stored  Metadata Data that describes properties.
Maintenance Practices. Goal  Automate the necessary DBA chores to put organizations on the path of having healthier, consistent and more trustworthy.
3 Copyright © 2004, Oracle. All rights reserved. Database Architecture Comparison.
I NTRODUCTION OF W EEK 2  Assignment Discussion  Due this week:  1-1 (Exam Proctor): everyone including in TLC  1-2 (SQL Review): review SQL  Review.
Hitting the SQL Server “Go Faster” Button
Maximum Availability Architecture Enterprise Technology Centre.
Introduction of Week 3 Assignment Discussion
11/12/2018 6:58 PM © 2004 Microsoft Corporation. All rights reserved.
Hitting the SQL Server “Go Faster” Button
Admission Control and Request Scheduling in E-Commerce Web Sites
Performance And Scalability In Oracle9i And SQL Server 2000
Presentation transcript:

Advanced Oracle DB tuning Performance can be defined in very different ways (OLTP versus DSS) Specific goals and targets must be set => clear recognition of success Factors include response time and throughput Oracle specific tuning

Response time Sum of service time + wait time Processing strategy has key effect on response time –Eg: Sequential processing –In a queue, wait time for a job = sum of service time of all previous jobs If queue gets longer parallel processing required

response time in Sequential and Parallel processing time jobs Wait time Service time jobs

System Throughput Amount of work completed in a given time Reduced service time = increased throughput Increase in resources = reduced response time Under load, contention increases… –Service may remain the same –But queues get longer In practice, wait time raises exponentially –O/S scheduler –DB dispatcher Wait time contention arbitration

Critical resources CPU, memory, I/O capacity, network broadband –Capacity (how many?) –Demand (how many?) –Wait time (how long?) –Consumption (how long?) Software issue as much as hardware issue –Quality of design / programming –Prioritise jobs Performance loss demand Resource shift

Performance adjustments Reduce consumption (use fewer resources & reduce I/O per transac.) Demand (reschedule / redistribute work) Capacity (increase / relocate res. – eg: move to parallel proc, increase mem.)

Problems for DBAs Many performance parameters are set at design stage => limited scope to adjust Important targets set at outset => bottlenecks can be identified Administer trade-offs –More $$$ –Else reschedule to limit contention Properly manage user expectations –Eg DB versus network problems Never sacrifice ability to recover data!

Performance tuning Always better pro-active =>DBA in development team On-going tasks minimised by good planning –Service time – marginal improvements only –Eg SOCRATE case study Oracle prioritised tuning steps for application dev.

Oracle tuning methodology Tune business rules Tune data design Tune application design Tune logical structure Tune database operations Tune access paths Tune memory allocation Tune I/O and physical structure Tune resource contention Tune platform

Business rules Normally other direction, but sometime business rule changed for better perf. Also, IT deployment strategy –Distributed –Centralised Stick to high level analysis of req. => more freedom (!?) –Cheque printing versus direct deposit –Threshold value for automatic approuval More flexibility in design

Data Design Structure for data consistency AND performance Denormalisation –FAReports –Summary values Data hot spot

Application Design In view of DB In view of Oracle Data entry acceleration + Refer to business rules and notes on critical db operations

Logical DB structure Mostly indexing Also locking strategy

DB operations Post relational DBs – eg: oracle Extended SQL functions New DB functions See Oracle stats on query execution Also pl/sql server side programming better than application code Query optimiser may provide clues –Eg: Temporary index on non key attribute

Memory allocation Dynamic process in Oracle Shared pool Parameters can be set manually –Make sure to keep decent SGA See notes on DB creation

I/O and physical design Use multiple disks + parallel controllers Optimise block size (see notes on DB creation) Use extents large enough for indexes Avoid use of pctincrease in OLTP tables Use raw device

Resource contention Block contention Shared pool contention Lock contention All these can be diagnosed with Oracle stats

Platform Need to talk to specialist –Eg: oracle staff Different for different OS Cache size Paging strategies etc…

Application Always start with specific objectives else never achieve anything! –Max response times for inquiry –maximum processing time for document Picking list Invoice Month end Goals may conflict, DBA arbitrates

Create repeatable tests SQL statements –New versus old in SQL + –SQL Trace enabled Trial and error in a trial environment Use multiple scenarios to test effect of each change Also test in combination Test for scalability (growth)

Keep records and automate testing Write recording into your scripts (table) Run scripts on a timer Measure against objectives and past perf. Stop when goals achieved

Oracle diagnostic tool Explain plan Oracle trace Can be run in combination to compare actuals to estimates

Oracle Enterprise Manager Common interface for all utilities Diagnosis + implementation of changes See table 17.4

Benchmarking Use in product selection –Vendor bias? –Env tuned for test only –Not repeatable without access to unlimited resources –Hidden cost of table maintenance outside the test. Cited by every DB vendor on this planet Creation of the TPC (Transaction Processing Performance Council) –TPC – C: order entry benchmark –TPC – H and TCP – R: decision support benchmark –TPC – A: web transaction benchmark Open source DB benchmark