13 Copyright © 2005, Oracle. All rights reserved. Performance Management.

Slides:



Advertisements
Similar presentations
Copyright © SoftTree Technologies, Inc. DB Tuning Expert.
Advertisements

9 Copyright © 2006, Oracle. All rights reserved. Automatic Performance Management.
13 Copyright © 2005, Oracle. All rights reserved. Monitoring and Improving Performance.
2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
4 Copyright © 2005, Oracle. All rights reserved. Managing the Oracle Instance.
1 Chapter 16 Latch and Mutex Contention. 2 Architecture Overview of Latches Protect Oracle’s SGA Prevent two processes from updating same area of SGA.
13 Copyright © 2007, Oracle. All rights reserved. Performance Management.
5 Copyright © Oracle Corporation, All rights reserved. Using Data Dictionary and Dynamic Performance Views.
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:
10 Copyright © 2006, Oracle. All rights reserved. Automatic Shared Memory Management.
Oracle 10g Database Administrator: Implementation and Administration Chapter 14 Proactive Maintenance.
4 Copyright © 2008, Oracle. All rights reserved. Configuring Backup Specifications.
9 Copyright © Oracle Corporation, All rights reserved. Oracle Recovery Manager Overview and Configuration.
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.
13 Copyright © 2004, Oracle. All rights reserved. Oracle Shared Servers.
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.
2 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Overview.
5 Copyright © 2004, Oracle. All rights reserved. Using Recovery Manager.
5 Copyright © 2008, Oracle. All rights reserved. Using RMAN to Create Backups.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups.
14 Copyright © 2004, Oracle. All rights reserved. Performance Monitoring.
Chapter 20 Other Memory Management Topics
The Self-Managing Database: Guided Application and SQL Tuning Mohamed Ziauddin Consulting Member of Technical Staff Oracle Corporation Session id:
Oracle9i Performance Tuning Chapter 2 Tuning the Buffer Cache.
Oracle Tuning Considerations. Agenda Why Tune ? Why Tune ? Ways to Improve Performance Ways to Improve Performance Hardware Hardware Software Software.
Copyright © Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
13 Copyright © 2006, Oracle. All rights reserved. Tuning PGA and Temporary Space.
15 Copyright © 2006, Oracle. All rights reserved. Performance Tuning: Summary.
3 Copyright © 2009, Oracle. All rights reserved. Creating an Oracle Database Using DBCA.
Outline Introduction to Oracle Memory Structures SGA, PGA, SCA The Specifics of the System Global Area (SGA) Structures Overview of Program Global Areas.
1 Oracle Enterprise Manager Slides from Dominic Gélinas CIS
8 Copyright © Oracle Corporation, All rights reserved. Configuring the Database Archiving Mode.
3 Copyright © 2006, Oracle. All rights reserved. Statistics and Wait Events.
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.
20 Copyright © 2008, Oracle. All rights reserved. Cache Management.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
8 Copyright © 2007, Oracle. All rights reserved. Using RMAN to Duplicate a Database.
3 Copyright © 2004, Oracle. All rights reserved. Creating an Oracle Database.
7 Copyright © Oracle Corporation, All rights reserved. Instance and Media Recovery Structures.
Copyright Ó Oracle Corporation, All rights reserved Debugging Triggers.
15 Copyright © 2004, Oracle. All rights reserved. Debugging Triggers.
Oracle9i Performance Tuning Chapter 4 Tuning the Shared Pool Memory.
14 Copyright © 2005, Oracle. All rights reserved. Backup and Recovery Concepts.
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.
13 Copyright © 2004, Oracle. All rights reserved. Optimizing Database Performance.
3 Copyright © 2006, Oracle. All rights reserved. Designing and Developing for Performance.
6 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
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
How To Pass Oracle 1z0-060 Exam In First Attempt?
Performance Management
Automatic Performance Management
Performance Management
SQL Statement Processing
Managing Database Performance
Managing Performance by SQL Tuning
Index Index.
Presentation transcript:

13 Copyright © 2005, Oracle. All rights reserved. Performance Management

13-2 Copyright © 2005, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Use Enterprise Manager to monitor performance Tune SQL by using the SQL Tuning Advisor Tune SQL by using the SQL Access Advisor Use Automatic Shared Memory Management (ASSM) Use the Memory Advisor to size memory buffers View performance-related dynamic views Troubleshoot invalid and unusable objects

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 >Perf Mon Tuning Adv Access Adv Memory Stats Invalid Obj

13-4 Copyright © 2005, Oracle. All rights reserved. Performance Monitoring

13-5 Copyright © 2005, Oracle. All rights reserved. Performance Monitoring

13-6 Copyright © 2005, Oracle. All rights reserved. Performance Monitoring

13-7 Copyright © 2005, Oracle. All rights reserved. Performance Monitoring: Top Sessions

13-8 Copyright © 2005, Oracle. All rights reserved. Performance Monitoring: Top Services

13-9 Copyright © 2005, Oracle. All rights reserved. SQL Tuning Advisor: Overview Add missing index Run access advisor Restructure SQL Tune SQL plan (SQL profile) Automatic Tuning Optimizer SQL analysis optimization mode Access analysis optimization mode Plan tuning optimization mode Statistics check optimization mode Detect stale or missing statistics Comprehensive SQL tuning SQL Tuning Advisor Perf Mon >Tuning Adv Access Adv Memory Stats Invalid Obj

13-10 Copyright © 2005, Oracle. All rights reserved. SQL Tuning Advisor Options and Recommendations

13-11 Copyright © 2005, Oracle. All rights reserved. Using the SQL Tuning Advisor Use the SQL Tuning Advisor to analyze SQL statements and obtain performance recommendations. Sources for SQL Tuning Advisor to analyze –Top SQL: Analyzes the top SQL statements currently active –SQL Tuning Sets: Analyzes a set of SQL statements you provide –Snapshots: Analyzes a snapshot –Baselines: Analyzes a baseline

13-12 Copyright © 2005, Oracle. All rights reserved. Using the SQL Tuning Advisor: Example

13-13 Copyright © 2005, Oracle. All rights reserved. SQL Tuning Advisor: 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-14 Copyright © 2005, Oracle. All rights reserved. SQL Tuning Advisor: Identifying Duplicate SQL Bind variable candidates

13-15 Copyright © 2005, Oracle. All rights reserved. Using the SQL Access Advisor Perf Mon Tuning Adv >Access Adv Memory Stats Invalid Obj

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

13-17 Copyright © 2005, Oracle. All rights reserved. Managing Memory Components Automatic Shared Memory Management: –Is recommended to simplify management –Enables you to specify the total SGA memory through one initialization parameter –Enables the Oracle server to manage the amount of memory allocated to the shared pool, Java pool, buffer cache, streams pool, and the large pool Manually setting shared memory management: –Sizes the components through multiple individual initialization parameters –Uses the Memory Advisor to make recommendations Perf Mon Tuning Adv Access Adv >Memory Stats Invalid Obj

13-18 Copyright © 2005, Oracle. All rights reserved. Enabling Automatic Shared Memory Management (ASMM) Click Enable to enable Automatic Shared Memory Management.

13-19 Copyright © 2005, Oracle. All rights reserved. Enabling Automatic Shared Memory Management (ASMM) Full Notes Page

13-20 Copyright © 2005, Oracle. All rights reserved. Manually Setting Shared Memory Management

13-21 Copyright © 2005, Oracle. All rights reserved. Using the Memory Advisor

13-22 Copyright © 2005, Oracle. All rights reserved. V$SYSTEM_EVENT event total_waits total_timeouts time_waited average_wait time_waited_micro Dynamic Performance Statistics V$SYSSTAT statistic# name class value stat_id V$SESSION_EVENT sid event total_waits total_timeouts time_waited average_wait max_wait time_waited_micro event_id V$SESSTAT sid statistic# value V$SERVICE_EVENT service_name service_name_hash event event_id total_waits total_timeouts time_waited average_wait time_waited_micro V$SERVICE_STATS service_name_hash service_name stat_id stat_name value SystemwideSession specificService specific Cumulative stats Wait events … Access Adv Memory >Stats Invalid Obj

13-23 Copyright © 2005, Oracle. All rights reserved. Dynamic Performance Statistics Full Notes Page

13-24 Copyright © 2005, Oracle. All rights reserved. Instance/Database V$DATABASE V$INSTANCE V$PARAMETER V$SPPARAMETER V$SYSTEM_PARAMETER V$PROCESS V$BGPROCESS V$PX_PROCESS_SYSSTAT V$SYSTEM_EVENT Troubleshooting and Tuning Views Disk V$DATAFILE V$FILESTAT V$LOG V$LOG_HISTORY V$DBFILE V$TEMPFILE V$TEMPSEG_USAGE V$SEGMENT_STATISTICS Contention V$LOCK V$UNDOSTAT V$WAITSTAT V$LATCH Memory V$BUFFER_POOL_STATISTICS V$LIBRARYCACHE V$SGAINFO V$PGASTAT

13-25 Copyright © 2005, Oracle. All rights reserved. Invalid and Unusable Objects Effect on Performance: PL/SQL code objects are recompiled. Indexes are rebuilt. Perf Mon Tuning Adv Access Adv Memory Stats >Invalid Obj

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

13-27 Copyright © 2005, Oracle. All rights reserved. Summary In this lesson, you should have learned how to: Use Enterprise Manager to monitor performance Tune SQL using the SQL Tuning Advisor Tune SQL using the SQL Access Advisor Use Automatic Shared Memory Management Use the Memory Advisor to size memory buffers View performance-related dynamic views Troubleshoot invalid and unusable objects

13-28 Copyright © 2005, Oracle. All rights reserved. Practice Overview: Monitoring and Improving Performance This practice covers the following topics: Detecting and repairing unusable indexes Using the SQL Tuning Advisor Using the Performance page in Enterprise Manager