You are on page 1of 19

13

Performance Management

Copyright © 2009, Oracle. All rights reserved.


Objectives

After completing this lesson, you should be able to:


• Use Enterprise Manager to monitor performance
• Use Automatic Memory Management (AMM)
• Use the Memory Advisor to size memory buffers
• View performance-related dynamic views
• Troubleshoot invalid and unusable objects

13 - 2 Copyright © 2009, Oracle. All rights reserved.


Performance Monitoring

Memory
allocation
issues

Input/output Resource
device contention
contention
?
DBA
Application Network
code bottlenecks
problems

13 - 3 Copyright © 2009, Oracle. All rights reserved.


Enterprise Manager Performance Page

13 - 4 Copyright © 2009, Oracle. All rights reserved.


Drilling Down to a Particular Wait Category

13 - 5 Copyright © 2009, Oracle. All rights reserved.


Performance Page: Throughput

Scroll down on the Performance page.

13 - 6 Copyright © 2009, Oracle. All rights reserved.


Performance Monitoring: Top Sessions

13 - 7 Copyright © 2009, Oracle. All rights reserved.


Performance Monitoring: Top Services

13 - 8 Copyright © 2009, Oracle. All rights reserved.


Managing Memory
Components
• Automatic Memory Management (AMM)
– Enables you to specify total memory allocated to instance
(including both SGA and PGA)
• Automatic Shared Memory Management (ASMM):
– Enables you to specify 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 large pool
• Manually setting shared memory management:
– Sizes the components through multiple individual initialization
parameters
– Uses the appropriate Memory Advisor to make
recommendations

13 - 9 Copyright © 2009, Oracle. All rights reserved.


Enabling Automatic Memory Management (AMM)

Click Enable to enable


Automatic Memory
Management.

Use the Memory Size Advisor.

13 - 10 Copyright © 2009, Oracle. All rights reserved.


Enabling Automatic Shared
Memory Management (ASMM)

Click Enable to enable


Automatic Shared Memory
Management.

13 - 11 Copyright © 2009, Oracle. All rights reserved.


Automatic Shared Memory
Advisor

13 - 12 Copyright © 2009, Oracle. All rights reserved.


Dynamic Performance Statistics

Systemwide Session specific Service specific

V$SYSSTAT V$SESSTAT V$SERVICE_STATS


• statistic# • sid • service_name_hash
• name • statistic# • service_name
• class • value • stat_id
• value • stat_name
• stat_id • value

V$SYSTEM_EVENT V$SESSION_EVENT V$SERVICE_EVENT


• event • sid • service_name
• total_waits • event • service_name_hash
• total_timeouts • total_waits • event
• time_waited • total_timeouts • event_id
• average_wait • time_waited • total_waits
• time_waited_micro • average_wait • total_timeouts
• max_wait • time_waited
Cumulative stats • time_waited_micro • average_wait
• event_id • time_waited_micro
Wait events

13 - 13 Copyright © 2009, Oracle. All rights reserved.


Troubleshooting and Tuning Views

Instance/Database Disk
V$DATABASE V$DATAFILE
V$INSTANCE V$FILESTAT
V$PARAMETER V$LOG
V$SPPARAMETER V$LOG_HISTORY
V$SYSTEM_PARAMETER V$DBFILE
V$PROCESS V$TEMPFILE
V$BGPROCESS V$TEMPSEG_USAGE
V$PX_PROCESS_SYSSTAT V$SEGMENT_STATISTICS

V$SYSTEM_EVENT Contention
Memory V$LOCK
V$BUFFER_POOL_STATISTICS V$UNDOSTAT
V$LIBRARYCACHE V$WAITSTAT
V$SGAINFO V$LATCH
V$PGASTAT

13 - 15 Copyright © 2009, Oracle. All rights reserved.


Invalid and Unusable Objects

Effect on performance:
• PL/SQL code objects are recompiled.
• Indexes are rebuilt.

13 - 16 Copyright © 2009, Oracle. All rights reserved.


Quiz

Automatic Memory Management allows the Oracle instance to


reallocate memory from the _______ to the SGA .
1. Large Pool
2. Log Buffer
3. PGA
4. Streams Pool

13 - 18 Copyright © 2009, Oracle. All rights reserved.


Quiz

SGA_TARGET may not be sized greater than __________ .


1. LOG_BUFFER
2. SGA_MAX_SIZE
3. STREAMS_POOL_SIZE
4. PGA_AGGREGATE_TARGET

13 - 19 Copyright © 2009, Oracle. All rights reserved.


Summary

In this lesson, you should have learned how to:


• Use Enterprise Manager to monitor performance
• Use Automatic Memory Management (AMM)
• Use the Memory Advisor to size memory buffers
• View performance-related dynamic views
• Troubleshoot invalid and unusable objects

13 - 20 Copyright © 2009, Oracle. All rights reserved.


Practice 13 Overview:
Monitoring and Improving Performance
This practice covers the following topics:
• Detecting and repairing unusable indexes
• Using the Performance page in Enterprise Manager

13 - 21 Copyright © 2009, Oracle. All rights reserved.

You might also like