13 Copyright © 2005, Oracle. All rights reserved. Monitoring and Improving Performance.

Slides:



Advertisements
Similar presentations
Using the SQL Access Advisor
Advertisements

1
1 Vorlesung Informatik 2 Algorithmen und Datenstrukturen (Parallel Algorithms) Robin Pomplun.
© 2008 Pearson Addison Wesley. All rights reserved Chapter Seven Costs.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Chapter 1 The Study of Body Function Image PowerPoint
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 4 Computing Platforms.
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 3 CPUs.
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
Objectives: Generate and describe sequences. Vocabulary:
UNITED NATIONS Shipment Details Report – January 2006.
RXQ Customer Enrollment Using a Registration Agent (RA) Process Flow Diagram (Move-In) Customer Supplier Customer authorizes Enrollment ( )
19 Copyright © 2005, Oracle. All rights reserved. Distributing Modular Applications: Developing Web Services.
15 Copyright © 2005, Oracle. All rights reserved. Container-Managed Relationships (CMRs)
8 Copyright © 2005, Oracle. All rights reserved. Creating the Web Tier: JavaServer Pages.
6 Copyright © 2005, Oracle. All rights reserved. Building Applications with Oracle JDeveloper 10g.
1 RA I Sub-Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Casablanca, Morocco, 20 – 22 December 2005 Status of observing programmes in RA I.
Properties of Real Numbers CommutativeAssociativeDistributive Identity + × Inverse + ×
Exit a Customer Chapter 8. Exit a Customer 8-2 Objectives Perform exit summary process consisting of the following steps: Review service records Close.
Create an Application Title 1A - Adult Chapter 3.
Custom Statutory Programs Chapter 3. Customary Statutory Programs and Titles 3-2 Objectives Add Local Statutory Programs Create Customer Application For.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Chapter 6 File Systems 6.1 Files 6.2 Directories
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
9 Copyright © 2006, Oracle. All rights reserved. Automatic Performance Management.
Database Performance Tuning and Query Optimization
© Bharati Vidyapeeths Institute of Computer Applications and Management, New Delhi © Bharati Vidyapeeths Institute of Computer Applications and.
Database Performance Tuning and Query Optimization
PP Test Review Sections 6-1 to 6-6
EU market situation for eggs and poultry Management Committee 20 October 2011.
Bright Futures Guidelines Priorities and Screening Tables
11 Copyright © Oracle Corporation, All rights reserved. Managing Tables.
9 Copyright © 2004, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables.
Displaying Data from Multiple Tables
Chapter 6 Data Design.
Bellwork Do the following problem on a ½ sheet of paper and turn in.
Sample Service Screenshots Enterprise Cloud Service 11.3.
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
1 RA III - Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Buenos Aires, Argentina, 25 – 27 October 2006 Status of observing programmes in RA.
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt Synthetic.
Materialized Views.
Model and Relationships 6 M 1 M M M M M M M M M M M M M M M M
Analyzing Genes and Genomes
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Essential Cell Biology
Intracellular Compartments and Transport
PSSA Preparation.
Essential Cell Biology
Immunobiology: The Immune System in Health & Disease Sixth Edition
Energy Generation in Mitochondria and Chlorplasts
13 Copyright © 2005, Oracle. All rights reserved. Performance Management.
15 Copyright © 2004, Oracle. All rights reserved. Monitoring and Managing Memory.
12 Copyright © 2007, Oracle. All rights reserved. Database Maintenance.
15 Copyright © 2004, Oracle. All rights reserved. Proactive Maintenance.
2 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Overview.
14 Copyright © 2004, Oracle. All rights reserved. Performance Monitoring.
Preface 1Performance Tuning Methodology: A Review Course Structure 1-2 Lesson Objective 1-3 Concepts 1-4 Determining the Worst Bottleneck 1-5 Understanding.
3 Copyright © 2004, Oracle. All rights reserved. Creating an Oracle Database.
5 Copyright © 2005, Oracle. All rights reserved. Managing the Oracle Instance.
Oracle Database Architectural Components
Presentation transcript:

13 Copyright © 2005, Oracle. All rights reserved. Monitoring and Improving Performance

13-2 Copyright © 2005, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Troubleshoot invalid and unusable objects Gather optimizer statistics View performance metrics Deal with performance issues

13-3 Copyright © 2005, Oracle. All rights reserved. Performance Monitoring Memory allocation issues Memory allocation issues Input/outpu t device contention Input/outpu t device contention Application code problems Application code problems Resource contention Resource contention Network bottlenecks Network bottlenecks ? DBA

13-4 Copyright © 2005, Oracle. All rights reserved. Monitoring Methodologies Reactive Proactive: –Server-generated alerts –Automatic Database Diagnostic Monitor (ADDM)

13-5 Copyright © 2005, Oracle. All rights reserved. Database and Instance Metrics Several performance statistics are available through: Data dictionary Dynamic performance views Optimizer statistics DBA

13-6 Copyright © 2005, Oracle. All rights reserved. Database and Instance Metrics Full Notes Page

13-7 Copyright © 2005, Oracle. All rights reserved. Data Dictionary Metrics You can view the status of: PL/SQL code objects Indexes

13-8 Copyright © 2005, Oracle. All rights reserved. Invalid and Unusable Objects PL/SQL code objects are recompiled. Indexes are rebuilt.

13-9 Copyright © 2005, Oracle. All rights reserved. Invalid and Unusable Objects Full Notes Page

13-10 Copyright © 2005, Oracle. All rights reserved. Optimizer Statistics Optimizer statistics are: Not real time Persistent across instance restarts Collected automatically SQL> SELECT COUNT(*) FROM hr.employees; COUNT(*) SQL> SELECT num_rows FROM dba_tables 2 WHERE owner='HR' AND table_name = 'EMPLOYEES'; NUM_ROWS

13-11 Copyright © 2005, Oracle. All rights reserved. Optimizer Statistics Full Notes Page

13-12 Copyright © 2005, Oracle. All rights reserved. Using the Manage Optimizer Statistics Page

13-13 Copyright © 2005, Oracle. All rights reserved. Manage Optimizer Statistics Page Full Notes Page

13-14 Copyright © 2005, Oracle. All rights reserved. Manually Gathering Optimizer Statistics

13-15 Copyright © 2005, Oracle. All rights reserved. Dynamic Performance Views Dynamic Performance views are: Real time Nonpersistent across instance restarts SQL> SELECT name, value FROM v$sysstat 2 WHERE name='sorts (memory)' ORDER BY name; NAME VALUE sorts (memory) SQL> / NAME VALUE sorts (memory)

13-16 Copyright © 2005, Oracle. All rights reserved. Viewing Metric Information 1.Use the All Metrics link in the Related Links region. 2.Drill down for in-depth analysis.

13-17 Copyright © 2005, Oracle. All rights reserved. Reacting to Performance Issues Use Enterprise Manager to: Find key performance issues Drill down to the root cause

13-18 Copyright © 2005, Oracle. All rights reserved. Reacting to Performance Issues Drill down to performance measurements to identify bottlenecks. CPU user: A specific update statement

13-19 Copyright © 2005, Oracle. All rights reserved. Tuning Tips Considerations: There are some general guidelines that serve as a starting point in performance tuning. Your situation may not fit the guideline. Test any changes under a representative production environment to see the effects. There are written volumes and multiday classes dedicated to tuning an Oracle database.

13-20 Copyright © 2005, Oracle. All rights reserved. Tuning Activities The three activities in performance management are: Performance planning Instance tuning SQL tuning

13-21 Copyright © 2005, Oracle. All rights reserved. Performance Planning Investment options System architecture Scalability Application design principles Workload testing, modeling, and implementation Deploying new applications

13-22 Copyright © 2005, Oracle. All rights reserved. Performance Planning Full Notes Page

13-23 Copyright © 2005, Oracle. All rights reserved. Instance Tuning Have well-defined goals. Allocate memory to database structures. Consider I/O requirements in each part of the database. Tune the operating system for optimal performance of the database.

13-24 Copyright © 2005, Oracle. All rights reserved. Tuning Memory Allocation Java pool Database buffer cache Redo log buffer Shared pool Large pool SGA Fixed SGA Streams pool What is the optimal allocation? SGA_TARGET = 8G STATISTICS_LEVEL = TYPICAL

13-25 Copyright © 2005, Oracle. All rights reserved. Tuning Memory Allocation Full Notes Page

13-26 Copyright © 2005, Oracle. All rights reserved. Memory Tuning: Guidelines Try to fit the SGA into physical memory. Tune for a high buffer cache hit ratio, with the following caveats: –Even valid and necessary full table scans lower it. –It is possible that unnecessary repeated reads of the same blocks are artificially raising it. Use the Memory Advisor.

13-27 Copyright © 2005, Oracle. All rights reserved. Memory Tuning Guidelines Full Notes Page

13-28 Copyright © 2005, Oracle. All rights reserved. Memory Tuning Guidelines for the Library Cache Establish formatting conventions for developers so that SQL statements match in the cache. Use bind variables. Eliminate unnecessary duplicate SQL. Consider using CURSOR_SHARING. Use PL/SQL when possible. Cache sequence numbers. Pin objects in the library cache.

13-29 Copyright © 2005, Oracle. All rights reserved. Memory Tuning Guidelines for the Library Cache Full Notes Page

13-30 Copyright © 2005, Oracle. All rights reserved. Tuning I/O Look for hot spots on the disk. Ensure that you have right-sized redo log files. Consider moving redo logs to separate disks. Consider moving archive logs to separate disks. Look for a high I/O rate on the TEMP tablespace. Reduce contention for high I/O data files by segregating them. Consider striping all data across all disks. Consider using Automatic Storage Management.

13-31 Copyright © 2005, Oracle. All rights reserved. Tuning I/O Full Notes Page

13-32 Copyright © 2005, Oracle. All rights reserved. Tuning SQL Using the SQL Tuning Advisor Using indexes and clusters Using optimizer hints Using V$SQL_PLAN and EXPLAIN PLAN

13-33 Copyright © 2005, Oracle. All rights reserved. Tuning SQL Full Notes Page

13-34 Copyright © 2005, Oracle. All rights reserved. Tuning Recommendations

13-35 Copyright © 2005, Oracle. All rights reserved. Recommendation Plan

13-36 Copyright © 2005, Oracle. All rights reserved. SQL Statistics select count(*) from x where object_id < 340 select count(*) from x where object_id < 220 Each statement causes a hard parse.

13-37 Copyright © 2005, Oracle. All rights reserved. Identifying Duplicate SQL Bind variable candidates

13-38 Copyright © 2005, Oracle. All rights reserved. Summary In this lesson, you should have learned how to: Troubleshoot invalid and unusable objects Gather optimizer statistics View performance metrics Deal with performance issues Describe some basic tuning steps

13-39 Copyright © 2005, Oracle. All rights reserved. Practice Overview: Monitoring and Improving Performance This practice covers the following topics: Detecting and repairing unusable indexes Using EXPLAIN PLAN Gathering statistics Using the Performance page in Enterprise Manager

13-40 Copyright © 2005, Oracle. All rights reserved. Full Notes Page