0% found this document useful (0 votes)
43 views18 pages

Week9 2PerformanceMgt Oracle 2020

This document discusses performance monitoring and tuning in an Oracle database. It covers using Enterprise Manager to monitor performance, enabling automatic memory management and shared memory management, using memory advisors, viewing dynamic performance views, and managing invalid and unusable objects. Automatic memory management allows specifying total memory allocated to the instance, while automatic shared memory management specifies total SGA memory through one parameter. Memory advisors make recommendations for memory component sizing. Dynamic views provide statistics on system activity, sessions, services, waits, memory, disks, contention and more for troubleshooting.

Uploaded by

Nur Atikah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views18 pages

Week9 2PerformanceMgt Oracle 2020

This document discusses performance monitoring and tuning in an Oracle database. It covers using Enterprise Manager to monitor performance, enabling automatic memory management and shared memory management, using memory advisors, viewing dynamic performance views, and managing invalid and unusable objects. Automatic memory management allows specifying total memory allocated to the instance, while automatic shared memory management specifies total SGA memory through one parameter. Memory advisors make recommendations for memory component sizing. Dynamic views provide statistics on system activity, sessions, services, waits, memory, disks, contention and more for troubleshooting.

Uploaded by

Nur Atikah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 18

PERFORMANCE

MANAGEMENT - ORACLE
SECP 3713
DATABASE ADMINISTRATION
Semester 1 2020/2021
Lesson Objectives
• This chapter covers the following areas:
• Use Enterprise Manager to monitor performance
• Use Automatic Memory Management (AMM)
• Use the Memory Advisor to size memory buffers
• View performance-related dynamic views
• Manage invalid and unusable objects
Performance Monitoring and
Tuning
The DBA need check various areas in the system
to find the performance bottlenecks.

Memory
allocation
issues
Input/output Resource
device ? contention
contention
DBA

Application Network
code bottlenecks
problems
Enterprise Manager Performance
Page
Active Session Page
Performance Page: Throughput
Performance Monitoring: Top
Sessions
Performance Monitoring: Top Services
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 Memory Advisor to make recommendations
Enabling Automatic Memory
Management (AMM)
Click Enable to enable
Automatic Memory
Management.

Use the Memory Size Advisor.


Enabling Automatic Shared
Memory Management (ASMM)

Click Enable to enable


Automatic Shared
Memory Management.
Automatic Shared Memory
Advisor
Setting Shared Memory
Components Manually
Using Memory Advisors

Access

Dynamic Performance Statistics


Adv

Memory
> Stats
Systemwide Session specific Service specificInvalid
Obj
V$SYSSTAT V$SESSTAT V$SERVICE_STATS
• statistic# • sid •
service_name_hash
• name • • service_name
statistic# • stat_id
• class • value
• value • stat_name
• value
• stat_id

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 • • average_wait
time_waited_micro • time_waited_micro
Wait events • event_id
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
Invalid and Unusable Objects
• Effect on performance:
• Objects in the database can become invalid for reasons
like non-existence reference objects.
• Automatic compilation will occur when the object is
referenced at the expense of performance.
• PL/SQL code objects are recompiled.
• Indexes are rebuilt.
• To minimize performance impact, compile these objects
manually during off-peak time
Summary
• In this lesson, you should have learned how to:
• Use Enterprise Manager to monitor performance
• Use Automatic Memory Management
• Use the Memory Advisor to size memory buffers
• View performance-related dynamic views
• Troubleshoot invalid and unusable objects

You might also like