AWR Reports: SQL Order By

本文分析了Oracle AWR报告中SQL按获取排序的情况,详细介绍了如何通过报告找出性能瓶颈,并提供了关键信息解读及参考资料。

DBA Notes: 2011/10/13

Cheng Li

 

AWR Reports: SQL Order By

 

[oracle@ctmcmsdb dbalog]$ sqlplus

 

SQL*Plus: Release 11.1.0.6.0 - Production on Tue Oct 11 09:18:35 2011

 

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

 

Enter user-name: / as sysdba

 

Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

 

SQL> @awr.sql

 

From AWR reports, we found those top SQL depends on different conditions such SQL order by Get. That is top SQL order by buffer gets.

 

Part of AWR Reports:

SQL ordered by Gets                DB/Inst: CMSPRD/CMSPRD  Snaps: 20156-20181

-> Resources reported for PL/SQL code includes the resources used by all SQL

   statements called by the code.

-> Total Buffer Gets:   1,399,706,007

-> Captured SQL account for      99.1% of Total

 

                                Gets              CPU     Elapsed

  Buffer Gets   Executions    per Exec   %Total Time (s)  Time (s)    SQL Id

-------------- ------------ ------------ ------ -------- --------- -------------

   235,035,085        1,025    229,302.5   16.8  1361.45   1384.94 9qz0udgq7qwj0

Module: JDBC Thin Client

 select PRD.PRD_INST_ID prdInstId, PRD.PRD_CODE prdCode, PRD.PRD_DESC prd

Desc, PRD.PRD_DUR prdDur, PRD.PRD_ACTIVE_DATE prdActiveDate, PRD.PRD_INACT

IVE_DATE prdInactiveDate, PRD.PRD_EXPIRY_DATE prdExpiryDate, PRD.PRD_RATE pr

dRate, PRD.PRD_STATUS prdStatus, CAT.DESC_TXT prdCategory,

 

Reference:

http://www.eygle.com/archives/2011/01/awrsql_ordered_userio.html

 

fj.png干露露母女.jpg

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26136400/viewspace-709160/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26136400/viewspace-709160/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值