1 Copyright © 2005, Oracle. All rights reserved. Following a Tuning Methodology.

Slides:



Advertisements
Similar presentations
Cultural Heritage in REGional NETworks REGNET Project Meeting Content Group
Advertisements

Database Tuning Principles, Experiments and Troubleshooting Techniques Baseado nos slides do tutorial com o mesmo nome da autoria de: Dennis Shasha
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
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.
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.
© Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi © Bharati Vidyapeeths Institute of Computer Applications and.
Database Performance Tuning and Query Optimization
1. Aim High with Oracle Real World Performance Andrew Holdsworth Director Real World Performance Group Server Technologies.
12 Copyright © 2005, Oracle. All rights reserved. Proactive Maintenance.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 11 Database Performance Tuning and Query Optimization.
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 >>>>>>>>>>>>>>>>>>>>>>
Relational Database Performance CSCI 6442 Copyright 2013, David C. Roberts, all rights reserved.
Introduction and simple using of Oracle Logistics Information System Yaxian Yao
12 Copyright © 2007, Oracle. All rights reserved. Database Maintenance.
15 Copyright © 2004, Oracle. All rights reserved. Proactive Maintenance.
Introduction Optimizing Application Performance with Pinpoint Accuracy What every IT Executive, Administrator & Developer Needs to Know.
Practical Database Design and Tuning. Outline  Practical Database Design and Tuning Physical Database Design in Relational Databases An Overview of Database.
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 11 Database Performance Tuning and Query Optimization.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
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.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
14 Copyright © 2004, Oracle. All rights reserved. Performance Monitoring.
1 Robert Wijnbelt Health Check your Database A Performance Tuning Methodology.
Improving Efficiency of I/O Bound Systems More Memory, Better Caching Newer and Faster Disk Drives Set Object Access (SETOBJACC) Reorganize (RGZPFM) w/
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
The Self-Managing Database: Guided Application and SQL Tuning Mohamed Ziauddin Consulting Member of Technical Staff Oracle Corporation Session id:
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.
Applications hitting a wall today with SQL Server Locking/Latching Scale-up Throughput or latency SLA Applications which do not use SQL Server.
1 Copyright © 2004, Oracle. All rights reserved. Introduction.
Chapter 16 Practical Database Design and Tuning Copyright © 2004 Pearson Education, Inc.
SEMANTEC 1 Oracle Performance Tuning - Part I Krasen Paskalev Oracle 8i Certified DBA.
Physical Database Design Transparencies. ©Pearson Education 2009 Chapter 11 - Objectives Purpose of physical database design. How to map the logical database.
1 Chapter 10 Joins and Subqueries. 2 Joins & Subqueries Joins – Methods to combine data from multiple tables – Optimizer information can be limited based.
Srik Raghavan Principal Lead Program Manager Kevin Cox Principal Program Manager SESSION CODE: DAT206.
Copyright 2007, Information Builders. Slide 1 Machine Sizing and Scalability Mark Nesson, Vashti Ragoonath June 2008.
Lec 7 Practical Database Design and Tuning Copyright © 2004 Pearson Education, Inc.
Query Processing – Query Trees. Evaluation of SQL Conceptual order of evaluation – Cartesian product of all tables in from clause – Rows not satisfying.
Chapter 5 Index and Clustering
MISSION CRITICAL COMPUTING Siebel Database Considerations.
IMS 4212: Database Implementation 1 Dr. Lawrence West, Management Dept., University of Central Florida Physical Database Implementation—Topics.
1 Chapter 9 Tuning Table Access. 2 Overview Improve performance of access to single table Explain access methods – Full Table Scan – Index – Partition-level.
20 Copyright © 2008, Oracle. All rights reserved. Cache Management.
Sorting and Joining.
for all Hyperion video tutorial/Training/Certification/Material Essbase Optimization Techniques by Amit.
Oracle9i Developer: PL/SQL Programming Chapter 11 Performance Tuning.
21 Copyright © 2008, Oracle. All rights reserved. Enabling Usage Tracking.
8 Copyright © 2005, Oracle. All rights reserved. Gathering Statistics.
Database Systems, 8 th Edition SQL Performance Tuning Evaluated from client perspective –Most current relational DBMSs perform automatic query optimization.
Dave LinkedIn
3 Copyright © 2006, Oracle. All rights reserved. Designing and Developing for Performance.
Oracle Database Architectural Components
11 Copyright © 2009, Oracle. All rights reserved. Enhancing ETL Performance.
Practical Database Design and Tuning
Query Optimization Techniques
Data Center Infrastructure
SQL Trace and TKPROF.
Database Performance Tuning &
Software Architecture in Practice
Database Performance Tuning and Query Optimization
Practical Database Design and Tuning
Database management concepts
Chapter 11 Database Performance Tuning and Query Optimization
Performance Tuning ETL Process
Presentation transcript:

1 Copyright © 2005, Oracle. All rights reserved. Following a Tuning Methodology

1-2 Copyright © 2005, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: State the procedural steps in managing performance Describe the causes of performance problems Identify the main system areas that you can address by using the tuning process Describe the tuning methodology Explain the advantage of following the steps of the tuning methodology in their proper sequence List the tuning steps that are the responsibility of the application developer Describe an overview of SQL tuning

1-3 Copyright © 2005, Oracle. All rights reserved. Managing Performance Start early. Set objectives. Tune and monitor compliance. Work together. Handle exceptions and changes.

1-4 Copyright © 2005, Oracle. All rights reserved. Full Notes Page

1-5 Copyright © 2005, Oracle. All rights reserved. Factors to Be Managed Schema –Data design –Indexes Application –SQL statements –Procedural code Instance Database User expectations Hardware or network tuning

1-6 Copyright © 2005, Oracle. All rights reserved. Full Notes Page

1-7 Copyright © 2005, Oracle. All rights reserved. Performance Problems Inadequate consumable resources –CPU –I/O –Memory (may be detected as an I/O problem) –Data communications resources Design limitations Locking

1-8 Copyright © 2005, Oracle. All rights reserved. Critical Resource Performance depends on the following: –How many clients need the resource –How long they must wait for it –How long they hold it Consider limiting demand to maintain acceptable response times. Time to service completion Response time Demand rate Acceptable response time

1-9 Copyright © 2005, Oracle. All rights reserved. Excessive Demand Greatly increases response time and reduces throughput Should be prevented as much as possible by limiting demand to a level that still allows reasonable throughput

1-10 Copyright © 2005, Oracle. All rights reserved. Understanding Scalability Scalability is: A system’s ability to process more workload, with a proportional increase in system resource use Tuned by application designers and performance specialists Poor scalability leads to system resource exhaustion to the extent that additional throughput is impossible when the system’s workload is increased.

1-11 Copyright © 2005, Oracle. All rights reserved. Scalability: Resource Exhaustion Resource exhaustion can result from: Hardware exhaustion Table scans in high-volume transactions, causing inevitable disk I/O shortages Excessive network requests, resulting in network and scheduling bottlenecks Memory allocation, causing paging and swapping Excessive process and thread allocation, causing operating system thrashing

1-12 Copyright © 2005, Oracle. All rights reserved. Internet Scalability Characteristics of Internet applications: Availability 24 hours a day, 365 days a year An unpredictable and imprecise number of concurrent users Difficulty in capacity planning Availability for any type of query Multitier architectures Stateless middleware Short development time frames Minimal time for testing

1-13 Copyright © 2005, Oracle. All rights reserved. Scalability with Application Design, Implementation, and Configuration Applications have a large impact on scalability. Poor schema design can cause expensive SQL that does not scale. Poor transaction design can cause locking and serialization problems. Poor connection management can cause poor response times and unreliable systems.

1-14 Copyright © 2005, Oracle. All rights reserved. Tuning Methodology 1.Tune business function. 2.Tune data design. 3.Tune process design. 4.Tune SQL statements. 5.Tune physical structure. 6.Tune memory allocation. 7.Tune I/O. 8.Tune memory contention. 9.Tune operating system. 10.Networking issues

1-15 Copyright © 2005, Oracle. All rights reserved. Tuning Roles Business analyst Application developer Database administrator Operating system administrator 1. Tune business function. 2. Tune data design. 3. Tune process design. 4. Tune SQL statements. 5. Tune physical structure. 6. Tune memory allocation. 7. Tune I/O. 8. Tune memory contention. 9. Tune operating system. 10. Networking issues Designer Network administrator

1-16 Copyright © 2005, Oracle. All rights reserved. Applying a Tuning Methodology Be proactive: Work from the top down. If you must be reactive, work from the bottom up, using these guidelines: –Establish quantifiable objectives. –Create a minimum repeatable test. –Ask questions of affected users and avoid preconceptions. –Test hypotheses and keep notes. –Stop when you meet the target.

1-17 Copyright © 2005, Oracle. All rights reserved. Overview of SQL Statement Tuning Identify problematic SQL. Verify optimizer statistics. Review execution plans. Restructure SQL statements. Restructure indexes. Maintain execution plans.

1-18 Copyright © 2005, Oracle. All rights reserved. Identifying Problematic SQL Identify slow programs. Look at SQL in the program. Use SQL_Trace and TKPROF.

1-19 Copyright © 2005, Oracle. All rights reserved. Verifying Optimizer Statistics Gather statistics for all tables. Gather new statistics when existing statistics become stale.

1-20 Copyright © 2005, Oracle. All rights reserved. The driving table has the best filter. The fewest number of rows are being returned to the next step. The join method is appropriate for the number of rows being returned. Views are used efficiently. There are no unintentional Cartesian products. Each table is being accessed efficiently. Examine predicates in the SQL statement and the number of rows in the table. A full table scan does not mean inefficiency. Reviewing the Execution Plan

1-21 Copyright © 2005, Oracle. All rights reserved. Full Notes Page

1-22 Copyright © 2005, Oracle. All rights reserved. Compose predicates by using AND and =. Avoid transformed columns in the WHERE clause. Avoid mixed-mode expressions and beware of implicit type conversions. Write separate SQL statements for specific tasks. Use EXISTS rather than IN for subqueries. Control the access path and join order with hints. Restructuring the SQL Statements

1-23 Copyright © 2005, Oracle. All rights reserved. Full Notes Page

1-24 Copyright © 2005, Oracle. All rights reserved. Restructuring the Indexes Remove nonselective indexes to speed up the DML. Index performance-critical access paths. Reorder columns in existing concatenated indexes. Add columns to the index to improve selectivity. Consider index-organized tables.

1-25 Copyright © 2005, Oracle. All rights reserved. Maintaining Execution Plans over Time Stored outlines Stored statistics

1-26 Copyright © 2005, Oracle. All rights reserved. Summary In this lesson, you should have learned how to: Manage performance –Start early; be proactive. –Set measurable objectives. –Monitor requirements compliance. –Handle exceptions and changes. Identify performance problems –Inadequate consumable resources –Inadequate design resources –Critical resources –Excessive demand

1-27 Copyright © 2005, Oracle. All rights reserved. Summary Tune SQL statements –Manage user expectations. –Analyze the results at each step. –Tune the physical schema. –Choose when to use SQL. –Reuse SQL statements when possible. –Design and tune the SQL statement. –Get maximum performance with the optimizer.

1-28 Copyright © 2005, Oracle. All rights reserved.