How to Interpret the "SQL ordered by Physical Reads (UnOptimized)" Section in AWR (文档 ID 1466035.1)

APPLIES TO:

Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
Information in this document applies to any platform.

GOAL

This document describes the 'SQL ordered by Physical Reads (UnOptimized)' section in AWR reports from Oracle 11.2 onwards and explains how to interpret certain sections.

SOLUTION

 An example of the  'SQL ordered by Physical Reads (UnOptimized)' section would look similar to the following:

SQL ordered by Physical Reads (UnOptimized)

  • UnOptimized Read Reqs = Physical Read Reqts - Optimized Read Reqs
  • %Opt - Optimized Reads as percentage of SQL Read Requests
  • %Total - UnOptimized Read Reqs as a percentage of Total UnOptimized Read Reqs
  • Total Physical Read Requests: 3,438,206
  • Captured SQL account for 88.8% of Total
  • Total UnOptimized Read Requests: 3,438,206
  • Captured SQL account for 88.8% of Total
  • Total Optimized Read Requests: 1
  • Captured SQL account for 0.0% of Total
UnOptimized Read ReqsPhysical Read ReqsExecutionsUnOptimized Reqs per Exec%Opt%TotalSQL IdSQL ModuleSQL Text
1,072,693 1,072,693 4 268,173.25 0.00 31.20a94vs7s7k2xx0SQL*PlusDECLARE OUTPUT NUMBER; V_ERROR...
1,064,970 1,064,970 3 354,990.00 0.00 30.976bsa26gr5mp2kSQL*PlusINSERT /*+ append */ INTO FIRE...
771,242 771,242 1 771,242.00 0.00 22.43ftja941kjtrxjSQL*PlusDECLARE OUTPUT NUMBER; V_ERROR...
.... ... ... ... ... ............
63,381 63,381 2 31,690.50 0.00 1.84bha3g79j51261SQL*PlusINSERT INTO FIREWALL_XFORM_TEM...
61,362 61,362 2 30,681.00 0.00 1.78f0tqq0h3aqsn0SQL*PlusSELECT TRUNC(EVENT_DT, 'hh') E...
59,921 59,921 11 5,447.36 0.00 1.746zbw6ctdmd9d8DBMS_SCHEDULER/* SQL Analyze(8, 1) */ MERGE ...
37,168 37,168 1 37,168.00 0.00 1.08frurkbv3y3acdSQL*PlusINSERT INTO FIREWALL_NODE (ID,...

What are 'Optimized Read Reqs'?

Optimized Read Requests are read requests that are satisfied from the Smart Flash Cache ( or the Smart Flash Cache in OracleExadata V2).  

Note that despite same name, concept and use of  'Smart Flash Cache' in Exadata V2 is different from  'Smart Flash Cache' in Database Smart Flash Cache.

Read requests that are satisfied from the Smart Flash Cache are termed 'optimized' since they are returned much faster than requests from disk (the implemention uses solid state device (SSD) technology). Additionally, read requests accessing Storage Indexes using smart scans in Oracle Exadata V2 (and significantly reducing  I/O operations) also fall under the category 'optimized read requests' since they avoid reading blocks that do not contain relevant data. 

In database systems where 'Optimized Read Requests' are not present, UnOptimized Read Reqs will be equal to Physical Read Reqs (I/O requests satisfied from disk).  In this case columns 'UnOptimized Read Reqs' and 'Physical Read Reqs' will display the same values and column '%Opt' will display zero (as seen in extract from AWR reportabove).

Note that the 'Physical Read Reqs' column in the 'SQL ordered by Physical Reads (UnOptimized)' section is the number of I/O requests and not the number of blocks returned. Be careful not to confuse these with the Physical Reads statistics from the AWR section 'SQL ordered by Reads', which counts database blocks read from the disk not actual I/Os (a single I/O operation  may return many blocks from disk).

If you look at the example 'SQL ordered by Reads' section below from same AWR report for database not using smart cache, notice the physical reads:

SQL ordered by Reads

  • %Total - Physical Reads as a percentage of Total Disk Reads
  • %CPU - CPU Time as a percentage of Elapsed Time
  • %IO - User I/O Time as a percentage of Elapsed Time
  • Total Disk Reads: 8,414,054
  • Captured SQL account for 98.3% of Total
Physical ReadsExecutionsReads per Exec%TotalElapsed Time (s)%CPU%IOSQL IdSQL ModuleSQL Text
3,308,102 1 3,308,102.00 39.32 2,250.65 15.30 85.6259v4zh1ac3v2aDBMS_SCHEDULERDECLARE job BINARY_INTEGER := ...
... ... ... .... ... ... ............
910,228 2 455,114.00 10.82 116.02 66.64 12.31f0tqq0h3aqsn0SQL*PlusSELECT TRUNC(EVENT_DT, 'hh') E...
772,465 1 772,465.00 9.18 3,536.45 25.41 70.20ftja941kjtrxjSQL*PlusDECLARE OUTPUT NUMBER; V_ERROR...
681,649 0   8.10 3,598.62 1.29 99.216mcpb06rctk0xDBMS_SCHEDULERcall dbms_space.auto_space_adv...
654,542 1 654,542.00 7.78 3,166.37 26.57 68.479cdjzp9sv9tqhSQL*PlusINSERT INTO FIREWALL_XFORM(REC...
391,516 317 1,235.07 4.65 3,564.33 0.89 99.568szmwam7fysa3DBMS_SCHEDULERinsert into wri$_adv_objspace_...
... ... ... ... ... ... ............

To tune high physical reads for non smart cache sql,please review following:  

Document 232443.1 How to Identify Resource Intensive SQL to Tune

Note the difference between 'Physical Reads' in the 'SQL ordered by Reads'  and the 'Physical Read Reqs' in the 'SQL ordered by Physical Reads (UnOptimized)' section above for the SQL with "SQL_ID=f0tqq0h3aqsn0"  from same AWR report in the comparison below:

SQL ordered by Physical Reads (UnOptimized) 

SQL ordered by Physical Reads (UnOptimized)

SQL ordered by Reads

SQL ordered by Reads

For more details on configuring the Smart Flash Cache see:

Oracle® Database Administrator's Guide
11g Release 2 (11.2)
Part Number E25494-02
Configuring Database Smart Flash Cache
http://docs.oracle.com/cd/E11882_01/server.112/e25494/memory.htm#BABHEDBH

 


 
 

相关内容

   
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值