SlideShare une entreprise Scribd logo
1  sur  66
Télécharger pour lire hors ligne
Using AWR For IO Subsystem Analysis Mike Ault, Oracle Guru April, 2011 The World’s Fastest Storage ®  for over thirty years!
Michael R. Ault, Oracle Guru ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],A Texas Memory Systems Presentation
Books by Michael R. Ault
[object Object],[object Object],[object Object],[object Object],StatspackAnalyzer.com
Know Your Load Type! ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Load Profile 1 Load Profile ~~~~~~~~~~~~  Per Second  Per Transaction ---------------  --------------- Redo size:  32,222,638.27  107,697,649.70 Logical reads:  368,069.30  1,230,197.16 Block changes:  177,853.38  594,438.94 Physical reads:  398.81  1,332.94 Physical writes:  1,404.91  4,695.64 User calls:  5.06  16.92 Parses:  28.29  94.55 Hard parses:  0.00  0.00 Sorts:  3.18  10.62 Logons:  0.24  0.80 Executes:  28.58  95.52 Transactions:  0.30
Load Profile 2 Load 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.1 W/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
Top 5 Waits Section ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Top 5 Waits Section Top 5 Timed Foreground Events ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Avg wait  % DB Event  Waits  Time(s)  (ms)  time Wait Class ------------------------------ ------------ ----------- ------ ------ ---------- db file sequential read  465,020  3,969  9  47.4 User I/O DB CPU  995  11.9 db file parallel read  2,251  322  143  3.8 User I/O db file scattered read  15,268  153  10  1.8 User I/O gc current block 2-way  108,739  116  1  1.4 Cluster
DB File Type Waits ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Log Type Waits ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Undo Events ,[object Object],[object Object],[object Object]
What Next? ,[object Object],[object Object],[object Object]
Drilling Down to IO Issues ,[object Object],[object Object],[object Object],[object Object],[object Object]
Operating System Statistics ,[object Object],[object Object]
Operating System Statistics Operating System Statistics  DB/Inst: AULTDB/aultdb1  Snaps: 91-92 -> *TIME statistic values are diffed. All others display actual values.  End Value is displayed if different -> ordered by statistic type (CPU Use, Virtual Memory, Hardware Config), Name Statistic  Value  End Value ------------------------- ---------------------- ---------------- BUSY_TIME  126,029 IDLE_TIME  597,505 IOWAIT_TIME  327,861 NICE_TIME  766 SYS_TIME  48,452 USER_TIME  76,784 LOAD  0  3 PHYSICAL_MEMORY_BYTES  3,189,190,656 NUM_CPUS  2 NUM_CPU_CORES  1 NUM_CPU_SOCKETS  1 GLOBAL_RECEIVE_SIZE_MAX  4,194,304 GLOBAL_SEND_SIZE_MAX  262,144 TCP_RECEIVE_SIZE_DEFAULT  87,380 TCP_RECEIVE_SIZE_MAX  1,048,576 TCP_RECEIVE_SIZE_MIN  4,096 TCP_SEND_SIZE_DEFAULT  65,536 TCP_SEND_SIZE_MAX  1,048,576 TCP_SEND_SIZE_MIN  4,096
Foreground Wait events ,[object Object],[object Object],[object Object],[object Object],[object Object]
Foreground Wait Classes Foreground Wait Class  DB/Inst: AULTDB/aultdb1  Snaps: 91-92 -> s  - second, ms - millisecond -  1000th of a second -> ordered by wait time desc, waits desc -> %Timeouts: value of 0 indicates value was < .5%.  Value of null is truly 0 -> Captured Time accounts for  68.9%  of Total DB time  8,371.33 (s) -> Total FG Wait Time:  4,770.85 (s)  DB CPU time:  995.13 (s) Avg %Time  Total Wait  wait Wait Class  Waits -outs  Time (s)  (ms)  %DB time -------------------- ---------------- ----- ---------------- -------- --------- User I/O  518,267  0  4,449  9  53.1 DB CPU  995  11.9 Cluster  188,753  9  173  1  2.1 Other  3,806,446  100  146  0  1.7 Concurrency  1,854  2  2  1  0.0 Commit  15  0  1  39  0.0 Application  740  0  0  0  0.0 System I/O  40  0  0  3  0.0 Network  6,970  0  0  0  0.0 Configuration  0  0  0.0 -------------------------------------------------------------
Foreground Wait Events Foreground Wait Events  DB/Inst: AULTDB/aultdb1  Snaps: 91-92 -> s  - second, ms - millisecond -  1000th of a second -> Only events with Total Wait Time (s) >= .001 are shown -> ordered by wait time desc, waits desc (idle events last) -> %Timeouts: value of 0 indicates value was < .5%.  Value of null is truly 0 Avg %Time Total Wait  wait  Waits  % DB Event  Waits -outs  Time (s)  (ms)  /txn  time -------------------------- ------------ ----- ---------- ------- -------- ------ db file sequential read  465,020  0  3,969  9  395.8  47.4 db file parallel read  2,251  0  322  143  1.9  3.8 db file scattered read  15,268  0  153  10  13.0  1.8 gc current block 2-way  108,739  11  116  1  92.5  1.4 PX Deq: reap credit  3,247,703  100  107  0  2,764.0  1.3 gc cr grant 2-way  57,265  7  28  0  48.7  .3 gc cr multi block request  22,451  6  23  1  19.1  .3 enq: BF - allocation conte  14  93  14  983  0.0  .2 PX qref latch  555,843  100  9  0  473.1  .1 IPC send completion sync  1,070  52  8  8  0.9  .1 gc remaster  22  0  5  221  0.0  .1
Background Wait Events ,[object Object],[object Object],[object Object]
Background Wait Events Background Wait Events  DB/Inst: AULTDB/aultdb1  Snaps: 91-92 -> ordered by wait time desc, waits desc (idle events last) -> Only events with Total Wait Time (s) >= .001 are shown -> %Timeouts: value of 0 indicates value was < .5%.  Value of null is truly 0 Avg %Time Total Wait  wait  Waits  % bg Event  Waits -outs  Time (s)  (ms)  /txn  time -------------------------- ------------ ----- ---------- ------- -------- ------ control file sequential re  8,336  0  72  9  7.1  33.5 control file parallel writ  1,287  0  31  24  1.1  14.5 db file parallel write  792  0  11  14  0.7  5.3 log file parallel write  701  0  11  15  0.6  4.9 events in waitclass Other  44,191  98  5  0  37.6  2.5 library cache pin  449  0  2  4  0.4  .8 db file sequential read  221  0  2  7  0.2  .8 gc cr multi block request  1,915  0  2  1  1.6  .7 os thread startup  19  0  1  56  0.0  .5 gc cr block 2-way  246  0  0  1  0.2  .2 db file scattered read  18  0  0  12  0.0  .1 db file parallel read  3  0  0  59  0.0  .1 gc current grant 2-way  98  0  0  1  0.1  .1
Wait event Histograms ,[object Object],[object Object],[object Object]
Wait Event Histograms Wait Event Histogram  DB/Inst: AULTDB/aultdb1  Snaps: 91-92 -> Units for Total Waits column: K is 1000, M is 1000000, G is 1000000000 -> % of Waits: value of .0 indicates value was <.05%. Value of null is truly 0 -> % of Waits: column heading of <=1s is truly <1024ms, >1s is truly >=1024ms -> Ordered by Event (idle events last) % of Waits ----------------------------------------------- Total Event  Waits  <1ms  <2ms  <4ms  <8ms <16ms <32ms  <=1s  >1s -------------------------- ----- ----- ----- ----- ----- ----- ----- ----- ----- control file parallel writ 1287  59.0  24.1  16.9 control file sequential re 9147  23.4  21.3  23.3  22.3  6.8  2.9  .0 db file parallel read  2256  .3  1.0  7.4  32.6  56.8  1.9 db file parallel write  792  .5  .8  4.2  28.7  50.0  8.8  7.1 db file scattered read  15K  .4  2.7  31.5  59.2  5.8  .5 db file sequential read  465K  .0  .6  2.2  49.5  45.0  2.3  .4 gc cr grant 2-way  50K  87.2  11.1  1.3  .3  .2  .0 gc cr multi block request  24K  59.0  36.8  3.0  .5  .6  .0 gc current block 2-way  84K  6.5  87.7  5.2  .3  .2  .0 library cache lock  488  82.8  10.9  4.9  1.0  .2  .2 library cache pin  4371  77.6  11.1  7.4  3.1  .6  .0 gcs remote message  274K  28.5  15.4  9.9  11.6  7.5  5.8  21.4 ges remote message  53K  11.4  3.3  2.7  1.9  1.8  2.1  76.8 -------------------------------------------------------------
Service Related Statistics ,[object Object],[object Object],[object Object],[object Object],[object Object]
Service Statistics Service Statistics  DB/Inst: AULTDB/aultdb1  Snaps: 91-92 -> ordered by DB Time Physical  Logical Service Name  DB Time (s)  DB CPU (s)  Reads (K)  Reads (K) ---------------------------- ------------ ------------ ------------ ------------ aultdb  8,344  981  9,769  22,715 SYS$USERS  23  12  1  56 SYS$BACKGROUND  1  0  1  17 aultdbXDB  0  0  0  0 -------------------------------------------------------------
Service Wait Class Statistics Service Wait Class Stats  DB/Inst: AULTDB/aultdb1  Snaps: 91-92 -> Wait Class info for services in the Service Statistics section. -> Total Waits and Time Waited displayed for the following wait classes:  User I/O, Concurrency, Administrative, Network -> Time Waited (Wt Time) in seconds Service Name ---------------------------------------------------------------- User I/O  User I/O  Concurcy  Concurcy  Admin  Admin  Network  Network Total Wts  Wt Time Total Wts  Wt Time Total Wts  Wt Time Total Wts  Wt Time --------- --------- --------- --------- --------- --------- --------- --------- aultdb 517710  4446  234  1  0  0  5828  0 SYS$USERS 555  3  1615  1  0  0  1140  0 SYS$BACKGROUND 350  3  3486  4  0  0  0  0 -------------------------------------------------------------
Operating System Statistics ,[object Object],[object Object],[object Object]
Operating System Statistics ------------------------------------------------------------- Operating System Statistics - Detail  DB/Inst: AULTDB/aultdb1  Snaps: 91-92 Snap Time  Load  %busy  %user  %sys  %idle  %iowait --------------- -------- -------- -------- -------- -------- -------- 04-Aug 12:00:15  0.4  N/A  N/A  N/A  N/A  N/A 04-Aug 13:00:28  3.0  17.4  10.6  6.7  45.3  82.6 -------------------------------------------------------------
The SQL Sections ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
AWR SQL Disk Reads Section SQL ordered by Reads  DB/Inst: TEST/test  Snaps: 29415-29416 -> Total Disk Reads:  1,736,422 -> Captured SQL account for  93.6% of Total Reads  CPU  Elapsed Physical Reads  Executions  per Exec  %Total Time (s)  Time (s)  SQL Id -------------- ----------- ------------- ------ -------- --------- ------------- 268,145  5  53,629.0  15.4  16.42  1214.21 7k0dau5j6m6mw select * from ( SELECT c.TRANSACTION_NUMBER trx , c.CARD_BRANCH_CODE CARD_B RANCH_CODE , c.TERMINAL_ID_ACTUAL TERMINAL_ID_ACTUAL , c.BANK_CODE BANK_CODE , c.MERCHANT_ID MERCHANT_ID , c.Product_Type Product_Type , c.AUX_SERIAL_NUMB ER AUX_SERIAL_NUMBER , c.STATUS_CODE STATUS_CODE , c.TRANSACTION_TYPE TRANSACT 246,073  4  61,518.3  14.2  14.56  798.11 adf3kr30mg56w select count(*) aa from ISWITCH_TRANSACTIONS c Where c.Added_Date between : 1 and :2 and c.status_code ='1' AND c.TERMINAL_ID_ACTUAL IN (select INSTANCE_ ID from ISWITCH_CHANNEL_INSTANCE i where i.BRANCH_CODE = '012' ) and c.TERMINAL _ID_ACTUAL ='A0000012' and c.Transaction_Type ='102' and c.Product_Type ='ATM'
Instance Statistics Instance Activity Stats  DB/Inst: ORCL/orcl  Snaps: 29415-29416 Statistic  Total  per Second  per Trans -------------------------------- -------- ----------- ------------- DBWR checkpoint buffers written  2,764  0.8  0.7 DBWR checkpoints  36  0.0  0.0 DBWR object drop buffers written  0  0.0  0.0 DBWR parallel query checkpoint b  118  0.0  0.0 DBWR revisited being-written buf  0  0.0  0.0 DBWR tablespace checkpoint buffe  0  0.0  0.0 DBWR thread checkpoint buffers w  0  0.0  0.0 DBWR transaction table writes  84  0.0  0.0 DBWR undo block writes  612  0.2  0.2 summed dirty queue length  1,747  0.5  0.4
Instance Statistics Statistic  Total  per Second  per Trans -------------------------------- -------- ----------- ------------- change write time  68  0.0  0.0 cluster key scan block gets  10,664  3.0  2.6 cluster key scans  2,363  0.7  0.6 index fast full scans (direct re  0  0.0  0.0 index fast full scans (full)  787  0.2  0.2 index fast full scans (rowid ran  0  0.0  0.0 index fetch by key  93,700  26.0  22.4 index scans kdiixs1  71,615  19.9  17.2 leaf node 90-10 splits  20  0.0  0.0 leaf node splits  67  0.0  0.0 lob reads  49  0.0  0.0 lob writes  157  0.0  0.0 lob writes unaligned  157  0.0  0.0
Instance Statistics Statistic  Total  per Second  per Trans ------------------------------- -------------- ----------- ----------- physical read IO requests  1,306,076  362.7  312.7 physical read bytes  14,224,769,024 3,950,124.3 3,405,498.9 physical read total IO requests  1,318,016  366.0  315.5 physical read total bytes  14,446,929,920 4,011,816.9 3,458,685.6 physical read total multi block  66,857  18.6  16.0 physical reads  1,736,422  482.2  415.7 physical reads cache  1,634,630  453.9  391.3 physical reads cache prefetch  344,579  95.7  82.5 physical reads direct  101,792  28.3  24.4 physical reads direct (lob)  0  0.0  0.0 physical reads direct temporary  0  0.0  0.0 physical reads prefetch warmup  0  0.0  0.0
Instance Statistics Statistic  Total per Second  per Trans -------------------------------- ----------- ---------- -------------physical write IO requests  4,208  1.2  1.0 physical write bytes  42,860,544  11,902.1  10,261.1 physical write total IO requests  26,028  7.2  6.2 physical write total bytes  238,408,192  66,204.4  57,076.4 physical write total multi block  12,240  3.4  2.9 physical writes  5,232  1.5  1.3 physical writes direct  247  0.1  0.1 physical writes direct (lob)  0  0.0  0.0 physical writes direct temporary  0  0.0  0.0 physical writes from cache  4,985  1.4  1.2 physical writes non checkpoint  3,862  1.1  0.9
Instance statistics Statistic  Total  per Second  per Trans -------------------------------- -------- ----------- ------------- redo synch time  739  0.2  0.2 redo synch writes  9,341  2.6  2.2 redo write time  803  0.2  0.2 redo writes  6,159  1.7  1.5
Instance Statistics Statistic  Total  per Second  per Trans -------------------------------- ----------- ----------- ------------- table fetch by rowid  4,701,301  1,305.5  1,125.5 table fetch continued row  71  0.0  0.0 table scan blocks gotten  3,411,330  947.3  816.7 table scan rows gotten  108,225,337  30,053.5  25,909.8 table scans (cache partitions)  0  0.0  0.0 table scans (direct read)  3,055  0.9  0.7 table scans (long tables)  3,087  0.9  0.7 table scans (rowid ranges)  3,055  0.9  0.7 table scans (short tables)  30,677  8.5  7.3 user I/O wait time  585,938  162.7  140.3 sorts (disk)  0  0.0  0.0 workarea executions – multipass  0  0.0  0.0 workarea executions - onepass  0  0.0  0.0 ------------------------------------------------------------
Instance Thread Activity ,[object Object],[object Object],[object Object]
Instance Thread Activity Instance Activity Stats - Thread ActivityDB/Inst: TEST/test  Snaps: 29415-2941 -> Statistics identified by '(derived)' come from sources other than SYSSTAT Statistic  Total  per Hour -------------------------------- ------------------ --------- log switches (derived)  6  6.00 -------------------------------------------------------------
Tablespace IO ,[object Object],[object Object],[object Object],[object Object]
Tablespace IO -> ordered by IOs (Reads + Writes) desc Tablespace ------------------------------ Av  Av  Av  Av  Buffer Av Buf Reads Reads/s Rd(ms) Blks/Rd  Writes Writes/s  Waits Wt(ms) -------------- ------- ------ ------- ------------ -------- ---------- ------ DEVDATA 1,173,883  326  3.7  1.3  2,734  1  323,173  2.8 IBKDATA 98,513  27  5.7  1.4  264  0  1  10.0 DEVINDEX 15,225  4  0.5  1.0  125  0  0  0.0 RETAILDATA 9,218  3  8.7  1.0  202  0  0  0.0 SYSTEM 5,594  2  3.3  1.5  144  0  0  0.0 SYSAUX 919  0  5.0  1.1  344  0  0  0.0 UNDOTBS1 86  0  4.9  1.0  221  0  0  0.0 TEMP_NEW 16  0  0.6  1.0  0  0  0  0.0
Buffer Space advisory ,[object Object],[object Object],[object Object],[object Object]
Buffer Space Advisory Est Phys Size for  Size  Buffers for  Read  Estimated P  Est (M) Factor  Estimate Factor  Physical Reads --- -------- ------ ---------------- ------ ------------------ D  192  .3  23,796  1.1  438,875,348 D  256  .4  31,728  1.1  431,906,549 D  320  .5  39,660  1.0  426,776,467 D  384  .5  47,592  1.0  422,102,165 D  448  .6  55,524  1.0  419,074,429 D  512  .7  63,456  1.0  416,407,215 D  576  .8  71,388  1.0  414,312,661 D  640  .9  79,320  1.0  412,509,975 D  704  1.0  87,252  1.0  410,854,050 D  768  1.1  95,184  1.0  408,796,940 D  832  1.2  103,116  1.0  407,142,199 D  896  1.3  111,048  1.0  405,649,002 D  960  1.4  118,980  1.0  404,148,251 D  1,024  1.5  126,912  1.0  402,745,613 D  1,088  1.5  134,844  1.0  401,506,706 D  1,152  1.6  142,776  1.0  400,276,499 D  1,216  1.7  150,708  1.0  399,110,953 D  1,280  1.8  158,640  0.9  389,800,510
PGA Aggregate Target ,[object Object],[object Object],[object Object],[object Object],[object Object]
PGA_AGGREGATE_TARGET > PGA cache hit % - percentage of W/A (WorkArea) data processed only in-memory PGA Cache Hit %  W/A MB Processed  Extra W/A MB Read/Written --------------- ------------------ -------------------------- 99.8  845,324  1,607 -------------------------------------------------------------
PGA_AGGREGATE_TARGET PGA Aggr Target Histogram  DB/Inst: TEST/test  Snaps: 24080-24107 -> Optimal Executions are purely in-memory operations Low  High Optimal Optimal  Total Execs  Optimal Execs 1-Pass Execs M-Pass Execs ------- ------- -------------- -------------- ------------ ------------ 2K  4K  8,446,124  8,446,124  0  0 64K  128K  28,112  28,112  0  0 128K  256K  43,917  43,917  0  0 256K  512K  173,347  173,347  0  0 512K  1024K  643,107  643,107  0  0 1M  2M  24,595  24,595  0  0 2M  4M  15,934  15,912  22  0 4M  8M  20,446  20,436  10  0 8M  16M  3,848  3,846  2  0 16M  32M  1,671  1,668  3  0 32M  64M  1,173  1,172  1  0 64M  128M  76  74  2  0 128M  256M  378  378  0  0 512M  1024M  2  0  2  0 -------------------------------------------------------------
PGA_AGGREGATE_TARGET PGA Target  Size  W/A MB  W/A MB Read/  Cache Overallo  Estd Est (MB)  Factr  Processed Written to Disk  Hit %  Count  Time ---------- ------- ---------------- ---------------- ------ -------- ------- 7,872  0.1  35,936,407.5  32,945.6  100.0  0  5.2E+10 15,744  0.3  35,936,407.5  31,937.3  100.0  0  5.2E+10 31,488  0.5  35,936,407.5  31,937.3  100.0  0  5.2E+10 47,232  0.8  35,936,407.5  31,937.3  100.0  0  5.2E+10 62,976  1.0  35,936,407.5  31,937.3  100.0  0  5.2E+10 75,571  1.2  35,936,407.5  5,941.2  100.0  0  5.2E+10 88,166  1.4  35,936,407.5  5,941.2  100.0  0  5.2E+10 100,762  1.6  35,936,407.5  5,941.2  100.0  0  5.2E+10 113,357  1.8  35,936,407.5  5,941.2  100.0  0  5.2E+10 125,952  2.0  35,936,407.5  5,941.2  100.0  0  5.2E+10 188,928  3.0  35,936,407.5  5,941.2  100.0  0  5.2E+10 251,904  4.0  35,936,407.5  5,941.2  100.0  0  5.2E+10 -------------------------------------------------------------
Streams Pool ,[object Object],Streams Pool Advisory  DB/Inst: TMSP/tmsp  Snap: 24107 Size for  Size  Est Spill  Est Spill Est Unspill Est Unspill Est (MB)  Factor  Count  Time (s)  Count  Time (s) ---------- --------- ----------- ----------- ----------- ----------- 1,536  0.8  0  0  0  0 1,792  0.9  0  0  0  0 2,048  1.0  0  0  0  0 2,304  1.1  0  0  0  0 2,560  1.3  0  0  0  0 2,816  1.4  0  0  0  0 3,072  1.5  0  0  0  0 3,328  1.6  0  0  0  0 3,584  1.8  0  0  0  0 3,840  1.9  0  0  0  0 4,096  2.0  0  0  0  0 4,352  2.1  0  0  0  0 4,608  2.3  0  0  0  0 4,864  2.4  0  0  0  0 5,120  2.5  0  0  0  0 -------------------------------------------------------------
Buffer Wait Statistics ,[object Object],[object Object],[object Object],[object Object]
Buffer Wait Statistics Buffer Wait Statistics  DB/Inst: TEST/test  Snaps: 24080-24107 -> ordered by wait time desc, waits desc Class  Waits Total Wait Time (s)  Avg Time (ms) ------------------ ----------- ------------------- -------------- data block  2,859,144  29,615  10 segment header  1,173  25  21 1st level bmb  1,204  20  16 2nd level bmb  992  18  19 undo header  15,332  14  1 undo block  19,509  6  0 file header block  2  0  30 -------------------------------------------------------------
UNDO (rollback) Segments ,[object Object],[object Object],[object Object],[object Object]
UNDO (Rollback) segments Undo  Num Undo  Number of  Max Qry  Max Tx Min/Max  STO/  uS/uR/uU/ TS# Blocks (K)  Transactions  Len (s) Concurcy TR (mins) OOS  eS/eR/eU ---- ---------- --------------- -------- -------- --------- ----- -------------- 127  690.1  2,408,751  9,232  133 420/420  0/0  0/0/0/0/0/0 ------------------------------------------------------------- Undo Segment Stats  DB/Inst: TEST/test  Snaps: 24080-24107 -> Most recent 35 Undostat rows, ordered by Time desc Num Undo  Number of Max Qry  Max Tx Tun Ret STO/  uS/uR/uU/ End Time  Blocks Transactions Len (s)  Concy  (mins) OOS  eS/eR/eU ------------ ----------- ------------ ------- ------- ------- ----- ------------ 27-Jan 23:55  1,057  2,119  2,033  44  420 0/0  0/0/0/0/0/0 27-Jan 23:45  1,652  5,535  1,431  80  420 0/0  0/0/0/0/0/0 27-Jan 23:35  965  3,234  830  66  420 0/0  0/0/0/0/0/0 27-Jan 23:25  1,021  4,856  945  65  420 0/0  0/0/0/0/0/0 27-Jan 23:15  566  3,781  2,267  55  420 0/0  0/0/0/0/0/0 27-Jan 23:05  6,914  30,730  1,665  70  420 0/0  0/0/0/0/0/0 27-Jan 22:55  1,561  4,536  1,064  53  420 0/0  0/0/0/0/0/0 27-Jan 22:45  543  2,085  940  48  420 0/0  0/0/0/0/0/0 27-Jan 22:35  1,111  6,020  338  71  420 0/0  0/0/0/0/0/0 27-Jan 22:25  950  3,195  1,365  43  420 0/0  0/0/0/0/0/0 27-Jan 22:15  1,043  3,859  763  62  420 0/0  0/0/0/0/0/0 27-Jan 22:05  3,699  16,955  937  86  420 0/0  0/0/0/0/0/0 27-Jan 21:55  976  3,732  361  96  420 0/0  0/0/0/0/0/0 27-Jan 21:45  891  3,018  937  98  420 0/0  0/0/0/0/0/0 27-Jan 21:35  1,619  3,165  335  86  420 0/0  0/0/0/0/0/0 27-Jan 21:25  5,174  13,627  1,534  76  420 0/0  0/0/0/0/0/0
Segment Statistics ,[object Object],[object Object]
Segment Statistics Segments by Physical Reads  DB/Inst: TEST/test  Snaps: 24080-24107 -> Total Physical Reads:  27,349,451 -> Captured Segments account for  53.8% of Total Tablespace  Subobject  Obj.  Physical Owner  Name  Object Name  Name  Type  Reads  %Total ------- ---------- -------------------- ---------- ----- ------------ ------- DNE4  MEP_D01  MODE_EXECUTION_POINT  TABLE  3,350,928  12.25 FMS  FMS_DATA  ACCTNG_EVENT  TABLE  2,720,574  9.95 DNE4  SHIPMENT_D SHIPMENT_PLAN  TABLE  1,046,173  3.83 ISS  ISS_DATA  IB_SHIPMENT_STATUS_H  TABLE  852,046  3.12 DNE4  TMS_AUDIT  TEMP_SQL  TABLE  552,676  2.02 -------------------------------------------------------------
Segment Statistics Segments by Direct Physical Reads  DB/Inst: TEST/test  Snaps: 24080-24107 -> Total Direct Physical Reads:  6,048,316 -> Captured Segments account for  77.9% of Total Tablespace  Subobject  Obj.  Direct Owner  Name  Object Name  Name  Type  Reads  %Total ------ ---------- -------------------- ---------- ----- ------------ ------- FMS  FMS_DATA  ACCTNG_EVENT  TABLE  2,720,470  44.98 DNE4  MEP_D01  MODE_EXECUTION_POINT  TABLE  1,468,961  24.29 FMS  FMS_DATA  FIN_EVENT  TABLE  521,600  8.62 FAM  FAM_D  SYS_LOB0000148435C00  LOB  360  .01 SYS  SYSAUX  SYS_LOB0000008958C00  LOB  19  .00 -------------------------------------------------------------
Segment Statistics Segments by Physical Writes  DB/Inst: TEST/test  Snaps: 24080-24107 -> Total Physical Writes:  5,084,963 -> Captured Segments account for  36.9% of Total Tablespace  Subobject  Obj.  Physical Owner  Name  Object Name  Name  Type  Writes  %Total ---------- ---------- -------------------- ---------- ----- ------------ ------- ISD  ISD_INDX  ISD_SUPPORT_I03  INDEX  139,666  2.75 ISD  ISD_INDX  ISD_SUPPORT_I02  INDEX  134,617  2.65 DNE4  SHIPMENT_I SP_SUPP_INFO_I05  INDEX  113,698  2.24 DNE4  SHIPMENT_I SP_SUPP_INFO_I04  INDEX  112,988  2.22 DNE4_AUDIT TMS_AUDIT  WORKFLOW_UNIT_AUDIT_  INDEX  109,555  2.15 -------------------------------------------------------------
Segment Statistics Segments by Direct Physical Writes  DB/Inst: TEST/test  Snaps: 24080-24107 -> Total Direct Physical Writes:  231,265 -> Captured Segments account for  9.8% of Total Tablespace  Subobject  Obj.  Direct Owner  Name  Object Name  Name  Type  Writes  %Total ---------- ---------- -------------------- ---------- ----- ------------ ------- DNE4  DNE4_CLOB  SYS_LOB0000050106C00  LOB  17,136  7.41 DNE4_AUDIT TMS_AUDIT  SYS_LOB0000126341C00  LOB  4,274  1.85 FAM  FAM_D  SYS_LOB0000148435C00  LOB  719  .31 SYS  SYSAUX  WRH$_ACTIVE_SESSION_ 0822_24013 TABLE  239  .10 DNE4_AUDIT TMS_AUDIT  SYS_LOB0000126341C00  LOB  184  .08 -------------------------------------------------------------
Segments by Table Scans  DB/Inst: TMSP/tmsp  Snaps: 24080-24107 -> Total Table Scans:  6,618 -> Captured Segments account for  2.5% of Total Tablespace  Subobject  Obj.  Table Owner  Name  Object Name  Name  Type  Scans  %Total ---------- ---------- -------------------- ---------- ----- ------------ ------- DNE4  INDEX01  GP_CITY_I4  INDEX  41  .62 DNE4  RATE_INFO_ RATE_I3  INDEX  40  .60 DNE4  MEP_D01  MODE_EXECUTION_POINT  TABLE  25  .38 FMS  FMS_DATA  ACCTNG_EVENT  TABLE  10  .15 DNE4  DNE4_D02  ME_SERVICE_GROUP  TABLE  6  .09 -------------------------------------------------------------
Initialization Parameters ,[object Object],[object Object]
Initialization Parameters Parameter Name  Begin value  ----------------------------- ---------------------------- control_files  /TEST/ctl01/control01.ctl, /TEST/ db_2k_cache_size  268435456 db_block_size  32768 db_cache_size  15032385536 db_file_multiblock_read_count 16 db_files  5000 db_keep_cache_size  268435456 db_recovery_file_dest  /archive/TEST db_recovery_file_dest_size  751619276800 log_archive_dest  /archive/TEST log_archive_format  tmsp_%t_%s_%r.arc log_archive_max_processes  4 log_buffer  262144000 memory_max_target  68719476736 memory_target  68719476736 streams_pool_size  2147483648 undo_management  AUTO undo_retention  25200 undo_tablespace  UNDO_TMS
What is Missing? ,[object Object],[object Object],[object Object],[object Object],[object Object]
Why is IO Important? ,[object Object],[object Object],[object Object]
Oracle and Queries Where does latency matter? Memory SGA & PGA Oracle Processes Reads - Cache miss  Foreground Waits: DB file sequential read DB file scattered read 5 ms User’s Query Storage latency READS Tables & Indexes Logs
Oracle and Insert/update/delete Where does latency matter? Memory SGA & PGA Oracle Processes LGWR (foreground) DBWR  (background) Users Insert Commit LOG WRITES Tables & Indexes Logs
RamSan - Reads Memory SGA & PGA Oracle Processes Reads - Cache miss  Foreground Waits: DB file sequential read DB file scattered read 0.25 ms User’s Query SSD  latency Logs
RamSan – Writes Insert, Update, Delete Memory SGA & PGA Oracle Processes LGWR SSD (foreground) DBWR  (background) Disk speed Users Insert Commit
[object Object],[object Object],[object Object],[object Object]

Contenu connexe

Tendances

Oracle statistics by example
Oracle statistics by exampleOracle statistics by example
Oracle statistics by exampleMauro Pagano
 
Awr + 12c performance tuning
Awr + 12c performance tuningAwr + 12c performance tuning
Awr + 12c performance tuningAiougVizagChapter
 
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And WhatPerformance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And Whatudaymoogala
 
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentalsDB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentalsJohn Beresniewicz
 
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Sandesh Rao
 
Oracle Parallel Distribution and 12c Adaptive Plans
Oracle Parallel Distribution and 12c Adaptive PlansOracle Parallel Distribution and 12c Adaptive Plans
Oracle Parallel Distribution and 12c Adaptive PlansFranck Pachot
 
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsOracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsZohar Elkayam
 
Understanding oracle rac internals part 2 - slides
Understanding oracle rac internals   part 2 - slidesUnderstanding oracle rac internals   part 2 - slides
Understanding oracle rac internals part 2 - slidesMohamed Farouk
 
Christo kutrovsky oracle, memory & linux
Christo kutrovsky   oracle, memory & linuxChristo kutrovsky   oracle, memory & linux
Christo kutrovsky oracle, memory & linuxKyle Hailey
 
Ash masters : advanced ash analytics on Oracle
Ash masters : advanced ash analytics on Oracle Ash masters : advanced ash analytics on Oracle
Ash masters : advanced ash analytics on Oracle Kyle Hailey
 
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2Tanel Poder
 
Maa goldengate-rac-2007111
Maa goldengate-rac-2007111Maa goldengate-rac-2007111
Maa goldengate-rac-2007111pablitosax
 
Deep review of LMS process
Deep review of LMS processDeep review of LMS process
Deep review of LMS processRiyaj Shamsudeen
 
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsJohn Kanagaraj
 
Troubleshooting Tips and Tricks for Database 19c - EMEA Tour Oct 2019
Troubleshooting Tips and Tricks for Database 19c - EMEA Tour  Oct 2019Troubleshooting Tips and Tricks for Database 19c - EMEA Tour  Oct 2019
Troubleshooting Tips and Tricks for Database 19c - EMEA Tour Oct 2019Sandesh Rao
 
Oracle Database SQL Tuning Concept
Oracle Database SQL Tuning ConceptOracle Database SQL Tuning Concept
Oracle Database SQL Tuning ConceptChien Chung Shen
 

Tendances (20)

Oracle statistics by example
Oracle statistics by exampleOracle statistics by example
Oracle statistics by example
 
Awr + 12c performance tuning
Awr + 12c performance tuningAwr + 12c performance tuning
Awr + 12c performance tuning
 
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And WhatPerformance Tuning With Oracle ASH and AWR. Part 1 How And What
Performance Tuning With Oracle ASH and AWR. Part 1 How And What
 
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentalsDB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
DB Time, Average Active Sessions, and ASH Math - Oracle performance fundamentals
 
Ash and awr deep dive hotsos
Ash and awr deep dive hotsosAsh and awr deep dive hotsos
Ash and awr deep dive hotsos
 
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
 
Oracle Parallel Distribution and 12c Adaptive Plans
Oracle Parallel Distribution and 12c Adaptive PlansOracle Parallel Distribution and 12c Adaptive Plans
Oracle Parallel Distribution and 12c Adaptive Plans
 
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAsOracle Database Performance Tuning Advanced Features and Best Practices for DBAs
Oracle Database Performance Tuning Advanced Features and Best Practices for DBAs
 
Understanding oracle rac internals part 2 - slides
Understanding oracle rac internals   part 2 - slidesUnderstanding oracle rac internals   part 2 - slides
Understanding oracle rac internals part 2 - slides
 
Using Statspack and AWR for Memory Monitoring and Tuning
Using Statspack and AWR for Memory Monitoring and TuningUsing Statspack and AWR for Memory Monitoring and Tuning
Using Statspack and AWR for Memory Monitoring and Tuning
 
Christo kutrovsky oracle, memory & linux
Christo kutrovsky   oracle, memory & linuxChristo kutrovsky   oracle, memory & linux
Christo kutrovsky oracle, memory & linux
 
AWR & ASH Analysis
AWR & ASH AnalysisAWR & ASH Analysis
AWR & ASH Analysis
 
Ash masters : advanced ash analytics on Oracle
Ash masters : advanced ash analytics on Oracle Ash masters : advanced ash analytics on Oracle
Ash masters : advanced ash analytics on Oracle
 
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
Tanel Poder - Troubleshooting Complex Oracle Performance Issues - Part 2
 
Maa goldengate-rac-2007111
Maa goldengate-rac-2007111Maa goldengate-rac-2007111
Maa goldengate-rac-2007111
 
Deep review of LMS process
Deep review of LMS processDeep review of LMS process
Deep review of LMS process
 
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and AdvisorsYour tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
 
Redo internals ppt
Redo internals pptRedo internals ppt
Redo internals ppt
 
Troubleshooting Tips and Tricks for Database 19c - EMEA Tour Oct 2019
Troubleshooting Tips and Tricks for Database 19c - EMEA Tour  Oct 2019Troubleshooting Tips and Tricks for Database 19c - EMEA Tour  Oct 2019
Troubleshooting Tips and Tricks for Database 19c - EMEA Tour Oct 2019
 
Oracle Database SQL Tuning Concept
Oracle Database SQL Tuning ConceptOracle Database SQL Tuning Concept
Oracle Database SQL Tuning Concept
 

En vedette

Aphorisms on Information Technology & Systems
Aphorisms on Information Technology & SystemsAphorisms on Information Technology & Systems
Aphorisms on Information Technology & SystemsPrasad Chitta
 
All (that i know) about exadata external
All (that i know) about exadata externalAll (that i know) about exadata external
All (that i know) about exadata externalPrasad Chitta
 
Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2Biju Thomas
 
Oracle12c data guard farsync and whats new
Oracle12c data guard farsync and whats newOracle12c data guard farsync and whats new
Oracle12c data guard farsync and whats newNassyam Basha
 
Oracle Exadata 1Z0-485 Certification
Oracle Exadata 1Z0-485 CertificationOracle Exadata 1Z0-485 Certification
Oracle Exadata 1Z0-485 CertificationExadatadba
 
PDoolan Oracle Overview PPT Version
PDoolan Oracle Overview PPT VersionPDoolan Oracle Overview PPT Version
PDoolan Oracle Overview PPT VersionPeter Doolan
 
SQL in the Hybrid World
SQL in the Hybrid WorldSQL in the Hybrid World
SQL in the Hybrid WorldTanel Poder
 
Indexes and Indexing in Oracle 12c
Indexes and Indexing in Oracle 12cIndexes and Indexing in Oracle 12c
Indexes and Indexing in Oracle 12cOren Nakdimon
 
Upgrade Oracle Database to 12c
Upgrade Oracle Database to 12c Upgrade Oracle Database to 12c
Upgrade Oracle Database to 12c Osama Mustafa
 
SQL Monitoring in Oracle Database 12c
SQL Monitoring in Oracle Database 12cSQL Monitoring in Oracle Database 12c
SQL Monitoring in Oracle Database 12cTanel Poder
 
Write Less (code) With More (Oracle Database 12c New Features)
Write Less (code) With More (Oracle Database 12c New Features)Write Less (code) With More (Oracle Database 12c New Features)
Write Less (code) With More (Oracle Database 12c New Features)Oren Nakdimon
 
Massimo Sarmi: Poste Italiane - Miur, arriva la nuova Carta dello Studente "I...
Massimo Sarmi: Poste Italiane - Miur, arriva la nuova Carta dello Studente "I...Massimo Sarmi: Poste Italiane - Miur, arriva la nuova Carta dello Studente "I...
Massimo Sarmi: Poste Italiane - Miur, arriva la nuova Carta dello Studente "I...PosteItaliane
 
Las clases de energía
Las clases de energíaLas clases de energía
Las clases de energíamayi12
 
La energía y sus fuentes
La energía y sus fuentes La energía y sus fuentes
La energía y sus fuentes mayi12
 
4 kluringar 2 metoder
4 kluringar   2 metoder4 kluringar   2 metoder
4 kluringar 2 metoderlindahoidal
 
Edmonton oilers ppt
Edmonton oilers pptEdmonton oilers ppt
Edmonton oilers pptLeoneC717
 
Understanding the Generation Z: The Future Workforce
Understanding the Generation Z: The Future WorkforceUnderstanding the Generation Z: The Future Workforce
Understanding the Generation Z: The Future WorkforceJIANGUANGLUNG DANGMEI
 

En vedette (20)

Aphorisms on Information Technology & Systems
Aphorisms on Information Technology & SystemsAphorisms on Information Technology & Systems
Aphorisms on Information Technology & Systems
 
All (that i know) about exadata external
All (that i know) about exadata externalAll (that i know) about exadata external
All (that i know) about exadata external
 
Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2
 
Oracle12c data guard farsync and whats new
Oracle12c data guard farsync and whats newOracle12c data guard farsync and whats new
Oracle12c data guard farsync and whats new
 
Oracle Exadata 1Z0-485 Certification
Oracle Exadata 1Z0-485 CertificationOracle Exadata 1Z0-485 Certification
Oracle Exadata 1Z0-485 Certification
 
PDoolan Oracle Overview PPT Version
PDoolan Oracle Overview PPT VersionPDoolan Oracle Overview PPT Version
PDoolan Oracle Overview PPT Version
 
SQL in the Hybrid World
SQL in the Hybrid WorldSQL in the Hybrid World
SQL in the Hybrid World
 
Indexes and Indexing in Oracle 12c
Indexes and Indexing in Oracle 12cIndexes and Indexing in Oracle 12c
Indexes and Indexing in Oracle 12c
 
Upgrade Oracle Database to 12c
Upgrade Oracle Database to 12c Upgrade Oracle Database to 12c
Upgrade Oracle Database to 12c
 
SQL Monitoring in Oracle Database 12c
SQL Monitoring in Oracle Database 12cSQL Monitoring in Oracle Database 12c
SQL Monitoring in Oracle Database 12c
 
Write Less (code) With More (Oracle Database 12c New Features)
Write Less (code) With More (Oracle Database 12c New Features)Write Less (code) With More (Oracle Database 12c New Features)
Write Less (code) With More (Oracle Database 12c New Features)
 
Rcl
RclRcl
Rcl
 
Massimo Sarmi: Poste Italiane - Miur, arriva la nuova Carta dello Studente "I...
Massimo Sarmi: Poste Italiane - Miur, arriva la nuova Carta dello Studente "I...Massimo Sarmi: Poste Italiane - Miur, arriva la nuova Carta dello Studente "I...
Massimo Sarmi: Poste Italiane - Miur, arriva la nuova Carta dello Studente "I...
 
Las clases de energía
Las clases de energíaLas clases de energía
Las clases de energía
 
La energía y sus fuentes
La energía y sus fuentes La energía y sus fuentes
La energía y sus fuentes
 
Paskal-Izračunavanje vrednosnih funkcija
Paskal-Izračunavanje vrednosnih funkcijaPaskal-Izračunavanje vrednosnih funkcija
Paskal-Izračunavanje vrednosnih funkcija
 
4 kluringar 2 metoder
4 kluringar   2 metoder4 kluringar   2 metoder
4 kluringar 2 metoder
 
Teenagers
TeenagersTeenagers
Teenagers
 
Edmonton oilers ppt
Edmonton oilers pptEdmonton oilers ppt
Edmonton oilers ppt
 
Understanding the Generation Z: The Future Workforce
Understanding the Generation Z: The Future WorkforceUnderstanding the Generation Z: The Future Workforce
Understanding the Generation Z: The Future Workforce
 

Similaire à Using AWR for IO Subsystem Analysis

Thomas+Niewel+ +Oracletuning
Thomas+Niewel+ +OracletuningThomas+Niewel+ +Oracletuning
Thomas+Niewel+ +Oracletuningafa reg
 
AWR, ADDM, ASH, Metrics and Advisors.ppt
AWR, ADDM, ASH, Metrics and Advisors.pptAWR, ADDM, ASH, Metrics and Advisors.ppt
AWR, ADDM, ASH, Metrics and Advisors.pptbugzbinny
 
Awrrpt 1 3004_3005
Awrrpt 1 3004_3005Awrrpt 1 3004_3005
Awrrpt 1 3004_3005Kam Chan
 
Oracle 10g Performance: chapter 00 statspack
Oracle 10g Performance: chapter 00 statspackOracle 10g Performance: chapter 00 statspack
Oracle 10g Performance: chapter 00 statspackKyle Hailey
 
Oow2007 performance
Oow2007 performanceOow2007 performance
Oow2007 performanceRicky Zhu
 
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New FeaturesAmazon Web Services
 
Oracle Open World Thursday 230 ashmasters
Oracle Open World Thursday 230 ashmastersOracle Open World Thursday 230 ashmasters
Oracle Open World Thursday 230 ashmastersKyle Hailey
 
Troubleshooting Complex Oracle Performance Problems with Tanel Poder
Troubleshooting Complex Oracle Performance Problems with Tanel PoderTroubleshooting Complex Oracle Performance Problems with Tanel Poder
Troubleshooting Complex Oracle Performance Problems with Tanel PoderTanel Poder
 
Sql server performance tuning and optimization
Sql server performance tuning and optimizationSql server performance tuning and optimization
Sql server performance tuning and optimizationManish Rawat
 
Resume_CQ_Edward
Resume_CQ_EdwardResume_CQ_Edward
Resume_CQ_Edwardcaiqi wang
 
16aug06.ppt
16aug06.ppt16aug06.ppt
16aug06.pptzagreb2
 
[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』
[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』
[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』Insight Technology, Inc.
 
Oracle Wait Events That Everyone Should Know.ppt
Oracle Wait Events That Everyone Should Know.pptOracle Wait Events That Everyone Should Know.ppt
Oracle Wait Events That Everyone Should Know.pptTricantinoLopezPerez
 
Exadata X3 in action: Measuring Smart Scan efficiency with AWR
Exadata X3 in action:  Measuring Smart Scan efficiency with AWRExadata X3 in action:  Measuring Smart Scan efficiency with AWR
Exadata X3 in action: Measuring Smart Scan efficiency with AWRFranck Pachot
 
Tales from production with postgreSQL at scale
Tales from production with postgreSQL at scaleTales from production with postgreSQL at scale
Tales from production with postgreSQL at scaleSoumya Ranjan Subudhi
 

Similaire à Using AWR for IO Subsystem Analysis (20)

Thomas+Niewel+ +Oracletuning
Thomas+Niewel+ +OracletuningThomas+Niewel+ +Oracletuning
Thomas+Niewel+ +Oracletuning
 
AWR, ADDM, ASH, Metrics and Advisors.ppt
AWR, ADDM, ASH, Metrics and Advisors.pptAWR, ADDM, ASH, Metrics and Advisors.ppt
AWR, ADDM, ASH, Metrics and Advisors.ppt
 
Awrrpt 1 3004_3005
Awrrpt 1 3004_3005Awrrpt 1 3004_3005
Awrrpt 1 3004_3005
 
Oracle 10g Performance: chapter 00 statspack
Oracle 10g Performance: chapter 00 statspackOracle 10g Performance: chapter 00 statspack
Oracle 10g Performance: chapter 00 statspack
 
Oow2007 performance
Oow2007 performanceOow2007 performance
Oow2007 performance
 
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
 
Oracle Open World Thursday 230 ashmasters
Oracle Open World Thursday 230 ashmastersOracle Open World Thursday 230 ashmasters
Oracle Open World Thursday 230 ashmasters
 
Troubleshooting Complex Oracle Performance Problems with Tanel Poder
Troubleshooting Complex Oracle Performance Problems with Tanel PoderTroubleshooting Complex Oracle Performance Problems with Tanel Poder
Troubleshooting Complex Oracle Performance Problems with Tanel Poder
 
Rmoug ashmaster
Rmoug ashmasterRmoug ashmaster
Rmoug ashmaster
 
Using AWR/Statspack for Wait Analysis
Using AWR/Statspack for Wait AnalysisUsing AWR/Statspack for Wait Analysis
Using AWR/Statspack for Wait Analysis
 
Sql server performance tuning and optimization
Sql server performance tuning and optimizationSql server performance tuning and optimization
Sql server performance tuning and optimization
 
Analyzing awr report
Analyzing awr reportAnalyzing awr report
Analyzing awr report
 
AWR Sample Report
AWR Sample ReportAWR Sample Report
AWR Sample Report
 
Resume_CQ_Edward
Resume_CQ_EdwardResume_CQ_Edward
Resume_CQ_Edward
 
16aug06.ppt
16aug06.ppt16aug06.ppt
16aug06.ppt
 
IO Dubi Lebel
IO Dubi LebelIO Dubi Lebel
IO Dubi Lebel
 
[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』
[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』
[db tech showcase Tokyo 2018] #dbts2018 #B17 『オラクル パフォーマンス チューニング - 神話、伝説と解決策』
 
Oracle Wait Events That Everyone Should Know.ppt
Oracle Wait Events That Everyone Should Know.pptOracle Wait Events That Everyone Should Know.ppt
Oracle Wait Events That Everyone Should Know.ppt
 
Exadata X3 in action: Measuring Smart Scan efficiency with AWR
Exadata X3 in action:  Measuring Smart Scan efficiency with AWRExadata X3 in action:  Measuring Smart Scan efficiency with AWR
Exadata X3 in action: Measuring Smart Scan efficiency with AWR
 
Tales from production with postgreSQL at scale
Tales from production with postgreSQL at scaleTales from production with postgreSQL at scale
Tales from production with postgreSQL at scale
 

Dernier

Introduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxIntroduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxMatsuo Lab
 
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsComputer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsSeth Reyes
 
Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1DianaGray10
 
UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8DianaGray10
 
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1DianaGray10
 
Linked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond OntologiesLinked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond OntologiesDavid Newbury
 
Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™Adtran
 
COMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a WebsiteCOMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a Websitedgelyza
 
Artificial Intelligence & SEO Trends for 2024
Artificial Intelligence & SEO Trends for 2024Artificial Intelligence & SEO Trends for 2024
Artificial Intelligence & SEO Trends for 2024D Cloud Solutions
 
Building Your Own AI Instance (TBLC AI )
Building Your Own AI Instance (TBLC AI )Building Your Own AI Instance (TBLC AI )
Building Your Own AI Instance (TBLC AI )Brian Pichman
 
VoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBXVoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBXTarek Kalaji
 
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostKubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostMatt Ray
 
Comparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioComparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioChristian Posta
 
Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024SkyPlanner
 
NIST Cybersecurity Framework (CSF) 2.0 Workshop
NIST Cybersecurity Framework (CSF) 2.0 WorkshopNIST Cybersecurity Framework (CSF) 2.0 Workshop
NIST Cybersecurity Framework (CSF) 2.0 WorkshopBachir Benyammi
 
IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019
IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019
IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019IES VE
 
AI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity WebinarAI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity WebinarPrecisely
 
Cybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxCybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxGDSC PJATK
 
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesAI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesMd Hossain Ali
 

Dernier (20)

Introduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxIntroduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptx
 
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsComputer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and Hazards
 
Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1
 
UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8
 
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
 
Linked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond OntologiesLinked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond Ontologies
 
Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™
 
20150722 - AGV
20150722 - AGV20150722 - AGV
20150722 - AGV
 
COMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a WebsiteCOMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a Website
 
Artificial Intelligence & SEO Trends for 2024
Artificial Intelligence & SEO Trends for 2024Artificial Intelligence & SEO Trends for 2024
Artificial Intelligence & SEO Trends for 2024
 
Building Your Own AI Instance (TBLC AI )
Building Your Own AI Instance (TBLC AI )Building Your Own AI Instance (TBLC AI )
Building Your Own AI Instance (TBLC AI )
 
VoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBXVoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBX
 
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostKubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
 
Comparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioComparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and Istio
 
Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024
 
NIST Cybersecurity Framework (CSF) 2.0 Workshop
NIST Cybersecurity Framework (CSF) 2.0 WorkshopNIST Cybersecurity Framework (CSF) 2.0 Workshop
NIST Cybersecurity Framework (CSF) 2.0 Workshop
 
IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019
IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019
IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019
 
AI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity WebinarAI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity Webinar
 
Cybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxCybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptx
 
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesAI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
 

Using AWR for IO Subsystem Analysis

  • 1. Using AWR For IO Subsystem Analysis Mike Ault, Oracle Guru April, 2011 The World’s Fastest Storage ® for over thirty years!
  • 2.
  • 4.
  • 5.
  • 6. Load Profile 1 Load Profile ~~~~~~~~~~~~ Per Second Per Transaction --------------- --------------- Redo size: 32,222,638.27 107,697,649.70 Logical reads: 368,069.30 1,230,197.16 Block changes: 177,853.38 594,438.94 Physical reads: 398.81 1,332.94 Physical writes: 1,404.91 4,695.64 User calls: 5.06 16.92 Parses: 28.29 94.55 Hard parses: 0.00 0.00 Sorts: 3.18 10.62 Logons: 0.24 0.80 Executes: 28.58 95.52 Transactions: 0.30
  • 7. Load Profile 2 Load 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.1 W/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
  • 8.
  • 9. Top 5 Waits Section Top 5 Timed Foreground Events ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Avg wait % DB Event Waits Time(s) (ms) time Wait Class ------------------------------ ------------ ----------- ------ ------ ---------- db file sequential read 465,020 3,969 9 47.4 User I/O DB CPU 995 11.9 db file parallel read 2,251 322 143 3.8 User I/O db file scattered read 15,268 153 10 1.8 User I/O gc current block 2-way 108,739 116 1 1.4 Cluster
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16. Operating System Statistics Operating System Statistics DB/Inst: AULTDB/aultdb1 Snaps: 91-92 -> *TIME statistic values are diffed. All others display actual values. End Value is displayed if different -> ordered by statistic type (CPU Use, Virtual Memory, Hardware Config), Name Statistic Value End Value ------------------------- ---------------------- ---------------- BUSY_TIME 126,029 IDLE_TIME 597,505 IOWAIT_TIME 327,861 NICE_TIME 766 SYS_TIME 48,452 USER_TIME 76,784 LOAD 0 3 PHYSICAL_MEMORY_BYTES 3,189,190,656 NUM_CPUS 2 NUM_CPU_CORES 1 NUM_CPU_SOCKETS 1 GLOBAL_RECEIVE_SIZE_MAX 4,194,304 GLOBAL_SEND_SIZE_MAX 262,144 TCP_RECEIVE_SIZE_DEFAULT 87,380 TCP_RECEIVE_SIZE_MAX 1,048,576 TCP_RECEIVE_SIZE_MIN 4,096 TCP_SEND_SIZE_DEFAULT 65,536 TCP_SEND_SIZE_MAX 1,048,576 TCP_SEND_SIZE_MIN 4,096
  • 17.
  • 18. Foreground Wait Classes Foreground Wait Class DB/Inst: AULTDB/aultdb1 Snaps: 91-92 -> s - second, ms - millisecond - 1000th of a second -> ordered by wait time desc, waits desc -> %Timeouts: value of 0 indicates value was < .5%. Value of null is truly 0 -> Captured Time accounts for 68.9% of Total DB time 8,371.33 (s) -> Total FG Wait Time: 4,770.85 (s) DB CPU time: 995.13 (s) Avg %Time Total Wait wait Wait Class Waits -outs Time (s) (ms) %DB time -------------------- ---------------- ----- ---------------- -------- --------- User I/O 518,267 0 4,449 9 53.1 DB CPU 995 11.9 Cluster 188,753 9 173 1 2.1 Other 3,806,446 100 146 0 1.7 Concurrency 1,854 2 2 1 0.0 Commit 15 0 1 39 0.0 Application 740 0 0 0 0.0 System I/O 40 0 0 3 0.0 Network 6,970 0 0 0 0.0 Configuration 0 0 0.0 -------------------------------------------------------------
  • 19. Foreground Wait Events Foreground Wait Events DB/Inst: AULTDB/aultdb1 Snaps: 91-92 -> s - second, ms - millisecond - 1000th of a second -> Only events with Total Wait Time (s) >= .001 are shown -> ordered by wait time desc, waits desc (idle events last) -> %Timeouts: value of 0 indicates value was < .5%. Value of null is truly 0 Avg %Time Total Wait wait Waits % DB Event Waits -outs Time (s) (ms) /txn time -------------------------- ------------ ----- ---------- ------- -------- ------ db file sequential read 465,020 0 3,969 9 395.8 47.4 db file parallel read 2,251 0 322 143 1.9 3.8 db file scattered read 15,268 0 153 10 13.0 1.8 gc current block 2-way 108,739 11 116 1 92.5 1.4 PX Deq: reap credit 3,247,703 100 107 0 2,764.0 1.3 gc cr grant 2-way 57,265 7 28 0 48.7 .3 gc cr multi block request 22,451 6 23 1 19.1 .3 enq: BF - allocation conte 14 93 14 983 0.0 .2 PX qref latch 555,843 100 9 0 473.1 .1 IPC send completion sync 1,070 52 8 8 0.9 .1 gc remaster 22 0 5 221 0.0 .1
  • 20.
  • 21. Background Wait Events Background Wait Events DB/Inst: AULTDB/aultdb1 Snaps: 91-92 -> ordered by wait time desc, waits desc (idle events last) -> Only events with Total Wait Time (s) >= .001 are shown -> %Timeouts: value of 0 indicates value was < .5%. Value of null is truly 0 Avg %Time Total Wait wait Waits % bg Event Waits -outs Time (s) (ms) /txn time -------------------------- ------------ ----- ---------- ------- -------- ------ control file sequential re 8,336 0 72 9 7.1 33.5 control file parallel writ 1,287 0 31 24 1.1 14.5 db file parallel write 792 0 11 14 0.7 5.3 log file parallel write 701 0 11 15 0.6 4.9 events in waitclass Other 44,191 98 5 0 37.6 2.5 library cache pin 449 0 2 4 0.4 .8 db file sequential read 221 0 2 7 0.2 .8 gc cr multi block request 1,915 0 2 1 1.6 .7 os thread startup 19 0 1 56 0.0 .5 gc cr block 2-way 246 0 0 1 0.2 .2 db file scattered read 18 0 0 12 0.0 .1 db file parallel read 3 0 0 59 0.0 .1 gc current grant 2-way 98 0 0 1 0.1 .1
  • 22.
  • 23. Wait Event Histograms Wait Event Histogram DB/Inst: AULTDB/aultdb1 Snaps: 91-92 -> Units for Total Waits column: K is 1000, M is 1000000, G is 1000000000 -> % of Waits: value of .0 indicates value was <.05%. Value of null is truly 0 -> % of Waits: column heading of <=1s is truly <1024ms, >1s is truly >=1024ms -> Ordered by Event (idle events last) % of Waits ----------------------------------------------- Total Event Waits <1ms <2ms <4ms <8ms <16ms <32ms <=1s >1s -------------------------- ----- ----- ----- ----- ----- ----- ----- ----- ----- control file parallel writ 1287 59.0 24.1 16.9 control file sequential re 9147 23.4 21.3 23.3 22.3 6.8 2.9 .0 db file parallel read 2256 .3 1.0 7.4 32.6 56.8 1.9 db file parallel write 792 .5 .8 4.2 28.7 50.0 8.8 7.1 db file scattered read 15K .4 2.7 31.5 59.2 5.8 .5 db file sequential read 465K .0 .6 2.2 49.5 45.0 2.3 .4 gc cr grant 2-way 50K 87.2 11.1 1.3 .3 .2 .0 gc cr multi block request 24K 59.0 36.8 3.0 .5 .6 .0 gc current block 2-way 84K 6.5 87.7 5.2 .3 .2 .0 library cache lock 488 82.8 10.9 4.9 1.0 .2 .2 library cache pin 4371 77.6 11.1 7.4 3.1 .6 .0 gcs remote message 274K 28.5 15.4 9.9 11.6 7.5 5.8 21.4 ges remote message 53K 11.4 3.3 2.7 1.9 1.8 2.1 76.8 -------------------------------------------------------------
  • 24.
  • 25. Service Statistics Service Statistics DB/Inst: AULTDB/aultdb1 Snaps: 91-92 -> ordered by DB Time Physical Logical Service Name DB Time (s) DB CPU (s) Reads (K) Reads (K) ---------------------------- ------------ ------------ ------------ ------------ aultdb 8,344 981 9,769 22,715 SYS$USERS 23 12 1 56 SYS$BACKGROUND 1 0 1 17 aultdbXDB 0 0 0 0 -------------------------------------------------------------
  • 26. Service Wait Class Statistics Service Wait Class Stats DB/Inst: AULTDB/aultdb1 Snaps: 91-92 -> Wait Class info for services in the Service Statistics section. -> Total Waits and Time Waited displayed for the following wait classes: User I/O, Concurrency, Administrative, Network -> Time Waited (Wt Time) in seconds Service Name ---------------------------------------------------------------- User I/O User I/O Concurcy Concurcy Admin Admin Network Network Total Wts Wt Time Total Wts Wt Time Total Wts Wt Time Total Wts Wt Time --------- --------- --------- --------- --------- --------- --------- --------- aultdb 517710 4446 234 1 0 0 5828 0 SYS$USERS 555 3 1615 1 0 0 1140 0 SYS$BACKGROUND 350 3 3486 4 0 0 0 0 -------------------------------------------------------------
  • 27.
  • 28. Operating System Statistics ------------------------------------------------------------- Operating System Statistics - Detail DB/Inst: AULTDB/aultdb1 Snaps: 91-92 Snap Time Load %busy %user %sys %idle %iowait --------------- -------- -------- -------- -------- -------- -------- 04-Aug 12:00:15 0.4 N/A N/A N/A N/A N/A 04-Aug 13:00:28 3.0 17.4 10.6 6.7 45.3 82.6 -------------------------------------------------------------
  • 29.
  • 30. AWR SQL Disk Reads Section SQL ordered by Reads DB/Inst: TEST/test Snaps: 29415-29416 -> Total Disk Reads: 1,736,422 -> Captured SQL account for 93.6% of Total Reads CPU Elapsed Physical Reads Executions per Exec %Total Time (s) Time (s) SQL Id -------------- ----------- ------------- ------ -------- --------- ------------- 268,145 5 53,629.0 15.4 16.42 1214.21 7k0dau5j6m6mw select * from ( SELECT c.TRANSACTION_NUMBER trx , c.CARD_BRANCH_CODE CARD_B RANCH_CODE , c.TERMINAL_ID_ACTUAL TERMINAL_ID_ACTUAL , c.BANK_CODE BANK_CODE , c.MERCHANT_ID MERCHANT_ID , c.Product_Type Product_Type , c.AUX_SERIAL_NUMB ER AUX_SERIAL_NUMBER , c.STATUS_CODE STATUS_CODE , c.TRANSACTION_TYPE TRANSACT 246,073 4 61,518.3 14.2 14.56 798.11 adf3kr30mg56w select count(*) aa from ISWITCH_TRANSACTIONS c Where c.Added_Date between : 1 and :2 and c.status_code ='1' AND c.TERMINAL_ID_ACTUAL IN (select INSTANCE_ ID from ISWITCH_CHANNEL_INSTANCE i where i.BRANCH_CODE = '012' ) and c.TERMINAL _ID_ACTUAL ='A0000012' and c.Transaction_Type ='102' and c.Product_Type ='ATM'
  • 31. Instance Statistics Instance Activity Stats DB/Inst: ORCL/orcl Snaps: 29415-29416 Statistic Total per Second per Trans -------------------------------- -------- ----------- ------------- DBWR checkpoint buffers written 2,764 0.8 0.7 DBWR checkpoints 36 0.0 0.0 DBWR object drop buffers written 0 0.0 0.0 DBWR parallel query checkpoint b 118 0.0 0.0 DBWR revisited being-written buf 0 0.0 0.0 DBWR tablespace checkpoint buffe 0 0.0 0.0 DBWR thread checkpoint buffers w 0 0.0 0.0 DBWR transaction table writes 84 0.0 0.0 DBWR undo block writes 612 0.2 0.2 summed dirty queue length 1,747 0.5 0.4
  • 32. Instance Statistics Statistic Total per Second per Trans -------------------------------- -------- ----------- ------------- change write time 68 0.0 0.0 cluster key scan block gets 10,664 3.0 2.6 cluster key scans 2,363 0.7 0.6 index fast full scans (direct re 0 0.0 0.0 index fast full scans (full) 787 0.2 0.2 index fast full scans (rowid ran 0 0.0 0.0 index fetch by key 93,700 26.0 22.4 index scans kdiixs1 71,615 19.9 17.2 leaf node 90-10 splits 20 0.0 0.0 leaf node splits 67 0.0 0.0 lob reads 49 0.0 0.0 lob writes 157 0.0 0.0 lob writes unaligned 157 0.0 0.0
  • 33. Instance Statistics Statistic Total per Second per Trans ------------------------------- -------------- ----------- ----------- physical read IO requests 1,306,076 362.7 312.7 physical read bytes 14,224,769,024 3,950,124.3 3,405,498.9 physical read total IO requests 1,318,016 366.0 315.5 physical read total bytes 14,446,929,920 4,011,816.9 3,458,685.6 physical read total multi block 66,857 18.6 16.0 physical reads 1,736,422 482.2 415.7 physical reads cache 1,634,630 453.9 391.3 physical reads cache prefetch 344,579 95.7 82.5 physical reads direct 101,792 28.3 24.4 physical reads direct (lob) 0 0.0 0.0 physical reads direct temporary 0 0.0 0.0 physical reads prefetch warmup 0 0.0 0.0
  • 34. Instance Statistics Statistic Total per Second per Trans -------------------------------- ----------- ---------- -------------physical write IO requests 4,208 1.2 1.0 physical write bytes 42,860,544 11,902.1 10,261.1 physical write total IO requests 26,028 7.2 6.2 physical write total bytes 238,408,192 66,204.4 57,076.4 physical write total multi block 12,240 3.4 2.9 physical writes 5,232 1.5 1.3 physical writes direct 247 0.1 0.1 physical writes direct (lob) 0 0.0 0.0 physical writes direct temporary 0 0.0 0.0 physical writes from cache 4,985 1.4 1.2 physical writes non checkpoint 3,862 1.1 0.9
  • 35. Instance statistics Statistic Total per Second per Trans -------------------------------- -------- ----------- ------------- redo synch time 739 0.2 0.2 redo synch writes 9,341 2.6 2.2 redo write time 803 0.2 0.2 redo writes 6,159 1.7 1.5
  • 36. Instance Statistics Statistic Total per Second per Trans -------------------------------- ----------- ----------- ------------- table fetch by rowid 4,701,301 1,305.5 1,125.5 table fetch continued row 71 0.0 0.0 table scan blocks gotten 3,411,330 947.3 816.7 table scan rows gotten 108,225,337 30,053.5 25,909.8 table scans (cache partitions) 0 0.0 0.0 table scans (direct read) 3,055 0.9 0.7 table scans (long tables) 3,087 0.9 0.7 table scans (rowid ranges) 3,055 0.9 0.7 table scans (short tables) 30,677 8.5 7.3 user I/O wait time 585,938 162.7 140.3 sorts (disk) 0 0.0 0.0 workarea executions – multipass 0 0.0 0.0 workarea executions - onepass 0 0.0 0.0 ------------------------------------------------------------
  • 37.
  • 38. Instance Thread Activity Instance Activity Stats - Thread ActivityDB/Inst: TEST/test Snaps: 29415-2941 -> Statistics identified by '(derived)' come from sources other than SYSSTAT Statistic Total per Hour -------------------------------- ------------------ --------- log switches (derived) 6 6.00 -------------------------------------------------------------
  • 39.
  • 40. Tablespace IO -> ordered by IOs (Reads + Writes) desc Tablespace ------------------------------ Av Av Av Av Buffer Av Buf Reads Reads/s Rd(ms) Blks/Rd Writes Writes/s Waits Wt(ms) -------------- ------- ------ ------- ------------ -------- ---------- ------ DEVDATA 1,173,883 326 3.7 1.3 2,734 1 323,173 2.8 IBKDATA 98,513 27 5.7 1.4 264 0 1 10.0 DEVINDEX 15,225 4 0.5 1.0 125 0 0 0.0 RETAILDATA 9,218 3 8.7 1.0 202 0 0 0.0 SYSTEM 5,594 2 3.3 1.5 144 0 0 0.0 SYSAUX 919 0 5.0 1.1 344 0 0 0.0 UNDOTBS1 86 0 4.9 1.0 221 0 0 0.0 TEMP_NEW 16 0 0.6 1.0 0 0 0 0.0
  • 41.
  • 42. Buffer Space Advisory Est Phys Size for Size Buffers for Read Estimated P Est (M) Factor Estimate Factor Physical Reads --- -------- ------ ---------------- ------ ------------------ D 192 .3 23,796 1.1 438,875,348 D 256 .4 31,728 1.1 431,906,549 D 320 .5 39,660 1.0 426,776,467 D 384 .5 47,592 1.0 422,102,165 D 448 .6 55,524 1.0 419,074,429 D 512 .7 63,456 1.0 416,407,215 D 576 .8 71,388 1.0 414,312,661 D 640 .9 79,320 1.0 412,509,975 D 704 1.0 87,252 1.0 410,854,050 D 768 1.1 95,184 1.0 408,796,940 D 832 1.2 103,116 1.0 407,142,199 D 896 1.3 111,048 1.0 405,649,002 D 960 1.4 118,980 1.0 404,148,251 D 1,024 1.5 126,912 1.0 402,745,613 D 1,088 1.5 134,844 1.0 401,506,706 D 1,152 1.6 142,776 1.0 400,276,499 D 1,216 1.7 150,708 1.0 399,110,953 D 1,280 1.8 158,640 0.9 389,800,510
  • 43.
  • 44. PGA_AGGREGATE_TARGET > PGA cache hit % - percentage of W/A (WorkArea) data processed only in-memory PGA Cache Hit % W/A MB Processed Extra W/A MB Read/Written --------------- ------------------ -------------------------- 99.8 845,324 1,607 -------------------------------------------------------------
  • 45. PGA_AGGREGATE_TARGET PGA Aggr Target Histogram DB/Inst: TEST/test Snaps: 24080-24107 -> Optimal Executions are purely in-memory operations Low High Optimal Optimal Total Execs Optimal Execs 1-Pass Execs M-Pass Execs ------- ------- -------------- -------------- ------------ ------------ 2K 4K 8,446,124 8,446,124 0 0 64K 128K 28,112 28,112 0 0 128K 256K 43,917 43,917 0 0 256K 512K 173,347 173,347 0 0 512K 1024K 643,107 643,107 0 0 1M 2M 24,595 24,595 0 0 2M 4M 15,934 15,912 22 0 4M 8M 20,446 20,436 10 0 8M 16M 3,848 3,846 2 0 16M 32M 1,671 1,668 3 0 32M 64M 1,173 1,172 1 0 64M 128M 76 74 2 0 128M 256M 378 378 0 0 512M 1024M 2 0 2 0 -------------------------------------------------------------
  • 46. PGA_AGGREGATE_TARGET PGA Target Size W/A MB W/A MB Read/ Cache Overallo Estd Est (MB) Factr Processed Written to Disk Hit % Count Time ---------- ------- ---------------- ---------------- ------ -------- ------- 7,872 0.1 35,936,407.5 32,945.6 100.0 0 5.2E+10 15,744 0.3 35,936,407.5 31,937.3 100.0 0 5.2E+10 31,488 0.5 35,936,407.5 31,937.3 100.0 0 5.2E+10 47,232 0.8 35,936,407.5 31,937.3 100.0 0 5.2E+10 62,976 1.0 35,936,407.5 31,937.3 100.0 0 5.2E+10 75,571 1.2 35,936,407.5 5,941.2 100.0 0 5.2E+10 88,166 1.4 35,936,407.5 5,941.2 100.0 0 5.2E+10 100,762 1.6 35,936,407.5 5,941.2 100.0 0 5.2E+10 113,357 1.8 35,936,407.5 5,941.2 100.0 0 5.2E+10 125,952 2.0 35,936,407.5 5,941.2 100.0 0 5.2E+10 188,928 3.0 35,936,407.5 5,941.2 100.0 0 5.2E+10 251,904 4.0 35,936,407.5 5,941.2 100.0 0 5.2E+10 -------------------------------------------------------------
  • 47.
  • 48.
  • 49. Buffer Wait Statistics Buffer Wait Statistics DB/Inst: TEST/test Snaps: 24080-24107 -> ordered by wait time desc, waits desc Class Waits Total Wait Time (s) Avg Time (ms) ------------------ ----------- ------------------- -------------- data block 2,859,144 29,615 10 segment header 1,173 25 21 1st level bmb 1,204 20 16 2nd level bmb 992 18 19 undo header 15,332 14 1 undo block 19,509 6 0 file header block 2 0 30 -------------------------------------------------------------
  • 50.
  • 51. UNDO (Rollback) segments Undo Num Undo Number of Max Qry Max Tx Min/Max STO/ uS/uR/uU/ TS# Blocks (K) Transactions Len (s) Concurcy TR (mins) OOS eS/eR/eU ---- ---------- --------------- -------- -------- --------- ----- -------------- 127 690.1 2,408,751 9,232 133 420/420 0/0 0/0/0/0/0/0 ------------------------------------------------------------- Undo Segment Stats DB/Inst: TEST/test Snaps: 24080-24107 -> Most recent 35 Undostat rows, ordered by Time desc Num Undo Number of Max Qry Max Tx Tun Ret STO/ uS/uR/uU/ End Time Blocks Transactions Len (s) Concy (mins) OOS eS/eR/eU ------------ ----------- ------------ ------- ------- ------- ----- ------------ 27-Jan 23:55 1,057 2,119 2,033 44 420 0/0 0/0/0/0/0/0 27-Jan 23:45 1,652 5,535 1,431 80 420 0/0 0/0/0/0/0/0 27-Jan 23:35 965 3,234 830 66 420 0/0 0/0/0/0/0/0 27-Jan 23:25 1,021 4,856 945 65 420 0/0 0/0/0/0/0/0 27-Jan 23:15 566 3,781 2,267 55 420 0/0 0/0/0/0/0/0 27-Jan 23:05 6,914 30,730 1,665 70 420 0/0 0/0/0/0/0/0 27-Jan 22:55 1,561 4,536 1,064 53 420 0/0 0/0/0/0/0/0 27-Jan 22:45 543 2,085 940 48 420 0/0 0/0/0/0/0/0 27-Jan 22:35 1,111 6,020 338 71 420 0/0 0/0/0/0/0/0 27-Jan 22:25 950 3,195 1,365 43 420 0/0 0/0/0/0/0/0 27-Jan 22:15 1,043 3,859 763 62 420 0/0 0/0/0/0/0/0 27-Jan 22:05 3,699 16,955 937 86 420 0/0 0/0/0/0/0/0 27-Jan 21:55 976 3,732 361 96 420 0/0 0/0/0/0/0/0 27-Jan 21:45 891 3,018 937 98 420 0/0 0/0/0/0/0/0 27-Jan 21:35 1,619 3,165 335 86 420 0/0 0/0/0/0/0/0 27-Jan 21:25 5,174 13,627 1,534 76 420 0/0 0/0/0/0/0/0
  • 52.
  • 53. Segment Statistics Segments by Physical Reads DB/Inst: TEST/test Snaps: 24080-24107 -> Total Physical Reads: 27,349,451 -> Captured Segments account for 53.8% of Total Tablespace Subobject Obj. Physical Owner Name Object Name Name Type Reads %Total ------- ---------- -------------------- ---------- ----- ------------ ------- DNE4 MEP_D01 MODE_EXECUTION_POINT TABLE 3,350,928 12.25 FMS FMS_DATA ACCTNG_EVENT TABLE 2,720,574 9.95 DNE4 SHIPMENT_D SHIPMENT_PLAN TABLE 1,046,173 3.83 ISS ISS_DATA IB_SHIPMENT_STATUS_H TABLE 852,046 3.12 DNE4 TMS_AUDIT TEMP_SQL TABLE 552,676 2.02 -------------------------------------------------------------
  • 54. Segment Statistics Segments by Direct Physical Reads DB/Inst: TEST/test Snaps: 24080-24107 -> Total Direct Physical Reads: 6,048,316 -> Captured Segments account for 77.9% of Total Tablespace Subobject Obj. Direct Owner Name Object Name Name Type Reads %Total ------ ---------- -------------------- ---------- ----- ------------ ------- FMS FMS_DATA ACCTNG_EVENT TABLE 2,720,470 44.98 DNE4 MEP_D01 MODE_EXECUTION_POINT TABLE 1,468,961 24.29 FMS FMS_DATA FIN_EVENT TABLE 521,600 8.62 FAM FAM_D SYS_LOB0000148435C00 LOB 360 .01 SYS SYSAUX SYS_LOB0000008958C00 LOB 19 .00 -------------------------------------------------------------
  • 55. Segment Statistics Segments by Physical Writes DB/Inst: TEST/test Snaps: 24080-24107 -> Total Physical Writes: 5,084,963 -> Captured Segments account for 36.9% of Total Tablespace Subobject Obj. Physical Owner Name Object Name Name Type Writes %Total ---------- ---------- -------------------- ---------- ----- ------------ ------- ISD ISD_INDX ISD_SUPPORT_I03 INDEX 139,666 2.75 ISD ISD_INDX ISD_SUPPORT_I02 INDEX 134,617 2.65 DNE4 SHIPMENT_I SP_SUPP_INFO_I05 INDEX 113,698 2.24 DNE4 SHIPMENT_I SP_SUPP_INFO_I04 INDEX 112,988 2.22 DNE4_AUDIT TMS_AUDIT WORKFLOW_UNIT_AUDIT_ INDEX 109,555 2.15 -------------------------------------------------------------
  • 56. Segment Statistics Segments by Direct Physical Writes DB/Inst: TEST/test Snaps: 24080-24107 -> Total Direct Physical Writes: 231,265 -> Captured Segments account for 9.8% of Total Tablespace Subobject Obj. Direct Owner Name Object Name Name Type Writes %Total ---------- ---------- -------------------- ---------- ----- ------------ ------- DNE4 DNE4_CLOB SYS_LOB0000050106C00 LOB 17,136 7.41 DNE4_AUDIT TMS_AUDIT SYS_LOB0000126341C00 LOB 4,274 1.85 FAM FAM_D SYS_LOB0000148435C00 LOB 719 .31 SYS SYSAUX WRH$_ACTIVE_SESSION_ 0822_24013 TABLE 239 .10 DNE4_AUDIT TMS_AUDIT SYS_LOB0000126341C00 LOB 184 .08 -------------------------------------------------------------
  • 57. Segments by Table Scans DB/Inst: TMSP/tmsp Snaps: 24080-24107 -> Total Table Scans: 6,618 -> Captured Segments account for 2.5% of Total Tablespace Subobject Obj. Table Owner Name Object Name Name Type Scans %Total ---------- ---------- -------------------- ---------- ----- ------------ ------- DNE4 INDEX01 GP_CITY_I4 INDEX 41 .62 DNE4 RATE_INFO_ RATE_I3 INDEX 40 .60 DNE4 MEP_D01 MODE_EXECUTION_POINT TABLE 25 .38 FMS FMS_DATA ACCTNG_EVENT TABLE 10 .15 DNE4 DNE4_D02 ME_SERVICE_GROUP TABLE 6 .09 -------------------------------------------------------------
  • 58.
  • 59. Initialization Parameters Parameter Name Begin value ----------------------------- ---------------------------- control_files /TEST/ctl01/control01.ctl, /TEST/ db_2k_cache_size 268435456 db_block_size 32768 db_cache_size 15032385536 db_file_multiblock_read_count 16 db_files 5000 db_keep_cache_size 268435456 db_recovery_file_dest /archive/TEST db_recovery_file_dest_size 751619276800 log_archive_dest /archive/TEST log_archive_format tmsp_%t_%s_%r.arc log_archive_max_processes 4 log_buffer 262144000 memory_max_target 68719476736 memory_target 68719476736 streams_pool_size 2147483648 undo_management AUTO undo_retention 25200 undo_tablespace UNDO_TMS
  • 60.
  • 61.
  • 62. Oracle and Queries Where does latency matter? Memory SGA & PGA Oracle Processes Reads - Cache miss Foreground Waits: DB file sequential read DB file scattered read 5 ms User’s Query Storage latency READS Tables & Indexes Logs
  • 63. Oracle and Insert/update/delete Where does latency matter? Memory SGA & PGA Oracle Processes LGWR (foreground) DBWR (background) Users Insert Commit LOG WRITES Tables & Indexes Logs
  • 64. RamSan - Reads Memory SGA & PGA Oracle Processes Reads - Cache miss Foreground Waits: DB file sequential read DB file scattered read 0.25 ms User’s Query SSD latency Logs
  • 65. RamSan – Writes Insert, Update, Delete Memory SGA & PGA Oracle Processes LGWR SSD (foreground) DBWR (background) Disk speed Users Insert Commit
  • 66.