2 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Overview.

Slides:



Advertisements
Similar presentations
DB-Time-based Oracle Performance Tuning: Theory and Practice
Advertisements

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.
Office of the Accountant General (A&E) Andhra Pradesh Hyderabad
9 Copyright © 2006, Oracle. All rights reserved. Automatic Performance Management.
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.
Overview of performance tuning strategies Oracle Performance Tuning Allan Young June 2008.
4 Copyright © 2005, Oracle. All rights reserved. Managing the Oracle Instance.
15 Copyright © 2004, Oracle. All rights reserved. Monitoring and Managing Memory.
12 Copyright © 2005, Oracle. All rights reserved. Proactive Maintenance.
The Self-managing Database: Automatic Performance Diagnosis Graham Wood Kyle Hailey Oracle Corporation Session id:
1 - Oracle Server Architecture Overview
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.
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.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
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.
12 Copyright © 2004, Oracle. All rights reserved. Automatic Management.
Introduction and simple using of Oracle Logistics Information System Yaxian Yao
12 Copyright © 2007, Oracle. All rights reserved. Database Maintenance.
5 Copyright © 2008, Oracle. All rights reserved. Configuring the Oracle Network Environment.
15 Copyright © 2004, Oracle. All rights reserved. Proactive Maintenance.
Key Concepts About Performance Factors Affecting SQL Performance SQL Performance Tuning Methodologies SQL Performance Tuning Tools 1.
14 Copyright © 2004, Oracle. All rights reserved. Performance Monitoring.
1 Robert Wijnbelt Health Check your Database A Performance Tuning Methodology.
4 Copyright © 2006, Oracle. All rights reserved. Recovering from Noncritical Losses.
5 Copyright © 2004, Oracle. All rights reserved. Controlling the Database.
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
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.
18 Copyright © Oracle Corporation, All rights reserved. Workshop.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
15 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Summary.
7 Copyright © 2005, Oracle. All rights reserved. Managing Undo Data.
Process Architecture Process Architecture - A portion of a program that can run independently of and concurrently with other portions of the program. Some.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
Instance and Media Recovery Structures Supinfo Oracle Lab. 7.
3 Copyright © 2006, Oracle. All rights reserved. Statistics and Wait Events.
1 Copyright © 2005, Oracle. All rights reserved. Following a Tuning Methodology.
18 Copyright © 2004, Oracle. All rights reserved. Backup and Recovery Concepts.
Preface 1Performance Tuning Methodology: A Review Course Structure 1-2 Lesson Objective 1-3 Concepts 1-4 Determining the Worst Bottleneck 1-5 Understanding.
#.1 Average Active Sessions (AAS) The Golden Metric ? Kyle Hailey
3 Copyright © 2004, Oracle. All rights reserved. Creating an Oracle Database.
18 Copyright © 2004, Oracle. All rights reserved. Recovery Concepts.
7 Copyright © Oracle Corporation, All rights reserved. Instance and Media Recovery Structures.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
OEM 10g Performance and Tuning. #.2 Copyright 2006 Kyle Hailey Performance SQL Diagnostics SQLTuning Performance Session DB HOME.
21 Copyright © 2008, Oracle. All rights reserved. Enabling Usage Tracking.
8 Copyright © 2006, Oracle. All rights reserved. Tuning the Shared Pool.
3 Copyright © 2004, Oracle. All rights reserved. Database Architecture Comparison.
13 Copyright © 2007, Oracle. All rights reserved. Using the Data Recovery Advisor.
Troubleshooting Dennis Shasha and Philippe Bonnet, 2013.
3 Copyright © 2006, Oracle. All rights reserved. Designing and Developing for Performance.
14 Copyright © 2007, Oracle. All rights reserved. Backup and Recovery Concepts.
4 Copyright © 2004, Oracle. All rights reserved. Managing the Oracle Instance.
5 Copyright © 2005, Oracle. All rights reserved. Managing the Oracle Instance.
Oracle Database Architectural Components
1 Copyright © 2005, Oracle. All rights reserved. Oracle Database Administration: Overview.
Chapter 21 SGA Architecture and Wait Event Summarized & Presented by Yeon JongHeum IDS Lab., Seoul National University.
Introduction.
SQL Server Monitoring Overview
Oracle Database Monitoring and beyond
Workshop.
Index Index.
Presentation transcript:

2 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Overview

2-2 Copyright © 2006, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Write appropriate tuning goals Apply the tuning methodology Balance performance and safety trade-offs Identify common tuning problems Log a performance Service Request with Oracle Support

2-3 Copyright © 2006, Oracle. All rights reserved. General Tuning Session Tuning sessions have the same procedure: 1.Define the problem and state the goal. 2.Collect current statistics. 3.Consider some common performance errors. 4.Build a trial solution. 5.Implement and measure the change. 6.Decide: “Did the solution meet the goal?” –No? Then go to step 3 and repeat. –Yes? Then create a new baseline.

2-4 Copyright © 2006, Oracle. All rights reserved.

2-5 Copyright © 2006, Oracle. All rights reserved. Defining the Problem To discover and define the problem: Listen to user feedback Check the alert log and trace files for errors Check the parameter file for any diagnostic or inappropriate parameter setting Check memory, I/O, and CPU usage. Identify processes with resource usage anomalies Identify and tune SQL statements that are heavy consumers of CPU or I/O Collect instance and operating system (OS) statistics

2-6 Copyright © 2006, Oracle. All rights reserved. Setting the Priority Choose the problem that has the greatest impact: Analyze system performance in terms of work done (CPU or service time) versus time spent waiting for work (wait time).DB 타임 감소가 목표 Determine which component consumes the greatest amount of time. Drill down to tune that component, if appropriate.

2-7 Copyright © 2006, Oracle. All rights reserved. Tuning Methodology: Setting the Priority Example Time Model System Stats DB/Inst: ORCL Snaps: > Ordered by % of DB time desc, Statistic name Statistic Time (s) % of DB time sql execute elapsed time DB CPU parse time elapsed hard parse elapsed time … DB time 605.8

2-8 Copyright © 2006, Oracle. All rights reserved. Common Tuning Problems The most common tuning problems: SQL statements Session management Shared pool sizing and contention Buffer cache sizing and contention Data block contention Redo log and redo buffer tuning Undo tuning I/O issues Locking issues

2-9 Copyright © 2006, Oracle. All rights reserved. ADDM Tuning Session ADDM tuning session has the same procedure as the general tuning session, but combines steps: 1.View the ADDM report. A.Collect current statistics; compare with previous set. B.Compare to performance issues knowledge base. C.Define the problem and make recommendations. 2.Review recommendations. D.Build a trial solution. 3.Implement the recommendation. E.Implement and measure the change. 4.Review the next ADDM report. F.Decide: “Did the solution meet the goal?”

2-10 Copyright © 2006, Oracle. All rights reserved. Effective Tuning Goals Effective tuning goals are: Specific Measurable Achievable

2-11 Copyright © 2006, Oracle. All rights reserved.

2-12 Copyright © 2006, Oracle. All rights reserved. Tuning Objectives The objectives of tuning are: Minimizing response time Increasing throughput Increasing load capabilities Decreasing recovery time

2-13 Copyright © 2006, Oracle. All rights reserved. DB Time DB Time = DB Wait Time + DB CPU Time

2-14 Copyright © 2006, Oracle. All rights reserved. CPU and Wait Time Tuning Dimensions Scalable application Possibly needs SQL tuning Needs instance/RAC tuning CPU time Wait time No gain achieved by adding CPUs/nodes DB time = DB CPU time + DB wait time

2-15 Copyright © 2006, Oracle. All rights reserved. Tuning Life Cycle Phases Application life cycle can be divided into different phases: Application design and development Testing: Database configuration Deployment: Adding a new application to an existing database Production: Troubleshooting and tuning

2-16 Copyright © 2006, Oracle. All rights reserved. Tuning Steps During Life Cycle 1.Tune the design. 2.Tune the application. 3.Tune memory. 4.Tune I/O. 5.Tune contention. 6.Tune the operating system.

2-17 Copyright © 2006, Oracle. All rights reserved. Application Design and Development The application can be tuned even in the design and development phases by building and tuning test cases. Check normalization against major functions. Check data structures against access times. Look at points where processes are serialized. Tune the major reports. Tune the high-volume processes.

2-18 Copyright © 2006, Oracle. All rights reserved. Testing: Database Configuration The testing phase allows tuning at a deeper level: Check physical layout. Monitor for resource contention. –Memory utilization –Locks –Disk hot spots Test for resource exhaustion.

2-19 Copyright © 2006, Oracle. All rights reserved. Deployment Deployment of: New application and database –Take baseline. –Monitor growth and performance. New application in existing database –Take baseline before deployment. –Take baseline after deployment. –Compare baselines.

2-20 Copyright © 2006, Oracle. All rights reserved. Production Tuning is reactive. You need to know: What has changed? Where is the baseline?

2-21 Copyright © 2006, Oracle. All rights reserved. Collecting a Baseline Set of Statistics A baseline set of statistics is used to: Provide a set of statistics that are collected when the system is operating within the bounds set Compare the baseline statistics with current statistics Create a hypothesis about what has changed on the system

2-22 Copyright © 2006, Oracle. All rights reserved. Performance Versus Safety Trade-Offs ( 반비례 ) Factors that affect performance: Multiple control files Multiple redo log members in a group Frequent checkpointing Backing up data files Performing archiving Block check sums Number of concurrent users and transactions

2-23 Copyright © 2006, Oracle. All rights reserved. Filing a Performance Service Request File a Performance Service Request: Is the problem instancewide or query specific? Identify the root cause. Provide Statspack or AWR reports, and OS statistics. Provide Remote Diagnostics Agent (RDA) reports. Provide SQL_TRACE reports.

2-24 Copyright © 2006, Oracle. All rights reserved. RDA Report

2-25 Copyright © 2006, Oracle. All rights reserved. Monitoring and Tuning Tool: Overview Alert log Trace files Performance views Optimizer statistics SQL statistics Base statistics Histograms Metrics Service statistics ASH tkprof trcsess System statistics Session statistics Wait model Time model Alerts ASH reports Services

2-26 Copyright © 2006, Oracle. All rights reserved. Monitoring and Tuning Tool: Overview Statspack AWR EM performance pages Metric baseline EM policies ADDM Advisors Direct SGA monitor Hang analyzer Baselines AWR baselines Compare periods Services

2-27 Copyright © 2006, Oracle. All rights reserved. Practice Overview: Write Tuning Goals This practice covers the following topics: Transform a problem definition into a goal Make a goal measurable

2-28 Copyright © 2006, Oracle. All rights reserved. Summary In this lesson, you should have learned how to: Write appropriate tuning goals Identify the proper methodology for tuning in different development phases Balance performance and safety trade-offs Identify common tuning problems Log a performance Service Request with Oracle Support