Less13_Performance.pdf

download Less13_Performance.pdf

of 19

Transcript of Less13_Performance.pdf

  • 8/11/2019 Less13_Performance.pdf

    1/19

    Copyright 2009, Oracle. All rights reserved.

    Performance Management

  • 8/11/2019 Less13_Performance.pdf

    2/19

    Copyright 2009, 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

  • 8/11/2019 Less13_Performance.pdf

    3/19

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

    Performance Monitoring

    Memory

    allocationissues

    Input/outputdevice

    contention

    Applicationcode

    problems

    Resourcecontention

    Networkbottlenecks

    ?

    DBA

  • 8/11/2019 Less13_Performance.pdf

    4/19Copyright 2009, Oracle. All rights reserved.13 - 4

    Enterprise Manager Performance Page

  • 8/11/2019 Less13_Performance.pdf

    5/19Copyright 2009, Oracle. All rights reserved.13 - 5

    Drilling Down to a Particular Wait Category

  • 8/11/2019 Less13_Performance.pdf

    6/19Copyright 2009, Oracle. All rights reserved.13 - 6

    Performance Page: Throughput

    Scroll down on the Performance page.

  • 8/11/2019 Less13_Performance.pdf

    7/19

  • 8/11/2019 Less13_Performance.pdf

    8/19

  • 8/11/2019 Less13_Performance.pdf

    9/19

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

    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 oneinitialization parameter

    Enables the Oracle server to manage the amount of memoryallocated to the shared pool, Java pool, buffer cache,streams pool, and large pool

    Manually setting shared memory management: Sizes the components through multiple individualinitialization parameters

    Uses the appropriate Memory Advisor to make

    recommendations

  • 8/11/2019 Less13_Performance.pdf

    10/19

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

    Enabling Automatic Memory Management (AMM)

    Click Enable to enable Automatic Memory

    Management.

    Use the Memory Size Advisor.

  • 8/11/2019 Less13_Performance.pdf

    11/19

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

    Enabling Automatic Shared

    Memory Management (ASMM)

    Click Enable to enable Automatic Shared Memory

    Management.

  • 8/11/2019 Less13_Performance.pdf

    12/19

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

    Automatic Shared Memory

    Advisor

  • 8/11/2019 Less13_Performance.pdf

    13/19

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

    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

  • 8/11/2019 Less13_Performance.pdf

    14/19

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

    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

  • 8/11/2019 Less13_Performance.pdf

    15/19

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

    Invalid and Unusable Objects

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

    Indexes are rebuilt.

  • 8/11/2019 Less13_Performance.pdf

    16/19

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

    Quiz

    Automatic Memory Management allows the Oracle instance toreallocate memory from the _______ to the SGA .

    1. Large Pool2. Log Buffer 3. PGA

    4. Streams Pool

  • 8/11/2019 Less13_Performance.pdf

    17/19

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

    Quiz

    SGA_TARGET may not be sized greater than __________ .1. LOG_BUFFER

    2. SGA_MAX_SIZE3. STREAMS_POOL_SIZE

    4. PGA_AGGREGATE_TARGET

  • 8/11/2019 Less13_Performance.pdf

    18/19

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

    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

  • 8/11/2019 Less13_Performance.pdf

    19/19

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

    Practice 13 Overview:

    Monitoring and Improving PerformanceThis practice covers the following topics: Detecting and repairing unusable indexes

    Using the Performance page in Enterprise Manager