13 copyright © 2007, oracle. all rights reserved. performance management
TRANSCRIPT
![Page 1: 13 Copyright © 2007, Oracle. All rights reserved. Performance Management](https://reader030.vdocument.in/reader030/viewer/2022020219/56649cf05503460f949bf0a0/html5/thumbnails/1.jpg)
13Copyright © 2007, Oracle. All rights reserved.
Performance Management
![Page 2: 13 Copyright © 2007, Oracle. All rights reserved. Performance Management](https://reader030.vdocument.in/reader030/viewer/2022020219/56649cf05503460f949bf0a0/html5/thumbnails/2.jpg)
Copyright © 2007, Oracle. All rights reserved.13 - 2
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
![Page 3: 13 Copyright © 2007, Oracle. All rights reserved. Performance Management](https://reader030.vdocument.in/reader030/viewer/2022020219/56649cf05503460f949bf0a0/html5/thumbnails/3.jpg)
Copyright © 2007, Oracle. All rights reserved.13 - 3
Performance Monitoring
Memory allocation
issues
Input/outputdevice
contention
Application code
problems
Resourcecontention
Network bottlenecks
?DBA
> Perf MonTuning AdvAccess AdvMemoryStatsInvalid Obj
![Page 4: 13 Copyright © 2007, Oracle. All rights reserved. Performance Management](https://reader030.vdocument.in/reader030/viewer/2022020219/56649cf05503460f949bf0a0/html5/thumbnails/4.jpg)
Copyright © 2007, Oracle. All rights reserved.13 - 4
Enterprise Manager Performance Page
![Page 5: 13 Copyright © 2007, Oracle. All rights reserved. Performance Management](https://reader030.vdocument.in/reader030/viewer/2022020219/56649cf05503460f949bf0a0/html5/thumbnails/5.jpg)
Copyright © 2007, Oracle. All rights reserved.13 - 5
Active Session Page
![Page 6: 13 Copyright © 2007, Oracle. All rights reserved. Performance Management](https://reader030.vdocument.in/reader030/viewer/2022020219/56649cf05503460f949bf0a0/html5/thumbnails/6.jpg)
Copyright © 2007, Oracle. All rights reserved.13 - 6
Performance Page: Throughput
![Page 7: 13 Copyright © 2007, Oracle. All rights reserved. Performance Management](https://reader030.vdocument.in/reader030/viewer/2022020219/56649cf05503460f949bf0a0/html5/thumbnails/7.jpg)
Copyright © 2007, Oracle. All rights reserved.13 - 7
Performance Monitoring: Top Sessions
![Page 8: 13 Copyright © 2007, Oracle. All rights reserved. Performance Management](https://reader030.vdocument.in/reader030/viewer/2022020219/56649cf05503460f949bf0a0/html5/thumbnails/8.jpg)
Copyright © 2007, Oracle. All rights reserved.13 - 8
Performance Monitoring: Top Services
![Page 9: 13 Copyright © 2007, Oracle. All rights reserved. Performance Management](https://reader030.vdocument.in/reader030/viewer/2022020219/56649cf05503460f949bf0a0/html5/thumbnails/9.jpg)
Copyright © 2007, Oracle. All rights reserved.13 - 9
Managing MemoryComponents
• 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
Perf MonTuning AdvAccess Adv
> MemoryStatsInvalid Obj
![Page 10: 13 Copyright © 2007, Oracle. All rights reserved. Performance Management](https://reader030.vdocument.in/reader030/viewer/2022020219/56649cf05503460f949bf0a0/html5/thumbnails/10.jpg)
Copyright © 2007, Oracle. All rights reserved.13 - 10
Enabling Automatic Memory Management (AMM)
Click Enable to enable Automatic Memory
Management.
Use the Memory Size Advisor.
![Page 11: 13 Copyright © 2007, Oracle. All rights reserved. Performance Management](https://reader030.vdocument.in/reader030/viewer/2022020219/56649cf05503460f949bf0a0/html5/thumbnails/11.jpg)
Copyright © 2007, Oracle. All rights reserved.13 - 11
Enabling Automatic SharedMemory Management (ASMM)
Click Enable to enable Automatic Shared
Memory Management.
![Page 12: 13 Copyright © 2007, Oracle. All rights reserved. Performance Management](https://reader030.vdocument.in/reader030/viewer/2022020219/56649cf05503460f949bf0a0/html5/thumbnails/12.jpg)
Copyright © 2007, Oracle. All rights reserved.13 - 12
Automatic Shared MemoryAdvisor
![Page 13: 13 Copyright © 2007, Oracle. All rights reserved. Performance Management](https://reader030.vdocument.in/reader030/viewer/2022020219/56649cf05503460f949bf0a0/html5/thumbnails/13.jpg)
Copyright © 2007, Oracle. All rights reserved.13 - 13
Setting Shared MemoryComponents Manually
![Page 14: 13 Copyright © 2007, Oracle. All rights reserved. Performance Management](https://reader030.vdocument.in/reader030/viewer/2022020219/56649cf05503460f949bf0a0/html5/thumbnails/14.jpg)
Copyright © 2007, Oracle. All rights reserved.13 - 14
Using Memory Advisors
![Page 15: 13 Copyright © 2007, Oracle. All rights reserved. Performance Management](https://reader030.vdocument.in/reader030/viewer/2022020219/56649cf05503460f949bf0a0/html5/thumbnails/15.jpg)
Copyright © 2007, Oracle. All rights reserved.13 - 16
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
Systemwide Session specific Service specific
Cumulative stats
Wait events
…Access AdvMemory
> StatsInvalid Obj
![Page 16: 13 Copyright © 2007, Oracle. All rights reserved. Performance Management](https://reader030.vdocument.in/reader030/viewer/2022020219/56649cf05503460f949bf0a0/html5/thumbnails/16.jpg)
Copyright © 2007, Oracle. All rights reserved.13 - 18
Instance/DatabaseV$DATABASEV$INSTANCEV$PARAMETERV$SPPARAMETERV$SYSTEM_PARAMETERV$PROCESSV$BGPROCESSV$PX_PROCESS_SYSSTAT
V$SYSTEM_EVENT
Troubleshooting and Tuning Views
DiskV$DATAFILEV$FILESTATV$LOGV$LOG_HISTORYV$DBFILEV$TEMPFILEV$TEMPSEG_USAGEV$SEGMENT_STATISTICS
ContentionV$LOCKV$UNDOSTATV$WAITSTATV$LATCH
MemoryV$BUFFER_POOL_STATISTICSV$LIBRARYCACHEV$SGAINFOV$PGASTAT
![Page 17: 13 Copyright © 2007, Oracle. All rights reserved. Performance Management](https://reader030.vdocument.in/reader030/viewer/2022020219/56649cf05503460f949bf0a0/html5/thumbnails/17.jpg)
Copyright © 2007, Oracle. All rights reserved.13 - 19
Invalid and Unusable Objects
Effect on performance:
• PL/SQL code objects are recompiled.
• Indexes are rebuilt.
Perf MonTuning AdvAccess AdvMemoryStats
> Invalid Obj
![Page 18: 13 Copyright © 2007, Oracle. All rights reserved. Performance Management](https://reader030.vdocument.in/reader030/viewer/2022020219/56649cf05503460f949bf0a0/html5/thumbnails/18.jpg)
Copyright © 2007, Oracle. All rights reserved.13 - 21
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
![Page 19: 13 Copyright © 2007, Oracle. All rights reserved. Performance Management](https://reader030.vdocument.in/reader030/viewer/2022020219/56649cf05503460f949bf0a0/html5/thumbnails/19.jpg)
Copyright © 2007, Oracle. All rights reserved.13 - 22
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