SlideShare a Scribd company logo
Using AWR For Wait AnalysisMike Ault, Oracle GuruMarch  2011The World’s Fastest Storage® for over thirty years!
Michael R. Ault, Oracle Guru Nuclear Navy 6 years
 Nuclear Chemist/Programmer 10 years
 Kennedy Western University Graduate
 Bachelors Degree Computer Science
 Certified in all Oracle Versions Since 6
 Oracle DBA, author, since 1990Books by Michael R. Ault
StatspackAnalyzer.comFree Statspack/AWR Analysis Sponsored by Texas Memory SystemsLooks for IO bottlenecks and other configuration issues.
Straightforward tuning adviceIntroductionStatspack was introduced in 8.1.7AWR came out in Oracle10gBoth are very similarBoth provide a top-down look at performance statistics
What Is AWR?A background processA set of tablesA set of reportsTakes snapshots of statistics every hourTakes snapshot of high-cost SQL every hour
Preparation for AnalysisKnow your systems normal performance fingerprintBe familiar with Concepts and Tuning GuidesHave “normal” AWR/Statspacks for comparison
Top-Down ApproachReport starts with settings overviewNext provides Top-5 waitsUse the Waits to guide further investigation
AWR Report HeaderWORKLOAD REPOSITORY report forDB Name         DB Id    Instance     Inst Num Startup Time    Release     RAC------------ ----------- ------------ -------- --------------- ----------- ---AULTDB        4030696936 aultdb1             1 04-Aug-08 10:16 11.1.0.6.0  YESHost Name        Platform                         CPUs Cores Sockets Memory(GB)---------------- -------------------------------- ---- ----- ------- ----------aultlinux3       Linux IA (32-bit)                   2     1       1       2.97              Snap Id      Snap Time      Sessions Curs/Sess--------- ------------------- -------- ---------Begin Snap:        91 04-Aug-08 12:00:15        41       1.2  End Snap:        92 04-Aug-08 13:00:28        47       1.1Elapsed:               60.22 (mins)   DB Time:              139.52 (mins)Cache Sizes                       Begin        End~~~~~~~~~~~                  ---------- ----------               Buffer Cache:     1,312M     1,312M  Std Block Size:         8K           Shared Pool Size:       224M       224M      Log Buffer:    10,604K
AWR Report HeaderWORKLOAD REPOSITORY report forDB Name         DB Id    Instance     Inst Num Startup Time    Release     RAC------------ ----------- ------------ -------- --------------- ----------- ---AULTDB        4030696936 aultdb1             1 04-Aug-08 10:16 11.1.0.6.0  YESHost Name        Platform                         CPUs Cores Sockets Memory(GB)---------------- -------------------------------- ---- ----- ------- ----------aultlinux3       Linux IA (32-bit)                   2     1       1       2.97              Snap Id      Snap Time      Sessions Curs/Sess--------- ------------------- -------- ---------Begin Snap:        91 04-Aug-08 12:00:15        41       1.2  End Snap:        92 04-Aug-08 13:00:28        47       1.1Elapsed:               60.22 (mins)   DB Time:              139.52 (mins)Cache Sizes                       Begin        End~~~~~~~~~~~                  ---------- ----------               Buffer Cache:     1,312M     1,312M  Std Block Size:         8K           Shared Pool Size:       224M       224M      Log Buffer:    10,604K
AWR Report HeaderWORKLOAD REPOSITORY report forDB Name         DB Id    Instance     Inst Num Startup Time    Release     RAC------------ ----------- ------------ -------- --------------- ----------- ---AULTDB        4030696936 aultdb1             1 04-Aug-08 10:16 11.1.0.6.0  YESHost Name        Platform                         CPUs Cores Sockets Memory(GB)---------------- -------------------------------- ---- ----- ------- ----------aultlinux3       Linux IA (32-bit)                   2     1       1       2.97              Snap Id      Snap Time      Sessions Curs/Sess--------- ------------------- -------- ---------Begin Snap:        91 04-Aug-08 12:00:15        41       1.2  End Snap:        92 04-Aug-08 13:00:28        47       1.1Elapsed:               60.22 (mins)   DB Time:              139.52 (mins)Cache Sizes                       Begin        End~~~~~~~~~~~                  ---------- ----------               Buffer Cache:     1,312M     1,312M  Std Block Size:         8K           Shared Pool Size:       224M       224M      Log Buffer:    10,604K
AWR Report HeaderWORKLOAD REPOSITORY report forDB Name         DB Id    Instance     Inst Num Startup Time    Release     RAC------------ ----------- ------------ -------- --------------- ----------- ---AULTDB        4030696936 aultdb1             1 04-Aug-08 10:16 11.1.0.6.0  YESHost Name        Platform                         CPUs Cores Sockets Memory(GB)---------------- -------------------------------- ---- ----- ------- ----------aultlinux3       Linux IA (32-bit)                   2     1       1       2.97              Snap Id      Snap Time      Sessions Curs/Sess--------- ------------------- -------- ---------Begin Snap:        91 04-Aug-08 12:00:15        41       1.2  End Snap:        92 04-Aug-08 13:00:28        47       1.1Elapsed:               60.22 (mins)   DB Time:              139.52 (mins)Cache Sizes                       Begin        End~~~~~~~~~~~                  ---------- ----------               Buffer Cache:     1,312M     1,312M  Std Block Size:         8K           Shared Pool Size:       224M       224M      Log Buffer:    10,604K
AWR Report HeaderWORKLOAD REPOSITORY report forDB Name         DB Id    Instance     Inst Num Startup Time    Release     RAC------------ ----------- ------------ -------- --------------- ----------- ---AULTDB        4030696936 aultdb1             1 04-Aug-08 10:16 11.1.0.6.0  YESHost Name        Platform                         CPUs Cores Sockets Memory(GB)---------------- -------------------------------- ---- ----- ------- ----------aultlinux3       Linux IA (32-bit)                   2     1       1       2.97              Snap Id      Snap Time      Sessions Curs/Sess--------- ------------------- -------- ---------Begin Snap:        91 04-Aug-08 12:00:15        41       1.2  End Snap:        92 04-Aug-08 13:00:28        47       1.1Elapsed:               60.22 (mins)   DB Time:              139.52 (mins)Cache Sizes                       Begin        End~~~~~~~~~~~                  ---------- ----------               Buffer Cache:     1,312M     1,312M  Std Block Size:         8K           Shared Pool Size:       224M       224M      Log Buffer:    10,604K
AWR Report HeaderWORKLOAD REPOSITORY report forDB Name         DB Id    Instance     Inst Num Startup Time    Release     RAC------------ ----------- ------------ -------- --------------- ----------- ---AULTDB        4030696936 aultdb1             1 04-Aug-08 10:16 11.1.0.6.0  YESHost Name        Platform                         CPUs Cores Sockets Memory(GB)---------------- -------------------------------- ---- ----- ------- ----------aultlinux3       Linux IA (32-bit)                   2     1       1       2.97              Snap Id      Snap Time      Sessions Curs/Sess--------- ------------------- -------- ---------Begin Snap:        91 04-Aug-08 12:00:15        41       1.2  End Snap:        92 04-Aug-08 13:00:28        47       1.1Elapsed:               60.22 (mins)   DB Time:              139.52 (mins)Cache Sizes                       Begin        End~~~~~~~~~~~                  ---------- ----------               Buffer Cache:     1,312M     1,312M  Std Block Size:         8K           Shared Pool Size:       224M       224M      Log Buffer:    10,604K
AWR Report HeaderWORKLOAD REPOSITORY report forDB Name         DB Id    Instance     Inst Num Startup Time    Release     RAC------------ ----------- ------------ -------- --------------- ----------- ---AULTDB        4030696936 aultdb1             1 04-Aug-08 10:16 11.1.0.6.0  YESHost Name        Platform                         CPUs Cores Sockets Memory(GB)---------------- -------------------------------- ---- ----- ------- ----------aultlinux3       Linux IA (32-bit)                   2     1       1       2.97              Snap Id      Snap Time      Sessions Curs/Sess--------- ------------------- -------- ---------Begin Snap:        91 04-Aug-08 12:00:15        41       1.2  End Snap:        92 04-Aug-08 13:00:28        47       1.1Elapsed:               60.22 (mins)   DB Time:              139.52 (mins)Cache Sizes                       Begin        End~~~~~~~~~~~                  ---------- ----------               Buffer Cache:     1,312M     1,312M  Std Block Size:         8K           Shared Pool Size:       224M       224M      Log Buffer:    10,604K
AWR Report HeaderWORKLOAD REPOSITORY report forDB Name         DB Id    Instance     Inst Num Startup Time    Release     RAC------------ ----------- ------------ -------- --------------- ----------- ---AULTDB        4030696936 aultdb1             1 04-Aug-08 10:16 11.1.0.6.0  YESHost Name        Platform                         CPUs Cores Sockets Memory(GB)---------------- -------------------------------- ---- ----- ------- ----------aultlinux3       Linux IA (32-bit)                   2     1       1       2.97              Snap Id      Snap Time      Sessions Curs/Sess--------- ------------------- -------- ---------Begin Snap:        91 04-Aug-08 12:00:15        41       1.2  End Snap:        92 04-Aug-08 13:00:28        47       1.1Elapsed:               60.22 (mins)   DB Time:              139.52 (mins)Cache Sizes                       Begin        End~~~~~~~~~~~                  ---------- ----------               Buffer Cache:     1,312M     1,312M  Std Block Size:         8K           Shared Pool Size:       224M       224M      Log Buffer:    10,604K
AWR Report HeaderWORKLOAD REPOSITORY report forDB Name         DB Id    Instance     Inst Num Startup Time    Release     RAC------------ ----------- ------------ -------- --------------- ----------- ---AULTDB        4030696936 aultdb1             1 04-Aug-08 10:16 11.1.0.6.0  YESHost Name        Platform                         CPUs Cores Sockets Memory(GB)---------------- -------------------------------- ---- ----- ------- ----------aultlinux3       Linux IA (32-bit)                   2     1       1       2.97              Snap Id      Snap Time      Sessions Curs/Sess--------- ------------------- -------- ---------Begin Snap:        91 04-Aug-08 12:00:15        41       1.2  End Snap:        92 04-Aug-08 13:00:28        47       1.1Elapsed:               60.22 (mins)   DB Time:              139.52 (mins)Cache Sizes                       Begin        End~~~~~~~~~~~                  ---------- ----------               Buffer Cache:     1,312M     1,312M  Std Block Size:         8K           Shared Pool Size:       224M       224M      Log Buffer:    10,604K
Know Your Load Type!Online Transaction ProcessingFew readsMany writesMany small transactionsLook for redo/undo and sequential read issuesDecision Support/Data WarehouseMany readsFew writes (other then possible temp)Few transactionsLook for sort/workarea and scattered read issuesMixed or Hybrid
Load Profile SectionLoad Profile              Per Second    Per Transaction   Per Exec   Per Call~~~~~~~~~~~~         ---------------    --------------- ---------- ----------      DB Time(s):                2.3                7.1       0.63       1.05       DB CPU(s):                0.3                0.9       0.07       0.13       Redo size:              800.5            2,461.8   Logical reads:            6,307.6           19,396.7   Block changes:                3.6               10.9  Physical reads:            2,704.9            8,317.8 Physical writes:               86.9              267.3      User calls:                2.2                6.8          Parses:                2.0                6.1     Hard parses:                0.0                0.1W/A MB processed:          932,965.4        2,868,990.9          Logons:                0.1                0.2        Executes:                3.7               11.3       Rollbacks:                0.1                0.3    Transactions:                0.3
Load Profile SectionLoad Profile              Per Second    Per Transaction   Per Exec   Per Call~~~~~~~~~~~~         ---------------    --------------- ---------- ----------      DB Time(s):                2.3                7.1       0.63       1.05       DB CPU(s):                0.3                0.9       0.07       0.13       Redo size:              800.5            2,461.8   Logical reads:            6,307.6           19,396.7   Block changes:                3.6               10.9  Physical reads:            2,704.9            8,317.8 Physical writes:               86.9              267.3      User calls:                2.2                6.8          Parses:                2.0                6.1     Hard parses:                0.0                0.1W/A MB processed:          932,965.4        2,868,990.9          Logons:                0.1                0.2        Executes:                3.7               11.3       Rollbacks:                0.1                0.3    Transactions:                0.3
Load Profile SectionLoad Profile              Per Second    Per Transaction   Per Exec   Per Call~~~~~~~~~~~~         ---------------    --------------- ---------- ----------      DB Time(s):                2.3                7.1       0.63       1.05       DB CPU(s):                0.3                0.9       0.07       0.13       Redo size:              800.5            2,461.8   Logical reads:            6,307.6           19,396.7   Block changes:                3.6               10.9  Physical reads:            2,704.9            8,317.8 Physical writes:               86.9              267.3      User calls:                2.2                6.8          Parses:                2.0                6.1     Hard parses:                0.0                0.1W/A MB processed:          932,965.4        2,868,990.9          Logons:                0.1                0.2        Executes:                3.7               11.3       Rollbacks:                0.1                0.3    Transactions:                0.3
Load Profile SectionLoad Profile              Per Second    Per Transaction   Per Exec   Per Call~~~~~~~~~~~~         ---------------    --------------- ---------- ----------      DB Time(s):                2.3                7.1       0.63       1.05       DB CPU(s):                0.3                0.9       0.07       0.13       Redo size:              800.5            2,461.8   Logical reads:            6,307.6           19,396.7   Block changes:                3.6               10.9  Physical reads:            2,704.9            8,317.8 Physical writes:               86.9              267.3      User calls:                2.2                6.8          Parses:                2.0                6.1     Hard parses:                0.0                0.1W/A MB processed:          932,965.4        2,868,990.9          Logons:                0.1                0.2        Executes:                3.7               11.3       Rollbacks:                0.1                0.3    Transactions:                0.3
Load Profile SectionLoad Profile              Per Second    Per Transaction   Per Exec   Per Call~~~~~~~~~~~~         ---------------    --------------- ---------- ----------      DB Time(s):                2.3                7.1       0.63       1.05       DB CPU(s):                0.3                0.9       0.07       0.13       Redo size:              800.5            2,461.8   Logical reads:            6,307.6           19,396.7   Block changes:                3.6               10.9  Physical reads:            2,704.9            8,317.8 Physical writes:               86.9              267.3      User calls:                2.2                6.8          Parses:                2.0                6.1     Hard parses:                0.0                0.1W/A MB processed:          932,965.4        2,868,990.9          Logons:                0.1                0.2        Executes:                3.7               11.3       Rollbacks:                0.1                0.3    Transactions:                0.3
Load Profile SectionLoad Profile              Per Second    Per Transaction   Per Exec   Per Call~~~~~~~~~~~~         ---------------    --------------- ---------- ----------      DB Time(s):                2.3                7.1       0.63       1.05       DB CPU(s):                0.3                0.9       0.07       0.13       Redo size:              800.5            2,461.8   Logical reads:            6,307.6           19,396.7   Block changes:                3.6               10.9  Physical reads:            2,704.9            8,317.8 Physical writes:               86.9              267.3      User calls:                2.2                6.8          Parses:                2.0                6.1     Hard parses:                0.0                0.1W/A MB processed:          932,965.4        2,868,990.9          Logons:                0.1                0.2        Executes:                3.7               11.3       Rollbacks:                0.1                0.3    Transactions:                0.3
Load Profile SectionLoad Profile              Per Second    Per Transaction   Per Exec   Per Call~~~~~~~~~~~~         ---------------    --------------- ---------- ----------      DB Time(s):                2.3                7.1       0.63       1.05       DB CPU(s):                0.3                0.9       0.07       0.13       Redo size:              800.5            2,461.8   Logical reads:            6,307.6           19,396.7   Block changes:                3.6               10.9  Physical reads:            2,704.9            8,317.8 Physical writes:               86.9              267.3      User calls:                2.2                6.8          Parses:                2.0                6.1     Hard parses:                0.0                0.1W/A MB processed:          932,965.4        2,868,990.9          Logons:                0.1                0.2        Executes:                3.7               11.3       Rollbacks:                0.1                0.3    Transactions:                0.3
Load Profile SectionLoad Profile              Per Second    Per Transaction   Per Exec   Per Call~~~~~~~~~~~~         ---------------    --------------- ---------- ----------      DB Time(s):                2.3                7.1       0.63       1.05       DB CPU(s):                0.3                0.9       0.07       0.13       Redo size:              800.5            2,461.8   Logical reads:            6,307.6           19,396.7   Block changes:                3.6               10.9  Physical reads:            2,704.9            8,317.8 Physical writes:               86.9              267.3      User calls:                2.2                6.8          Parses:                2.0                6.1     Hard parses:                0.0                0.1W/A MB processed:          932,965.4        2,868,990.9          Logons:                0.1                0.2        Executes:                3.7               11.3       Rollbacks:                0.1                0.3    Transactions:                0.3
What Are Your EfficienciesShould be close to 100%Parse issues usually are a result of:Bad bind variable usageInsufficient memoryWill also be co-indicated by low percentage of memory for multiple SQL execution
Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~            Buffer Nowait %:  100.00       Redo NoWait %:   99.97            Buffer  Hit   %:   96.09    In-memory Sort %:  100.00            Library Hit   %:   98.17        Soft Parse %:   97.88         Execute to Parse %:   45.80         Latch Hit %:   99.95Parse CPU to ParseElapsd %:    0.00     % Non-Parse CPU:   99.77Shared Pool Statistics        Begin    End                              ------  ------             Memory Usage %:   81.53   85.39    % SQL with executions>1:   79.29   79.48  % Memory for SQL w/exec>1:   76.73   78.19
Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~            Buffer Nowait %:  100.00       Redo NoWait %:   99.97            Buffer  Hit   %:   96.09    In-memory Sort %:  100.00            Library Hit   %:   98.17        Soft Parse %:   97.88         Execute to Parse %:   45.80         Latch Hit %:   99.95Parse CPU to ParseElapsd %:    0.00     % Non-Parse CPU:   99.77Shared Pool Statistics        Begin    End                              ------  ------             Memory Usage %:   81.53   85.39    % SQL with executions>1:   79.29   79.48  % Memory for SQL w/exec>1:   76.73   78.19
Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~            Buffer Nowait %:  100.00       Redo NoWait %:   99.97            Buffer  Hit   %:   96.09    In-memory Sort %:  100.00            Library Hit   %:   98.17        Soft Parse %:   97.88         Execute to Parse %:   45.80         Latch Hit %:   99.95Parse CPU to ParseElapsd %:    0.00     % Non-Parse CPU:   99.77Shared Pool Statistics        Begin    End                              ------  ------             Memory Usage %:   81.53   85.39    % SQL with executions>1:   79.29   79.48  % Memory for SQL w/exec>1:   76.73   78.19
Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~            Buffer Nowait %:  100.00       Redo NoWait %:   99.97            Buffer  Hit   %:   96.09    In-memory Sort %:  100.00            Library Hit   %:   98.17        Soft Parse %:   97.88         Execute to Parse %:   45.80         Latch Hit %:   99.95Parse CPU to ParseElapsd %:    0.00     % Non-Parse CPU:   99.77Shared Pool Statistics        Begin    End                              ------  ------             Memory Usage %:   81.53   85.39    % SQL with executions>1:   79.29   79.48  % Memory for SQL w/exec>1:   76.73   78.19
Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~            Buffer Nowait %:  100.00       Redo NoWait %:   99.97            Buffer  Hit   %:   96.09    In-memory Sort %:  100.00            Library Hit   %:   98.17        Soft Parse %:   97.88         Execute to Parse %:   45.80         Latch Hit %:   99.95Parse CPU to ParseElapsd %:    0.00     % Non-Parse CPU:   99.77Shared Pool Statistics        Begin    End                              ------  ------             Memory Usage %:   81.53   85.39    % SQL with executions>1:   79.29   79.48  % Memory for SQL w/exec>1:   76.73   78.19
Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~            Buffer Nowait %:  100.00       Redo NoWait %:   99.97            Buffer  Hit   %:   96.09    In-memory Sort %:  100.00            Library Hit   %:   98.17        Soft Parse %:   97.88         Execute to Parse %:   45.80         Latch Hit %:   99.95Parse CPU to ParseElapsd %:    0.00     % Non-Parse CPU:   99.77Shared Pool Statistics        Begin    End                              ------  ------             Memory Usage %:   81.53   85.39    % SQL with executions>1:   79.29   79.48  % Memory for SQL w/exec>1:   76.73   78.19
Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~            Buffer Nowait %:  100.00       Redo NoWait %:   99.97            Buffer  Hit   %:   96.09    In-memory Sort %:  100.00            Library Hit   %:   98.17        Soft Parse %:   97.88         Execute to Parse %:   45.80         Latch Hit %:   99.95Parse CPU to ParseElapsd %:    0.00     % Non-Parse CPU:   99.77Shared Pool Statistics        Begin    End                              ------  ------             Memory Usage %:   81.53   85.39    % SQL with executions>1:   79.29   79.48  % Memory for SQL w/exec>1:   76.73   78.19
Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~            Buffer Nowait %:  100.00       Redo NoWait %:   99.97            Buffer  Hit   %:   96.09    In-memory Sort %:  100.00            Library Hit   %:   98.17        Soft Parse %:   97.88         Execute to Parse %:   45.80         Latch Hit %:   99.95Parse CPU to ParseElapsd %:    0.00     % Non-Parse CPU:   99.77Shared Pool Statistics        Begin    End                              ------  ------             Memory Usage %:   81.53   85.39    % SQL with executions>1:   79.29   79.48  % Memory for SQL w/exec>1:   76.73   78.19
Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~            Buffer Nowait %:  100.00       Redo NoWait %:   99.97            Buffer  Hit   %:   96.09    In-memory Sort %:  100.00            Library Hit   %:   98.17        Soft Parse %:   97.88         Execute to Parse %:   45.80         Latch Hit %:   99.95Parse CPU to ParseElapsd %:    0.00     % Non-Parse CPU:   99.77Shared Pool Statistics        Begin    End                              ------  ------             Memory Usage %:   81.53   85.39    % SQL with executions>1:   79.29   79.48  % Memory for SQL w/exec>1:   76.73   78.19
Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~            Buffer Nowait %:  100.00       Redo NoWait %:   99.97            Buffer  Hit   %:   96.09    In-memory Sort %:  100.00            Library Hit   %:   98.17        Soft Parse %:   97.88         Execute to Parse %:   45.80         Latch Hit %:   99.95Parse CPU to ParseElapsd %:    0.00     % Non-Parse CPU:   99.77Shared Pool Statistics        Begin    End                              ------  ------             Memory Usage %:   81.53   85.39    % SQL with executions>1:   79.29   79.48  % Memory for SQL w/exec>1:   76.73   78.19
Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~            Buffer Nowait %:  100.00       Redo NoWait %:   99.97            Buffer  Hit   %:   96.09    In-memory Sort %:  100.00            Library Hit   %:   98.17        Soft Parse %:   97.88         Execute to Parse %:   45.80         Latch Hit %:   99.95Parse CPU to ParseElapsd %:    0.00     % Non-Parse CPU:   99.77Shared Pool Statistics        Begin    End                              ------  ------             Memory Usage %:   81.53   85.39    % SQL with executions>1:   79.29   79.48  % Memory for SQL w/exec>1:   76.73   78.19
Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~            Buffer Nowait %:  100.00       Redo NoWait %:   99.97            Buffer  Hit   %:   96.09    In-memory Sort %:  100.00            Library Hit   %:   98.17        Soft Parse %:   97.88         Execute to Parse %:   45.80         Latch Hit %:   99.95Parse CPU to ParseElapsd %:    0.00     % Non-Parse CPU:   99.77Shared Pool Statistics        Begin    End                              ------  ------             Memory Usage %:   81.53   85.39    % SQL with executions>1:   79.29   79.48  % Memory for SQL w/exec>1:   76.73   78.19
Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~            Buffer Nowait %:  100.00       Redo NoWait %:   99.97            Buffer  Hit   %:   96.09    In-memory Sort %:  100.00            Library Hit   %:   98.17        Soft Parse %:   97.88         Execute to Parse %:   45.80         Latch Hit %:   99.95Parse CPU to ParseElapsd %:    0.00     % Non-Parse CPU:   99.77Shared Pool Statistics        Begin    End                              ------  ------             Memory Usage %:   81.53   85.39    % SQL with executions>1:   79.29   79.48  % Memory for SQL w/exec>1:   76.73   78.19
Top 5 Waits SectionCritical to look closely at this sectionUse highest wait times to guide investigationDB FILE type waits – physical IOBUFFER type waits – Logical IOLOG type waits – Redo relatedPX – Parallel QueryGC – Global Cache (RAC related)Undo – Undo or rollback segment related
Top 5 Waits SectionTop 5 Timed Foreground Events~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Avg                                                          wait   % DBEvent                                 Waits     Time(s)   (ms)   time Wait Class------------------------------ ------------ ----------- ------ ------ ----------db file sequential read             465,020       3,969      9   47.4 User I/ODB CPU                                              995          11.9db file parallel read                 2,251         322    143    3.8 User I/Odb file scattered read               15,268         153     10    1.8 User I/Ogc current block 2-way              108,739         116      1    1.4 Cluster
Top 5 Waits SectionTop 5 Timed Foreground Events~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Avg                                                          wait   % DBEvent                                 Waits     Time(s)   (ms)   time Wait Class------------------------------ ------------ ----------- ------ ------ ----------db file sequential read             465,020       3,969      9   47.4 User I/ODB CPU                                              995          11.9db file parallel read                 2,251         322    143    3.8 User I/Odb file scattered read               15,268         153     10    1.8 User I/Ogc current block 2-way              108,739         116      1    1.4 Cluster
Top 5 Waits SectionTop 5 Timed Foreground Events~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Avg                                                          wait   % DBEvent                                 Waits     Time(s)   (ms)   time Wait Class------------------------------ ------------ ----------- ------ ------ ----------db file sequential read             465,020       3,969      9   47.4 User I/ODB CPU                                              995          11.9db file parallel read                 2,251         322    143    3.8 User I/Odb file scattered read               15,268         153     10    1.8 User I/Ogc current block 2-way              108,739         116      1    1.4 Cluster
Top 5 Waits SectionTop 5 Timed Foreground Events~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Avg                                                          wait   % DBEvent                                 Waits     Time(s)   (ms)   time Wait Class------------------------------ ------------ ----------- ------ ------ ----------db file sequential read             465,020       3,969      9   47.4 User I/ODB CPU                                              995          11.9db file parallel read                 2,251         322    143    3.8 User I/Odb file scattered read               15,268         153     10    1.8 User I/Ogc current block 2-way              108,739         116      1    1.4 Cluster
Top 5 Waits SectionTop 5 Timed Foreground Events~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Avg                                                          wait   % DBEvent                                 Waits     Time(s)   (ms)   time Wait Class------------------------------ ------------ ----------- ------ ------ ----------db file sequential read             465,020       3,969      9   47.4 User I/ODB CPU                                              995          11.9db file parallel read                 2,251         322    143    3.8 User I/Odb file scattered read               15,268         153     10    1.8 User I/Ogc current block 2-way              108,739         116      1    1.4 Cluster
Top 5 Waits SectionTop 5 Timed Foreground Events~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Avg                                                          wait   % DBEvent                                 Waits     Time(s)   (ms)   time Wait Class------------------------------ ------------ ----------- ------ ------ ----------db file sequential read             465,020       3,969      9   47.4 User I/ODB CPU                                              995          11.9db file parallel read                 2,251         322    143    3.8 User I/Odb file scattered read               15,268         153     10    1.8 User I/Ogc current block 2-way              108,739         116      1    1.4 Cluster
DB File Type WaitsDB File Sequential Reads – memory starvation, non-selective indexesDB File Scattered Reads – full table scans, insufficient indexingDirect Path Writes – Appends, data loadsDirect Path Reads – Parallel slaves used to retrieve dataDB File Parallel Writes – Backup and partition useDB File Parallel Reads – Partition useDB File Single Write – File header writes, excessive data filesDirect path read temp – Temp file activity (sorts, hashes, temp tables,  bitmaps)Direct path write temp – Temp file activity (sorts, hashes, temp tables, bitmaps)
DB File Type WaitsDB File Sequential Reads – memory starvation, non-selective indexesDB File Scattered Reads – full table scans, insufficient indexingDirect Path Writes – Appends, data loadsDirect Path Reads – Parallel slaves used to retrieve dataDB File Parallel Writes – Backup and partition useDB File Parallel Reads – Partition useDB File Single Write – File header writes, excessive data filesDirect path read temp – Temp file activity (sorts, hashes, temp tables,  bitmaps)Direct path write temp – Temp file activity (sorts, hashes, temp tables, bitmaps)
DB File Type WaitsDB File Sequential Reads – memory starvation, non-selective indexesDB File Scattered Reads – full table scans, insufficient indexingDirect Path Writes – Appends, data loadsDirect Path Reads – Parallel slaves used to retrieve dataDB File Parallel Writes – Backup and partition useDB File Parallel Reads – Partition useDB File Single Write – File header writes, excessive data filesDirect path read temp – Temp file activity (sorts, hashes, temp tables,  bitmaps)Direct path write temp – Temp file activity (sorts, hashes, temp tables, bitmaps)
DB File Type WaitsDB File Sequential Reads – memory starvation, non-selective indexesDB File Scattered Reads – full table scans, insufficient indexingDirect Path Writes – Appends, data loadsDirect Path Reads – Parallel slaves used to retrieve dataDB File Parallel Writes – Backup and partition useDB File Parallel Reads – Partition useDB File Single Write – File header writes, excessive data filesDirect path read temp – Temp file activity (sorts, hashes, temp tables,  bitmaps)Direct path write temp – Temp file activity (sorts, hashes, temp tables, bitmaps)
DB File Type WaitsDB File Sequential Reads – memory starvation, non-selective indexesDB File Scattered Reads – full table scans, insufficient indexingDirect Path Writes – Appends, data loadsDirect Path Reads – Parallel slaves used to retrieve dataDB File Parallel Writes – Backup and partition useDB File Parallel Reads – Partition useDB File Single Write – File header writes, excessive data filesDirect path read temp – Temp file activity (sorts, hashes, temp tables,  bitmaps)Direct path write temp – Temp file activity (sorts, hashes, temp tables, bitmaps)
DB File Type WaitsDB File Sequential Reads – memory starvation, non-selective indexesDB File Scattered Reads – full table scans, insufficient indexingDirect Path Writes – Appends, data loadsDirect Path Reads – Parallel slaves used to retrieve dataDB File Parallel Writes – Backup and partition useDB File Parallel Reads – Partition useDB File Single Write – File header writes, excessive data filesDirect path read temp – Temp file activity (sorts, hashes, temp tables,  bitmaps)Direct path write temp – Temp file activity (sorts, hashes, temp tables, bitmaps)
DB File Type WaitsDB File Sequential Reads – memory starvation, non-selective indexesDB File Scattered Reads – full table scans, insufficient indexingDirect Path Writes – Appends, data loadsDirect Path Reads – Parallel slaves used to retrieve dataDB File Parallel Writes – Backup and partition useDB File Parallel Reads – Partition useDB File Single Write – File header writes, excessive data filesDirect path read temp – Temp file activity (sorts, hashes, temp tables,  bitmaps)Direct path write temp – Temp file activity (sorts, hashes, temp tables, bitmaps)
DB File Type WaitsDB File Sequential Reads – memory starvation, non-selective indexesDB File Scattered Reads – full table scans, insufficient indexingDirect Path Writes – Appends, data loadsDirect Path Reads – Parallel slaves used to retrieve dataDB File Parallel Writes – Backup and partition useDB File Parallel Reads – Partition useDB File Single Write – File header writes, excessive data filesDirect path read temp – Temp file activity (sorts, hashes, temp tables,  bitmaps)Direct path write temp – Temp file activity (sorts, hashes, temp tables, bitmaps)
Buffer Type Waitslatch: cache buffers chains – Hot blocks, check for hot objectsfree buffer waits – Insufficient buffers, processes holding buffers too 	long, IO subsystem over loadedbuffer busy waits – See what is causing them further along in reportgc buffer busy – Overloaded interconnect, find problem objects and tunelog buffer space – High load, too small a log buffer, increase log buffer sizelatch: cache buffers lru chain – Freelist issues, hot blockslatch: cache buffer handles – Freelist issues, hot blocksbuffer busy - See what is causing them further along in reportno free buffers – Insufficient buffers, dbwr contention
Buffer Type Waitslatch: cache buffers chains – Hot blocks, check for hot objectsfree buffer waits – Insufficient buffers, processes holding buffers 	too long, IO subsystem over loadedbuffer busy waits – See what is causing them further along in reportgc buffer busy – Overloaded interconnect, find problem objects and tunelog buffer space – High load, too small a log buffer, increase log buffer sizelatch: cache buffers lru chain – Freelist issues, hot blockslatch: cache buffer handles – Freelist issues, hot blocksbuffer busy - See what is causing them further along in reportno free buffers – Insufficient buffers, dbwr contention
Buffer Type Waitslatch: cache buffers chains – Hot blocks, check for hot objectsfree buffer waits – Insufficient buffers, processes holding buffers too long, IO subsystem over loadedbuffer busy waits – See what is causing them further along in reportgc buffer busy – Overloaded interconnect, find problem objects and tunelog buffer space – High load, too small a log buffer, increase log buffer sizelatch: cache buffers lru chain – Freelist issues, hot blockslatch: cache buffer handles – Freelist issues, hot blocksbuffer busy - See what is causing them further along in reportno free buffers – Insufficient buffers, dbwr contention
Buffer Type Waitslatch: cache buffers chains – Hot blocks, check for hot objectsfree buffer waits – Insufficient buffers, processes holding buffers too long, IO subsystem over loadedbuffer busy waits – See what is causing them further along in reportgc buffer busy – Overloaded interconnect, find problem objects and tunelog buffer space – High load, too small a log buffer, increase log buffer sizelatch: cache buffers lru chain – Freelist issues, hot blockslatch: cache buffer handles – Freelist issues, hot blocksbuffer busy - See what is causing them further along in reportno free buffers – Insufficient buffers, dbwr contention
Buffer Type Waitslatch: cache buffers chains – Hot blocks, check for hot objectsfree buffer waits – Insufficient buffers, processes holding buffers too long, IO subsystem over loadedbuffer busy waits – See what is causing them further along in reportgc buffer busy – Overloaded interconnect, find problem objects and tunelog buffer space – High load, too small a log buffer, increase log buffer sizelatch: cache buffers lru chain – Freelist issues, hot blockslatch: cache buffer handles – Freelist issues, hot blocksbuffer busy - See what is causing them further along in reportno free buffers – Insufficient buffers, dbwr contention
Log Type Waitslog file parallel write – Look  for log file contentionlog buffer space – Look at increasing log buffer sizelog file switch (checkpoint incomplete) – May indicate excessive db files or slow IO subsystemlog file switch (archiving needed) – Indicates archive files are written too slowlylog file switch completion – May need more log files per threadlog file sync – Could indicate excessive commits
Log Type Waitslog file parallel write – Look  for log file contentionlog buffer space – Look at increasing log buffer sizelog file switch (checkpoint incomplete) – May indicate excessive db files or slow IO subsystemlog file switch (archiving needed) – Indicates archive files are written too slowlylog file switch completion – May need more log files per threadlog file sync – Could indicate excessive commits
Log Type Waitslog file parallel write – Look  for log file contentionlog buffer space – Look at increasing log buffer sizelog file switch (checkpoint incomplete) – May indicate excessive db files or slow IO subsystemlog file switch (archiving needed) – Indicates archive files are written too slowlylog file switch completion – May need more log files per threadlog file sync – Could indicate excessive commits
Log Type Waitslog file parallel write – Look  for log file contentionlog buffer space – Look at increasing log buffer sizelog file switch (checkpoint incomplete) – May indicate excessive db files or slow IO subsystemlog file switch (archiving needed) – Indicates archive files are written too slowlylog file switch completion – May need more log files per threadlog file sync – Could indicate excessive commits
PX Type WaitsPX Deq: Msg Fragment – PEM maybe too smallPX qref latch - Data is produced faster than it is consumed, look at PEMPX Deq Credit: send blkd – Look at PEM size and parallel query into non-parallel DML
GC Eventsgccr multi block request – Full table or index scansgc current multi block request – Full table or index scansgccr block 2-way – Blocks are busy in another instance, check for block level contention or hot blocksgccr block 3-way – Blocks are busy in another instance, check for block level contention or hot blocksgccr block busy – Blocks are busy in another instance, check for block level contention or hot blocksgccr block congested – cr block congestion, check for hot blocks or busy interconnectgccr block lost – Indicates interconnect issues and contentiongc current block 2-way – Blocks are busy in another instance, check for block level contention or hot blocksgc current block 3-way – Blocks are busy in another instance, check for block level contention or hot blocksgc current block busy – Block is already involved in GC operation, shows hot blocks or congestiongc current block congested – current block congestion, check for hot blocks or busy interconnectgc current block lost - Indicates interconnect issues and contention
GC Eventsgccr multi block request – Full table or index scansgc current multi block request – Full table or index scansgccr block 2-way – Blocks are busy in another instance, check for block level contention or hot blocksgccr block 3-way – Blocks are busy in another instance, check for block level contention or hot blocksgccr block busy – Blocks are busy in another instance, check for block level contention or hot blocksgccr block congested – cr block congestion, check for hot blocks or busy interconnectgccr block lost – Indicates interconnect issues and contentiongc current block 2-way – Blocks are busy in another instance, check for block level contention or hot blocksgc current block 3-way – Blocks are busy in another instance, check for block level contention or hot blocksgc current block busy – Block is already involved in GC operation, shows hot blocks or congestiongc current block congested – current block congestion, check for hot blocks or busy interconnectgc current block lost - Indicates interconnect issues and contention
GC Eventsgccr multi block request – Full table or index scansgc current multi block request – Full table or index scansgccr block 2-way – Blocks are busy in another instance, check for block level contention or hot blocksgccr block 3-way – Blocks are busy in another instance, check for block level contention or hot blocksgccr block busy – Blocks are busy in another instance, check for block level contention or hot blocksgccr block congested – cr block congestion, check for hot blocks or busy interconnectgccr block lost – Indicates interconnect issues and contentiongc current block 2-way – Blocks are busy in another instance, check for block level contention or hot blocksgc current block 3-way – Blocks are busy in another instance, check for block level contention or hot blocksgc current block busy – Block is already involved in GC operation, shows hot blocks or congestiongc current block congested – current block congestion, check for hot blocks or busy interconnectgc current block lost - Indicates interconnect issues and contention
Undo Eventsundo segment extension – If excessive, tune undolatch: In memory undo latch – If excessive could be bug, check for your version, may have to turn off in memory undowait for a undo record – Usually only during recovery of large transactions, look at turning off parallel undo recovery.

More Related Content

PPTX
AWR and ASH Deep Dive
PDF
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
PDF
Oracle statistics by example
PPT
Using Statspack and AWR for Memory Monitoring and Tuning
PDF
AWR & ASH Analysis
DOC
Analyzing awr report
PDF
Oracle Performance Tuning Fundamentals
DOC
AWR reports-Measuring CPU
AWR and ASH Deep Dive
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
Oracle statistics by example
Using Statspack and AWR for Memory Monitoring and Tuning
AWR & ASH Analysis
Analyzing awr report
Oracle Performance Tuning Fundamentals
AWR reports-Measuring CPU

What's hot (20)

PDF
Oracle SQL 1 Day Tutorial
PDF
AWR Ambiguity: Performance reasoning when the numbers don't add up
PDF
Analyzing and Interpreting AWR
PDF
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
PPTX
Part1 of SQL Tuning Workshop - Understanding the Optimizer
PPTX
My SYSAUX tablespace is full - please help
PDF
Oracle Latch and Mutex Contention Troubleshooting
PDF
Maximum Availability Architecture - Best Practices for Oracle Database 19c
PDF
Deep review of LMS process
PPTX
Oracle ASM Training
PDF
Understanding oracle rac internals part 1 - slides
PDF
Tanel Poder - Scripts and Tools short
PDF
Oracle 資料庫檔案介紹
PDF
Understanding oracle rac internals part 2 - slides
PDF
Average Active Sessions RMOUG2007
PDF
Oracle Database SQL Tuning Concept
PDF
Oracle SGA 介紹
PPT
Ash masters : advanced ash analytics on Oracle
PDF
Oracle Database Performance Tuning Concept
PDF
Oracle Data Guard による高可用性
Oracle SQL 1 Day Tutorial
AWR Ambiguity: Performance reasoning when the numbers don't add up
Analyzing and Interpreting AWR
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Part1 of SQL Tuning Workshop - Understanding the Optimizer
My SYSAUX tablespace is full - please help
Oracle Latch and Mutex Contention Troubleshooting
Maximum Availability Architecture - Best Practices for Oracle Database 19c
Deep review of LMS process
Oracle ASM Training
Understanding oracle rac internals part 1 - slides
Tanel Poder - Scripts and Tools short
Oracle 資料庫檔案介紹
Understanding oracle rac internals part 2 - slides
Average Active Sessions RMOUG2007
Oracle Database SQL Tuning Concept
Oracle SGA 介紹
Ash masters : advanced ash analytics on Oracle
Oracle Database Performance Tuning Concept
Oracle Data Guard による高可用性
Ad

Viewers also liked (20)

PPT
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
PDF
Reading AWR or Statspack Report - Straight to the Goal
PPTX
Oracle Oracle Performance Tuning
PPT
Using AWR for SQL Analysis
PDF
AWR, ASH with EM13 at HotSos 2016
PPT
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
PDF
FlashSystems 2016 update
PDF
Oracle 11G SCAN: Concepts and Implementation Experience Sharing
PDF
Oracle SQL tuning with SQL Plan Management
PDF
3 ways to reduce Oracle license costs
PDF
Awr1page - Sanity checking time instrumentation in AWR reports
PPTX
Using SQL Plan Management (SPM) to balance Plan Flexibility and Plan Stability
PDF
My Experience Using Oracle SQL Plan Baselines 11g/12c
PPSX
How a Developer can Troubleshoot a SQL performing poorly on a Production DB
PDF
Benchmarking Oracle I/O Performance with Orion by Alex Gorbachev
PPTX
Oracle AWR Data mining
PDF
Oracle SQL Performance Tuning and Optimization v26 chapter 1
TXT
Oracle sql tuning
PDF
Lecture 5 1_mass_and_density
PDF
Lecture 8 2_magnetic_force
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
Reading AWR or Statspack Report - Straight to the Goal
Oracle Oracle Performance Tuning
Using AWR for SQL Analysis
AWR, ASH with EM13 at HotSos 2016
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
FlashSystems 2016 update
Oracle 11G SCAN: Concepts and Implementation Experience Sharing
Oracle SQL tuning with SQL Plan Management
3 ways to reduce Oracle license costs
Awr1page - Sanity checking time instrumentation in AWR reports
Using SQL Plan Management (SPM) to balance Plan Flexibility and Plan Stability
My Experience Using Oracle SQL Plan Baselines 11g/12c
How a Developer can Troubleshoot a SQL performing poorly on a Production DB
Benchmarking Oracle I/O Performance with Orion by Alex Gorbachev
Oracle AWR Data mining
Oracle SQL Performance Tuning and Optimization v26 chapter 1
Oracle sql tuning
Lecture 5 1_mass_and_density
Lecture 8 2_magnetic_force
Ad

Similar to Using AWR/Statspack for Wait Analysis (20)

TXT
Awrrpt 1 3004_3005
PPT
Using AWR for IO Subsystem Analysis
PPT
Thomas+Niewel+ +Oracletuning
PDF
Troubleshooting Complex Oracle Performance Problems with Tanel Poder
PPT
AWR, ADDM, ASH, Metrics and Advisors.ppt
PPT
Oracle Open World Thursday 230 ashmasters
PPTX
EMC Dteata domain advanced command troubleshoot
PPT
Oow2007 performance
PPT
Oracle 10g Performance: chapter 00 statspack
PDF
Troubleshooting Complex Performance issues - Oracle SEG$ contention
PDF
RMAN – The Pocket Knife of a DBA
PDF
Build an High-Performance and High-Durable Block Storage Service Based on Ceph
PDF
System Capa Planning_DBA oracle edu
PPT
Rmoug ashmaster
PPTX
SQLIO - measuring storage performance
DOC
Rman duplicate-database-on-the-same-host1
PPT
les_02.ppt of the Oracle course train_2 file
PPT
11thingsabout11g 12659705398222 Phpapp01
PPT
11 Things About11g
PPTX
SQL Tuning, takes 3 to tango
Awrrpt 1 3004_3005
Using AWR for IO Subsystem Analysis
Thomas+Niewel+ +Oracletuning
Troubleshooting Complex Oracle Performance Problems with Tanel Poder
AWR, ADDM, ASH, Metrics and Advisors.ppt
Oracle Open World Thursday 230 ashmasters
EMC Dteata domain advanced command troubleshoot
Oow2007 performance
Oracle 10g Performance: chapter 00 statspack
Troubleshooting Complex Performance issues - Oracle SEG$ contention
RMAN – The Pocket Knife of a DBA
Build an High-Performance and High-Durable Block Storage Service Based on Ceph
System Capa Planning_DBA oracle edu
Rmoug ashmaster
SQLIO - measuring storage performance
Rman duplicate-database-on-the-same-host1
les_02.ppt of the Oracle course train_2 file
11thingsabout11g 12659705398222 Phpapp01
11 Things About11g
SQL Tuning, takes 3 to tango

Recently uploaded (20)

PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Electronic commerce courselecture one. Pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Modernizing your data center with Dell and AMD
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Reach Out and Touch Someone: Haptics and Empathic Computing
Per capita expenditure prediction using model stacking based on satellite ima...
NewMind AI Monthly Chronicles - July 2025
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
20250228 LYD VKU AI Blended-Learning.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Digital-Transformation-Roadmap-for-Companies.pptx
Big Data Technologies - Introduction.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
The Rise and Fall of 3GPP – Time for a Sabbatical?
Understanding_Digital_Forensics_Presentation.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Electronic commerce courselecture one. Pdf
A Presentation on Artificial Intelligence
Modernizing your data center with Dell and AMD

Using AWR/Statspack for Wait Analysis

  • 1. Using AWR For Wait AnalysisMike Ault, Oracle GuruMarch 2011The World’s Fastest Storage® for over thirty years!
  • 2. Michael R. Ault, Oracle Guru Nuclear Navy 6 years
  • 4. Kennedy Western University Graduate
  • 5. Bachelors Degree Computer Science
  • 6. Certified in all Oracle Versions Since 6
  • 7. Oracle DBA, author, since 1990Books by Michael R. Ault
  • 8. StatspackAnalyzer.comFree Statspack/AWR Analysis Sponsored by Texas Memory SystemsLooks for IO bottlenecks and other configuration issues.
  • 9. Straightforward tuning adviceIntroductionStatspack was introduced in 8.1.7AWR came out in Oracle10gBoth are very similarBoth provide a top-down look at performance statistics
  • 10. What Is AWR?A background processA set of tablesA set of reportsTakes snapshots of statistics every hourTakes snapshot of high-cost SQL every hour
  • 11. Preparation for AnalysisKnow your systems normal performance fingerprintBe familiar with Concepts and Tuning GuidesHave “normal” AWR/Statspacks for comparison
  • 12. Top-Down ApproachReport starts with settings overviewNext provides Top-5 waitsUse the Waits to guide further investigation
  • 13. AWR Report HeaderWORKLOAD REPOSITORY report forDB Name DB Id Instance Inst Num Startup Time Release RAC------------ ----------- ------------ -------- --------------- ----------- ---AULTDB 4030696936 aultdb1 1 04-Aug-08 10:16 11.1.0.6.0 YESHost Name Platform CPUs Cores Sockets Memory(GB)---------------- -------------------------------- ---- ----- ------- ----------aultlinux3 Linux IA (32-bit) 2 1 1 2.97 Snap Id Snap Time Sessions Curs/Sess--------- ------------------- -------- ---------Begin Snap: 91 04-Aug-08 12:00:15 41 1.2 End Snap: 92 04-Aug-08 13:00:28 47 1.1Elapsed: 60.22 (mins) DB Time: 139.52 (mins)Cache Sizes Begin End~~~~~~~~~~~ ---------- ---------- Buffer Cache: 1,312M 1,312M Std Block Size: 8K Shared Pool Size: 224M 224M Log Buffer: 10,604K
  • 14. AWR Report HeaderWORKLOAD REPOSITORY report forDB Name DB Id Instance Inst Num Startup Time Release RAC------------ ----------- ------------ -------- --------------- ----------- ---AULTDB 4030696936 aultdb1 1 04-Aug-08 10:16 11.1.0.6.0 YESHost Name Platform CPUs Cores Sockets Memory(GB)---------------- -------------------------------- ---- ----- ------- ----------aultlinux3 Linux IA (32-bit) 2 1 1 2.97 Snap Id Snap Time Sessions Curs/Sess--------- ------------------- -------- ---------Begin Snap: 91 04-Aug-08 12:00:15 41 1.2 End Snap: 92 04-Aug-08 13:00:28 47 1.1Elapsed: 60.22 (mins) DB Time: 139.52 (mins)Cache Sizes Begin End~~~~~~~~~~~ ---------- ---------- Buffer Cache: 1,312M 1,312M Std Block Size: 8K Shared Pool Size: 224M 224M Log Buffer: 10,604K
  • 15. AWR Report HeaderWORKLOAD REPOSITORY report forDB Name DB Id Instance Inst Num Startup Time Release RAC------------ ----------- ------------ -------- --------------- ----------- ---AULTDB 4030696936 aultdb1 1 04-Aug-08 10:16 11.1.0.6.0 YESHost Name Platform CPUs Cores Sockets Memory(GB)---------------- -------------------------------- ---- ----- ------- ----------aultlinux3 Linux IA (32-bit) 2 1 1 2.97 Snap Id Snap Time Sessions Curs/Sess--------- ------------------- -------- ---------Begin Snap: 91 04-Aug-08 12:00:15 41 1.2 End Snap: 92 04-Aug-08 13:00:28 47 1.1Elapsed: 60.22 (mins) DB Time: 139.52 (mins)Cache Sizes Begin End~~~~~~~~~~~ ---------- ---------- Buffer Cache: 1,312M 1,312M Std Block Size: 8K Shared Pool Size: 224M 224M Log Buffer: 10,604K
  • 16. AWR Report HeaderWORKLOAD REPOSITORY report forDB Name DB Id Instance Inst Num Startup Time Release RAC------------ ----------- ------------ -------- --------------- ----------- ---AULTDB 4030696936 aultdb1 1 04-Aug-08 10:16 11.1.0.6.0 YESHost Name Platform CPUs Cores Sockets Memory(GB)---------------- -------------------------------- ---- ----- ------- ----------aultlinux3 Linux IA (32-bit) 2 1 1 2.97 Snap Id Snap Time Sessions Curs/Sess--------- ------------------- -------- ---------Begin Snap: 91 04-Aug-08 12:00:15 41 1.2 End Snap: 92 04-Aug-08 13:00:28 47 1.1Elapsed: 60.22 (mins) DB Time: 139.52 (mins)Cache Sizes Begin End~~~~~~~~~~~ ---------- ---------- Buffer Cache: 1,312M 1,312M Std Block Size: 8K Shared Pool Size: 224M 224M Log Buffer: 10,604K
  • 17. AWR Report HeaderWORKLOAD REPOSITORY report forDB Name DB Id Instance Inst Num Startup Time Release RAC------------ ----------- ------------ -------- --------------- ----------- ---AULTDB 4030696936 aultdb1 1 04-Aug-08 10:16 11.1.0.6.0 YESHost Name Platform CPUs Cores Sockets Memory(GB)---------------- -------------------------------- ---- ----- ------- ----------aultlinux3 Linux IA (32-bit) 2 1 1 2.97 Snap Id Snap Time Sessions Curs/Sess--------- ------------------- -------- ---------Begin Snap: 91 04-Aug-08 12:00:15 41 1.2 End Snap: 92 04-Aug-08 13:00:28 47 1.1Elapsed: 60.22 (mins) DB Time: 139.52 (mins)Cache Sizes Begin End~~~~~~~~~~~ ---------- ---------- Buffer Cache: 1,312M 1,312M Std Block Size: 8K Shared Pool Size: 224M 224M Log Buffer: 10,604K
  • 18. AWR Report HeaderWORKLOAD REPOSITORY report forDB Name DB Id Instance Inst Num Startup Time Release RAC------------ ----------- ------------ -------- --------------- ----------- ---AULTDB 4030696936 aultdb1 1 04-Aug-08 10:16 11.1.0.6.0 YESHost Name Platform CPUs Cores Sockets Memory(GB)---------------- -------------------------------- ---- ----- ------- ----------aultlinux3 Linux IA (32-bit) 2 1 1 2.97 Snap Id Snap Time Sessions Curs/Sess--------- ------------------- -------- ---------Begin Snap: 91 04-Aug-08 12:00:15 41 1.2 End Snap: 92 04-Aug-08 13:00:28 47 1.1Elapsed: 60.22 (mins) DB Time: 139.52 (mins)Cache Sizes Begin End~~~~~~~~~~~ ---------- ---------- Buffer Cache: 1,312M 1,312M Std Block Size: 8K Shared Pool Size: 224M 224M Log Buffer: 10,604K
  • 19. AWR Report HeaderWORKLOAD REPOSITORY report forDB Name DB Id Instance Inst Num Startup Time Release RAC------------ ----------- ------------ -------- --------------- ----------- ---AULTDB 4030696936 aultdb1 1 04-Aug-08 10:16 11.1.0.6.0 YESHost Name Platform CPUs Cores Sockets Memory(GB)---------------- -------------------------------- ---- ----- ------- ----------aultlinux3 Linux IA (32-bit) 2 1 1 2.97 Snap Id Snap Time Sessions Curs/Sess--------- ------------------- -------- ---------Begin Snap: 91 04-Aug-08 12:00:15 41 1.2 End Snap: 92 04-Aug-08 13:00:28 47 1.1Elapsed: 60.22 (mins) DB Time: 139.52 (mins)Cache Sizes Begin End~~~~~~~~~~~ ---------- ---------- Buffer Cache: 1,312M 1,312M Std Block Size: 8K Shared Pool Size: 224M 224M Log Buffer: 10,604K
  • 20. AWR Report HeaderWORKLOAD REPOSITORY report forDB Name DB Id Instance Inst Num Startup Time Release RAC------------ ----------- ------------ -------- --------------- ----------- ---AULTDB 4030696936 aultdb1 1 04-Aug-08 10:16 11.1.0.6.0 YESHost Name Platform CPUs Cores Sockets Memory(GB)---------------- -------------------------------- ---- ----- ------- ----------aultlinux3 Linux IA (32-bit) 2 1 1 2.97 Snap Id Snap Time Sessions Curs/Sess--------- ------------------- -------- ---------Begin Snap: 91 04-Aug-08 12:00:15 41 1.2 End Snap: 92 04-Aug-08 13:00:28 47 1.1Elapsed: 60.22 (mins) DB Time: 139.52 (mins)Cache Sizes Begin End~~~~~~~~~~~ ---------- ---------- Buffer Cache: 1,312M 1,312M Std Block Size: 8K Shared Pool Size: 224M 224M Log Buffer: 10,604K
  • 21. AWR Report HeaderWORKLOAD REPOSITORY report forDB Name DB Id Instance Inst Num Startup Time Release RAC------------ ----------- ------------ -------- --------------- ----------- ---AULTDB 4030696936 aultdb1 1 04-Aug-08 10:16 11.1.0.6.0 YESHost Name Platform CPUs Cores Sockets Memory(GB)---------------- -------------------------------- ---- ----- ------- ----------aultlinux3 Linux IA (32-bit) 2 1 1 2.97 Snap Id Snap Time Sessions Curs/Sess--------- ------------------- -------- ---------Begin Snap: 91 04-Aug-08 12:00:15 41 1.2 End Snap: 92 04-Aug-08 13:00:28 47 1.1Elapsed: 60.22 (mins) DB Time: 139.52 (mins)Cache Sizes Begin End~~~~~~~~~~~ ---------- ---------- Buffer Cache: 1,312M 1,312M Std Block Size: 8K Shared Pool Size: 224M 224M Log Buffer: 10,604K
  • 22. Know Your Load Type!Online Transaction ProcessingFew readsMany writesMany small transactionsLook for redo/undo and sequential read issuesDecision Support/Data WarehouseMany readsFew writes (other then possible temp)Few transactionsLook for sort/workarea and scattered read issuesMixed or Hybrid
  • 23. Load Profile SectionLoad Profile Per Second Per Transaction Per Exec Per Call~~~~~~~~~~~~ --------------- --------------- ---------- ---------- DB Time(s): 2.3 7.1 0.63 1.05 DB CPU(s): 0.3 0.9 0.07 0.13 Redo size: 800.5 2,461.8 Logical reads: 6,307.6 19,396.7 Block changes: 3.6 10.9 Physical reads: 2,704.9 8,317.8 Physical writes: 86.9 267.3 User calls: 2.2 6.8 Parses: 2.0 6.1 Hard parses: 0.0 0.1W/A MB processed: 932,965.4 2,868,990.9 Logons: 0.1 0.2 Executes: 3.7 11.3 Rollbacks: 0.1 0.3 Transactions: 0.3
  • 24. Load Profile SectionLoad Profile Per Second Per Transaction Per Exec Per Call~~~~~~~~~~~~ --------------- --------------- ---------- ---------- DB Time(s): 2.3 7.1 0.63 1.05 DB CPU(s): 0.3 0.9 0.07 0.13 Redo size: 800.5 2,461.8 Logical reads: 6,307.6 19,396.7 Block changes: 3.6 10.9 Physical reads: 2,704.9 8,317.8 Physical writes: 86.9 267.3 User calls: 2.2 6.8 Parses: 2.0 6.1 Hard parses: 0.0 0.1W/A MB processed: 932,965.4 2,868,990.9 Logons: 0.1 0.2 Executes: 3.7 11.3 Rollbacks: 0.1 0.3 Transactions: 0.3
  • 25. Load Profile SectionLoad Profile Per Second Per Transaction Per Exec Per Call~~~~~~~~~~~~ --------------- --------------- ---------- ---------- DB Time(s): 2.3 7.1 0.63 1.05 DB CPU(s): 0.3 0.9 0.07 0.13 Redo size: 800.5 2,461.8 Logical reads: 6,307.6 19,396.7 Block changes: 3.6 10.9 Physical reads: 2,704.9 8,317.8 Physical writes: 86.9 267.3 User calls: 2.2 6.8 Parses: 2.0 6.1 Hard parses: 0.0 0.1W/A MB processed: 932,965.4 2,868,990.9 Logons: 0.1 0.2 Executes: 3.7 11.3 Rollbacks: 0.1 0.3 Transactions: 0.3
  • 26. Load Profile SectionLoad Profile Per Second Per Transaction Per Exec Per Call~~~~~~~~~~~~ --------------- --------------- ---------- ---------- DB Time(s): 2.3 7.1 0.63 1.05 DB CPU(s): 0.3 0.9 0.07 0.13 Redo size: 800.5 2,461.8 Logical reads: 6,307.6 19,396.7 Block changes: 3.6 10.9 Physical reads: 2,704.9 8,317.8 Physical writes: 86.9 267.3 User calls: 2.2 6.8 Parses: 2.0 6.1 Hard parses: 0.0 0.1W/A MB processed: 932,965.4 2,868,990.9 Logons: 0.1 0.2 Executes: 3.7 11.3 Rollbacks: 0.1 0.3 Transactions: 0.3
  • 27. Load Profile SectionLoad Profile Per Second Per Transaction Per Exec Per Call~~~~~~~~~~~~ --------------- --------------- ---------- ---------- DB Time(s): 2.3 7.1 0.63 1.05 DB CPU(s): 0.3 0.9 0.07 0.13 Redo size: 800.5 2,461.8 Logical reads: 6,307.6 19,396.7 Block changes: 3.6 10.9 Physical reads: 2,704.9 8,317.8 Physical writes: 86.9 267.3 User calls: 2.2 6.8 Parses: 2.0 6.1 Hard parses: 0.0 0.1W/A MB processed: 932,965.4 2,868,990.9 Logons: 0.1 0.2 Executes: 3.7 11.3 Rollbacks: 0.1 0.3 Transactions: 0.3
  • 28. Load Profile SectionLoad Profile Per Second Per Transaction Per Exec Per Call~~~~~~~~~~~~ --------------- --------------- ---------- ---------- DB Time(s): 2.3 7.1 0.63 1.05 DB CPU(s): 0.3 0.9 0.07 0.13 Redo size: 800.5 2,461.8 Logical reads: 6,307.6 19,396.7 Block changes: 3.6 10.9 Physical reads: 2,704.9 8,317.8 Physical writes: 86.9 267.3 User calls: 2.2 6.8 Parses: 2.0 6.1 Hard parses: 0.0 0.1W/A MB processed: 932,965.4 2,868,990.9 Logons: 0.1 0.2 Executes: 3.7 11.3 Rollbacks: 0.1 0.3 Transactions: 0.3
  • 29. Load Profile SectionLoad Profile Per Second Per Transaction Per Exec Per Call~~~~~~~~~~~~ --------------- --------------- ---------- ---------- DB Time(s): 2.3 7.1 0.63 1.05 DB CPU(s): 0.3 0.9 0.07 0.13 Redo size: 800.5 2,461.8 Logical reads: 6,307.6 19,396.7 Block changes: 3.6 10.9 Physical reads: 2,704.9 8,317.8 Physical writes: 86.9 267.3 User calls: 2.2 6.8 Parses: 2.0 6.1 Hard parses: 0.0 0.1W/A MB processed: 932,965.4 2,868,990.9 Logons: 0.1 0.2 Executes: 3.7 11.3 Rollbacks: 0.1 0.3 Transactions: 0.3
  • 30. Load Profile SectionLoad Profile Per Second Per Transaction Per Exec Per Call~~~~~~~~~~~~ --------------- --------------- ---------- ---------- DB Time(s): 2.3 7.1 0.63 1.05 DB CPU(s): 0.3 0.9 0.07 0.13 Redo size: 800.5 2,461.8 Logical reads: 6,307.6 19,396.7 Block changes: 3.6 10.9 Physical reads: 2,704.9 8,317.8 Physical writes: 86.9 267.3 User calls: 2.2 6.8 Parses: 2.0 6.1 Hard parses: 0.0 0.1W/A MB processed: 932,965.4 2,868,990.9 Logons: 0.1 0.2 Executes: 3.7 11.3 Rollbacks: 0.1 0.3 Transactions: 0.3
  • 31. What Are Your EfficienciesShould be close to 100%Parse issues usually are a result of:Bad bind variable usageInsufficient memoryWill also be co-indicated by low percentage of memory for multiple SQL execution
  • 32. Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Buffer Nowait %: 100.00 Redo NoWait %: 99.97 Buffer Hit %: 96.09 In-memory Sort %: 100.00 Library Hit %: 98.17 Soft Parse %: 97.88 Execute to Parse %: 45.80 Latch Hit %: 99.95Parse CPU to ParseElapsd %: 0.00 % Non-Parse CPU: 99.77Shared Pool Statistics Begin End ------ ------ Memory Usage %: 81.53 85.39 % SQL with executions>1: 79.29 79.48 % Memory for SQL w/exec>1: 76.73 78.19
  • 33. Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Buffer Nowait %: 100.00 Redo NoWait %: 99.97 Buffer Hit %: 96.09 In-memory Sort %: 100.00 Library Hit %: 98.17 Soft Parse %: 97.88 Execute to Parse %: 45.80 Latch Hit %: 99.95Parse CPU to ParseElapsd %: 0.00 % Non-Parse CPU: 99.77Shared Pool Statistics Begin End ------ ------ Memory Usage %: 81.53 85.39 % SQL with executions>1: 79.29 79.48 % Memory for SQL w/exec>1: 76.73 78.19
  • 34. Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Buffer Nowait %: 100.00 Redo NoWait %: 99.97 Buffer Hit %: 96.09 In-memory Sort %: 100.00 Library Hit %: 98.17 Soft Parse %: 97.88 Execute to Parse %: 45.80 Latch Hit %: 99.95Parse CPU to ParseElapsd %: 0.00 % Non-Parse CPU: 99.77Shared Pool Statistics Begin End ------ ------ Memory Usage %: 81.53 85.39 % SQL with executions>1: 79.29 79.48 % Memory for SQL w/exec>1: 76.73 78.19
  • 35. Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Buffer Nowait %: 100.00 Redo NoWait %: 99.97 Buffer Hit %: 96.09 In-memory Sort %: 100.00 Library Hit %: 98.17 Soft Parse %: 97.88 Execute to Parse %: 45.80 Latch Hit %: 99.95Parse CPU to ParseElapsd %: 0.00 % Non-Parse CPU: 99.77Shared Pool Statistics Begin End ------ ------ Memory Usage %: 81.53 85.39 % SQL with executions>1: 79.29 79.48 % Memory for SQL w/exec>1: 76.73 78.19
  • 36. Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Buffer Nowait %: 100.00 Redo NoWait %: 99.97 Buffer Hit %: 96.09 In-memory Sort %: 100.00 Library Hit %: 98.17 Soft Parse %: 97.88 Execute to Parse %: 45.80 Latch Hit %: 99.95Parse CPU to ParseElapsd %: 0.00 % Non-Parse CPU: 99.77Shared Pool Statistics Begin End ------ ------ Memory Usage %: 81.53 85.39 % SQL with executions>1: 79.29 79.48 % Memory for SQL w/exec>1: 76.73 78.19
  • 37. Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Buffer Nowait %: 100.00 Redo NoWait %: 99.97 Buffer Hit %: 96.09 In-memory Sort %: 100.00 Library Hit %: 98.17 Soft Parse %: 97.88 Execute to Parse %: 45.80 Latch Hit %: 99.95Parse CPU to ParseElapsd %: 0.00 % Non-Parse CPU: 99.77Shared Pool Statistics Begin End ------ ------ Memory Usage %: 81.53 85.39 % SQL with executions>1: 79.29 79.48 % Memory for SQL w/exec>1: 76.73 78.19
  • 38. Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Buffer Nowait %: 100.00 Redo NoWait %: 99.97 Buffer Hit %: 96.09 In-memory Sort %: 100.00 Library Hit %: 98.17 Soft Parse %: 97.88 Execute to Parse %: 45.80 Latch Hit %: 99.95Parse CPU to ParseElapsd %: 0.00 % Non-Parse CPU: 99.77Shared Pool Statistics Begin End ------ ------ Memory Usage %: 81.53 85.39 % SQL with executions>1: 79.29 79.48 % Memory for SQL w/exec>1: 76.73 78.19
  • 39. Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Buffer Nowait %: 100.00 Redo NoWait %: 99.97 Buffer Hit %: 96.09 In-memory Sort %: 100.00 Library Hit %: 98.17 Soft Parse %: 97.88 Execute to Parse %: 45.80 Latch Hit %: 99.95Parse CPU to ParseElapsd %: 0.00 % Non-Parse CPU: 99.77Shared Pool Statistics Begin End ------ ------ Memory Usage %: 81.53 85.39 % SQL with executions>1: 79.29 79.48 % Memory for SQL w/exec>1: 76.73 78.19
  • 40. Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Buffer Nowait %: 100.00 Redo NoWait %: 99.97 Buffer Hit %: 96.09 In-memory Sort %: 100.00 Library Hit %: 98.17 Soft Parse %: 97.88 Execute to Parse %: 45.80 Latch Hit %: 99.95Parse CPU to ParseElapsd %: 0.00 % Non-Parse CPU: 99.77Shared Pool Statistics Begin End ------ ------ Memory Usage %: 81.53 85.39 % SQL with executions>1: 79.29 79.48 % Memory for SQL w/exec>1: 76.73 78.19
  • 41. Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Buffer Nowait %: 100.00 Redo NoWait %: 99.97 Buffer Hit %: 96.09 In-memory Sort %: 100.00 Library Hit %: 98.17 Soft Parse %: 97.88 Execute to Parse %: 45.80 Latch Hit %: 99.95Parse CPU to ParseElapsd %: 0.00 % Non-Parse CPU: 99.77Shared Pool Statistics Begin End ------ ------ Memory Usage %: 81.53 85.39 % SQL with executions>1: 79.29 79.48 % Memory for SQL w/exec>1: 76.73 78.19
  • 42. Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Buffer Nowait %: 100.00 Redo NoWait %: 99.97 Buffer Hit %: 96.09 In-memory Sort %: 100.00 Library Hit %: 98.17 Soft Parse %: 97.88 Execute to Parse %: 45.80 Latch Hit %: 99.95Parse CPU to ParseElapsd %: 0.00 % Non-Parse CPU: 99.77Shared Pool Statistics Begin End ------ ------ Memory Usage %: 81.53 85.39 % SQL with executions>1: 79.29 79.48 % Memory for SQL w/exec>1: 76.73 78.19
  • 43. Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Buffer Nowait %: 100.00 Redo NoWait %: 99.97 Buffer Hit %: 96.09 In-memory Sort %: 100.00 Library Hit %: 98.17 Soft Parse %: 97.88 Execute to Parse %: 45.80 Latch Hit %: 99.95Parse CPU to ParseElapsd %: 0.00 % Non-Parse CPU: 99.77Shared Pool Statistics Begin End ------ ------ Memory Usage %: 81.53 85.39 % SQL with executions>1: 79.29 79.48 % Memory for SQL w/exec>1: 76.73 78.19
  • 44. Load Profile SectionInstance Efficiency Percentages (Target 100%)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Buffer Nowait %: 100.00 Redo NoWait %: 99.97 Buffer Hit %: 96.09 In-memory Sort %: 100.00 Library Hit %: 98.17 Soft Parse %: 97.88 Execute to Parse %: 45.80 Latch Hit %: 99.95Parse CPU to ParseElapsd %: 0.00 % Non-Parse CPU: 99.77Shared Pool Statistics Begin End ------ ------ Memory Usage %: 81.53 85.39 % SQL with executions>1: 79.29 79.48 % Memory for SQL w/exec>1: 76.73 78.19
  • 45. Top 5 Waits SectionCritical to look closely at this sectionUse highest wait times to guide investigationDB FILE type waits – physical IOBUFFER type waits – Logical IOLOG type waits – Redo relatedPX – Parallel QueryGC – Global Cache (RAC related)Undo – Undo or rollback segment related
  • 46. Top 5 Waits SectionTop 5 Timed Foreground Events~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Avg wait % DBEvent Waits Time(s) (ms) time Wait Class------------------------------ ------------ ----------- ------ ------ ----------db file sequential read 465,020 3,969 9 47.4 User I/ODB CPU 995 11.9db file parallel read 2,251 322 143 3.8 User I/Odb file scattered read 15,268 153 10 1.8 User I/Ogc current block 2-way 108,739 116 1 1.4 Cluster
  • 47. Top 5 Waits SectionTop 5 Timed Foreground Events~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Avg wait % DBEvent Waits Time(s) (ms) time Wait Class------------------------------ ------------ ----------- ------ ------ ----------db file sequential read 465,020 3,969 9 47.4 User I/ODB CPU 995 11.9db file parallel read 2,251 322 143 3.8 User I/Odb file scattered read 15,268 153 10 1.8 User I/Ogc current block 2-way 108,739 116 1 1.4 Cluster
  • 48. Top 5 Waits SectionTop 5 Timed Foreground Events~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Avg wait % DBEvent Waits Time(s) (ms) time Wait Class------------------------------ ------------ ----------- ------ ------ ----------db file sequential read 465,020 3,969 9 47.4 User I/ODB CPU 995 11.9db file parallel read 2,251 322 143 3.8 User I/Odb file scattered read 15,268 153 10 1.8 User I/Ogc current block 2-way 108,739 116 1 1.4 Cluster
  • 49. Top 5 Waits SectionTop 5 Timed Foreground Events~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Avg wait % DBEvent Waits Time(s) (ms) time Wait Class------------------------------ ------------ ----------- ------ ------ ----------db file sequential read 465,020 3,969 9 47.4 User I/ODB CPU 995 11.9db file parallel read 2,251 322 143 3.8 User I/Odb file scattered read 15,268 153 10 1.8 User I/Ogc current block 2-way 108,739 116 1 1.4 Cluster
  • 50. Top 5 Waits SectionTop 5 Timed Foreground Events~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Avg wait % DBEvent Waits Time(s) (ms) time Wait Class------------------------------ ------------ ----------- ------ ------ ----------db file sequential read 465,020 3,969 9 47.4 User I/ODB CPU 995 11.9db file parallel read 2,251 322 143 3.8 User I/Odb file scattered read 15,268 153 10 1.8 User I/Ogc current block 2-way 108,739 116 1 1.4 Cluster
  • 51. Top 5 Waits SectionTop 5 Timed Foreground Events~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Avg wait % DBEvent Waits Time(s) (ms) time Wait Class------------------------------ ------------ ----------- ------ ------ ----------db file sequential read 465,020 3,969 9 47.4 User I/ODB CPU 995 11.9db file parallel read 2,251 322 143 3.8 User I/Odb file scattered read 15,268 153 10 1.8 User I/Ogc current block 2-way 108,739 116 1 1.4 Cluster
  • 52. DB File Type WaitsDB File Sequential Reads – memory starvation, non-selective indexesDB File Scattered Reads – full table scans, insufficient indexingDirect Path Writes – Appends, data loadsDirect Path Reads – Parallel slaves used to retrieve dataDB File Parallel Writes – Backup and partition useDB File Parallel Reads – Partition useDB File Single Write – File header writes, excessive data filesDirect path read temp – Temp file activity (sorts, hashes, temp tables, bitmaps)Direct path write temp – Temp file activity (sorts, hashes, temp tables, bitmaps)
  • 53. DB File Type WaitsDB File Sequential Reads – memory starvation, non-selective indexesDB File Scattered Reads – full table scans, insufficient indexingDirect Path Writes – Appends, data loadsDirect Path Reads – Parallel slaves used to retrieve dataDB File Parallel Writes – Backup and partition useDB File Parallel Reads – Partition useDB File Single Write – File header writes, excessive data filesDirect path read temp – Temp file activity (sorts, hashes, temp tables, bitmaps)Direct path write temp – Temp file activity (sorts, hashes, temp tables, bitmaps)
  • 54. DB File Type WaitsDB File Sequential Reads – memory starvation, non-selective indexesDB File Scattered Reads – full table scans, insufficient indexingDirect Path Writes – Appends, data loadsDirect Path Reads – Parallel slaves used to retrieve dataDB File Parallel Writes – Backup and partition useDB File Parallel Reads – Partition useDB File Single Write – File header writes, excessive data filesDirect path read temp – Temp file activity (sorts, hashes, temp tables, bitmaps)Direct path write temp – Temp file activity (sorts, hashes, temp tables, bitmaps)
  • 55. DB File Type WaitsDB File Sequential Reads – memory starvation, non-selective indexesDB File Scattered Reads – full table scans, insufficient indexingDirect Path Writes – Appends, data loadsDirect Path Reads – Parallel slaves used to retrieve dataDB File Parallel Writes – Backup and partition useDB File Parallel Reads – Partition useDB File Single Write – File header writes, excessive data filesDirect path read temp – Temp file activity (sorts, hashes, temp tables, bitmaps)Direct path write temp – Temp file activity (sorts, hashes, temp tables, bitmaps)
  • 56. DB File Type WaitsDB File Sequential Reads – memory starvation, non-selective indexesDB File Scattered Reads – full table scans, insufficient indexingDirect Path Writes – Appends, data loadsDirect Path Reads – Parallel slaves used to retrieve dataDB File Parallel Writes – Backup and partition useDB File Parallel Reads – Partition useDB File Single Write – File header writes, excessive data filesDirect path read temp – Temp file activity (sorts, hashes, temp tables, bitmaps)Direct path write temp – Temp file activity (sorts, hashes, temp tables, bitmaps)
  • 57. DB File Type WaitsDB File Sequential Reads – memory starvation, non-selective indexesDB File Scattered Reads – full table scans, insufficient indexingDirect Path Writes – Appends, data loadsDirect Path Reads – Parallel slaves used to retrieve dataDB File Parallel Writes – Backup and partition useDB File Parallel Reads – Partition useDB File Single Write – File header writes, excessive data filesDirect path read temp – Temp file activity (sorts, hashes, temp tables, bitmaps)Direct path write temp – Temp file activity (sorts, hashes, temp tables, bitmaps)
  • 58. DB File Type WaitsDB File Sequential Reads – memory starvation, non-selective indexesDB File Scattered Reads – full table scans, insufficient indexingDirect Path Writes – Appends, data loadsDirect Path Reads – Parallel slaves used to retrieve dataDB File Parallel Writes – Backup and partition useDB File Parallel Reads – Partition useDB File Single Write – File header writes, excessive data filesDirect path read temp – Temp file activity (sorts, hashes, temp tables, bitmaps)Direct path write temp – Temp file activity (sorts, hashes, temp tables, bitmaps)
  • 59. DB File Type WaitsDB File Sequential Reads – memory starvation, non-selective indexesDB File Scattered Reads – full table scans, insufficient indexingDirect Path Writes – Appends, data loadsDirect Path Reads – Parallel slaves used to retrieve dataDB File Parallel Writes – Backup and partition useDB File Parallel Reads – Partition useDB File Single Write – File header writes, excessive data filesDirect path read temp – Temp file activity (sorts, hashes, temp tables, bitmaps)Direct path write temp – Temp file activity (sorts, hashes, temp tables, bitmaps)
  • 60. Buffer Type Waitslatch: cache buffers chains – Hot blocks, check for hot objectsfree buffer waits – Insufficient buffers, processes holding buffers too long, IO subsystem over loadedbuffer busy waits – See what is causing them further along in reportgc buffer busy – Overloaded interconnect, find problem objects and tunelog buffer space – High load, too small a log buffer, increase log buffer sizelatch: cache buffers lru chain – Freelist issues, hot blockslatch: cache buffer handles – Freelist issues, hot blocksbuffer busy - See what is causing them further along in reportno free buffers – Insufficient buffers, dbwr contention
  • 61. Buffer Type Waitslatch: cache buffers chains – Hot blocks, check for hot objectsfree buffer waits – Insufficient buffers, processes holding buffers too long, IO subsystem over loadedbuffer busy waits – See what is causing them further along in reportgc buffer busy – Overloaded interconnect, find problem objects and tunelog buffer space – High load, too small a log buffer, increase log buffer sizelatch: cache buffers lru chain – Freelist issues, hot blockslatch: cache buffer handles – Freelist issues, hot blocksbuffer busy - See what is causing them further along in reportno free buffers – Insufficient buffers, dbwr contention
  • 62. Buffer Type Waitslatch: cache buffers chains – Hot blocks, check for hot objectsfree buffer waits – Insufficient buffers, processes holding buffers too long, IO subsystem over loadedbuffer busy waits – See what is causing them further along in reportgc buffer busy – Overloaded interconnect, find problem objects and tunelog buffer space – High load, too small a log buffer, increase log buffer sizelatch: cache buffers lru chain – Freelist issues, hot blockslatch: cache buffer handles – Freelist issues, hot blocksbuffer busy - See what is causing them further along in reportno free buffers – Insufficient buffers, dbwr contention
  • 63. Buffer Type Waitslatch: cache buffers chains – Hot blocks, check for hot objectsfree buffer waits – Insufficient buffers, processes holding buffers too long, IO subsystem over loadedbuffer busy waits – See what is causing them further along in reportgc buffer busy – Overloaded interconnect, find problem objects and tunelog buffer space – High load, too small a log buffer, increase log buffer sizelatch: cache buffers lru chain – Freelist issues, hot blockslatch: cache buffer handles – Freelist issues, hot blocksbuffer busy - See what is causing them further along in reportno free buffers – Insufficient buffers, dbwr contention
  • 64. Buffer Type Waitslatch: cache buffers chains – Hot blocks, check for hot objectsfree buffer waits – Insufficient buffers, processes holding buffers too long, IO subsystem over loadedbuffer busy waits – See what is causing them further along in reportgc buffer busy – Overloaded interconnect, find problem objects and tunelog buffer space – High load, too small a log buffer, increase log buffer sizelatch: cache buffers lru chain – Freelist issues, hot blockslatch: cache buffer handles – Freelist issues, hot blocksbuffer busy - See what is causing them further along in reportno free buffers – Insufficient buffers, dbwr contention
  • 65. Log Type Waitslog file parallel write – Look for log file contentionlog buffer space – Look at increasing log buffer sizelog file switch (checkpoint incomplete) – May indicate excessive db files or slow IO subsystemlog file switch (archiving needed) – Indicates archive files are written too slowlylog file switch completion – May need more log files per threadlog file sync – Could indicate excessive commits
  • 66. Log Type Waitslog file parallel write – Look for log file contentionlog buffer space – Look at increasing log buffer sizelog file switch (checkpoint incomplete) – May indicate excessive db files or slow IO subsystemlog file switch (archiving needed) – Indicates archive files are written too slowlylog file switch completion – May need more log files per threadlog file sync – Could indicate excessive commits
  • 67. Log Type Waitslog file parallel write – Look for log file contentionlog buffer space – Look at increasing log buffer sizelog file switch (checkpoint incomplete) – May indicate excessive db files or slow IO subsystemlog file switch (archiving needed) – Indicates archive files are written too slowlylog file switch completion – May need more log files per threadlog file sync – Could indicate excessive commits
  • 68. Log Type Waitslog file parallel write – Look for log file contentionlog buffer space – Look at increasing log buffer sizelog file switch (checkpoint incomplete) – May indicate excessive db files or slow IO subsystemlog file switch (archiving needed) – Indicates archive files are written too slowlylog file switch completion – May need more log files per threadlog file sync – Could indicate excessive commits
  • 69. PX Type WaitsPX Deq: Msg Fragment – PEM maybe too smallPX qref latch - Data is produced faster than it is consumed, look at PEMPX Deq Credit: send blkd – Look at PEM size and parallel query into non-parallel DML
  • 70. GC Eventsgccr multi block request – Full table or index scansgc current multi block request – Full table or index scansgccr block 2-way – Blocks are busy in another instance, check for block level contention or hot blocksgccr block 3-way – Blocks are busy in another instance, check for block level contention or hot blocksgccr block busy – Blocks are busy in another instance, check for block level contention or hot blocksgccr block congested – cr block congestion, check for hot blocks or busy interconnectgccr block lost – Indicates interconnect issues and contentiongc current block 2-way – Blocks are busy in another instance, check for block level contention or hot blocksgc current block 3-way – Blocks are busy in another instance, check for block level contention or hot blocksgc current block busy – Block is already involved in GC operation, shows hot blocks or congestiongc current block congested – current block congestion, check for hot blocks or busy interconnectgc current block lost - Indicates interconnect issues and contention
  • 71. GC Eventsgccr multi block request – Full table or index scansgc current multi block request – Full table or index scansgccr block 2-way – Blocks are busy in another instance, check for block level contention or hot blocksgccr block 3-way – Blocks are busy in another instance, check for block level contention or hot blocksgccr block busy – Blocks are busy in another instance, check for block level contention or hot blocksgccr block congested – cr block congestion, check for hot blocks or busy interconnectgccr block lost – Indicates interconnect issues and contentiongc current block 2-way – Blocks are busy in another instance, check for block level contention or hot blocksgc current block 3-way – Blocks are busy in another instance, check for block level contention or hot blocksgc current block busy – Block is already involved in GC operation, shows hot blocks or congestiongc current block congested – current block congestion, check for hot blocks or busy interconnectgc current block lost - Indicates interconnect issues and contention
  • 72. GC Eventsgccr multi block request – Full table or index scansgc current multi block request – Full table or index scansgccr block 2-way – Blocks are busy in another instance, check for block level contention or hot blocksgccr block 3-way – Blocks are busy in another instance, check for block level contention or hot blocksgccr block busy – Blocks are busy in another instance, check for block level contention or hot blocksgccr block congested – cr block congestion, check for hot blocks or busy interconnectgccr block lost – Indicates interconnect issues and contentiongc current block 2-way – Blocks are busy in another instance, check for block level contention or hot blocksgc current block 3-way – Blocks are busy in another instance, check for block level contention or hot blocksgc current block busy – Block is already involved in GC operation, shows hot blocks or congestiongc current block congested – current block congestion, check for hot blocks or busy interconnectgc current block lost - Indicates interconnect issues and contention
  • 73. Undo Eventsundo segment extension – If excessive, tune undolatch: In memory undo latch – If excessive could be bug, check for your version, may have to turn off in memory undowait for a undo record – Usually only during recovery of large transactions, look at turning off parallel undo recovery.
  • 74. Undo Eventsundo segment extension – If excessive, tune undolatch: In memory undo latch – If excessive could be bug, check for your version, may have to turn off in memory undowait for a undo record – Usually only during recovery of large transactions, look at turning off parallel undo recovery.
  • 75. Undo Eventsundo segment extension – If excessive, tune undolatch: In memory undo latch – If excessive could be bug, check for your version, may have to turn off in memory undowait for a undo record – Usually only during recovery of large transactions, look at turning off parallel undo recovery.
  • 76. What Next?Determine wait events of concernDrill down to specific sections of report for deeper analysisUse custom scripts, ADDM and Ash to investigate issues