Download as pdf or txt
Download as pdf or txt
You are on page 1of 19

Using Accounting Setup Manager

Chapter 8
Managing Database Performance

1
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

2
Performance Monitoring

Memory
allocation
issues

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

3
Enterprise Manager Performance Page

4
Drilling Down to a Particular Wait Category

5
Performance Page: Throughput

Scroll down on the Performance page.

6
Performance Monitoring: Top Sessions

7
Performance Monitoring: Top Services

8
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

9
Enabling Automatic Memory Management (AMM)

Click Enable to enable


Automatic Memory
Management.

Use the Memory Size Advisor.

10
Enabling Automatic Shared
Memory Management (ASMM)

Click Enable to enable


Automatic Shared Memory
Management.

11
Automatic Shared Memory
Advisor

12
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
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

15
Invalid and Unusable Objects

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

16
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

18
Quiz

SGA_TARGET may not be sized greater than


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

19
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

20
Practice 8 Overview:
Monitoring and Improving Performance

This practice covers the following topics:


• Detecting and repairing unusable indexes
• Using the Performance page in Enterprise Manager

21

You might also like