Top 20 Sql
top 20 效率最差的sql
SELECT *
from (
SELECT EXECUTIONS ,ROUND((BUFFER_GETS-DISK_READS)/BUFFER_GETS,2) Hit_radio,
ROUND(DISK_READS/EXECUTIONS,2) Reads_per_run,
SQL_TEXT
FROM V$SQLAREA
WHERE EXECUTIONS>0
AND BUFFER_GETS > 0
AND (BUFFER_GETS-DISK_READS)/BUFFER_GETS < 0.8 ) a
where rownum<21 ;
執行時間最長的top 20 sql
SELECT *
from (
SELECT sql_text sql, executions runtimes, buffer_gets/decode(executions, 0, 1, executions) / 4000 responsetime
FROM v$sql
WHERE buffer_gets / decode(executions, 0,1, executions) / 4000 > 10
AND executions > 0
order by 2 desc) a
where rownum <21
SELECT *
from (
SELECT EXECUTIONS ,ROUND((BUFFER_GETS-DISK_READS)/BUFFER_GETS,2) Hit_radio,
ROUND(DISK_READS/EXECUTIONS,2) Reads_per_run,
SQL_TEXT
FROM V$SQLAREA
WHERE EXECUTIONS>0
AND BUFFER_GETS > 0
AND (BUFFER_GETS-DISK_READS)/BUFFER_GETS < 0.8 ) a
where rownum<21 ;
執行時間最長的top 20 sql
SELECT *
from (
SELECT sql_text sql, executions runtimes, buffer_gets/decode(executions, 0, 1, executions) / 4000 responsetime
FROM v$sql
WHERE buffer_gets / decode(executions, 0,1, executions) / 4000 > 10
AND executions > 0
order by 2 desc) a
where rownum <21
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/11411056/viewspace-733388/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORACLE TOP SQLOracleSQL
- [Oracle Script] Top sqlOracleSQL
- trace top sql sessionSQLSession
- 各種TOP SQLSQL
- SQL TOP 例項SQL
- SQL SERVER 2008的top增強SQLServer
- postgresql定位top cpu sqlSQL
- AWR TOP SQL實現SQL
- Oracle檢視TOP SQLOracleSQL
- Oracle TOP SQL&&HITOracleSQL
- Oracle AWR Top SQL sectionOracleSQL
- TOP N 查詢 SQLSQL
- top sql capture script.SQLAPT
- awr的top sql分析SQL
- SQL Server 2008中SQL增強之二:Top新用途 (轉)SQLServer
- 12C SQL-TOPSQL
- sql server 2005下奇怪的Delete Top 語句(downmoon)SQLServerdelete
- Oracle檢視歷史TOP SQLOracleSQL
- V$SQLAREA 檢視TOP_SQLSQL
- 產生top sql的原因(zt)SQL
- top sql 產生的歸納SQL
- AWR 中 top sql 的資訊獲取 - 分析SQL
- 透過top命令抓取cpu高消耗的sqlSQL
- 通過top命令抓取cpu高消耗的sqlSQL
- SQL 語句select top 變數問題SQL變數
- OWASP TOP 10 2021
- 敏捷圖書排行Top 20敏捷
- Oracle優化案例-教你線上搞定top cpu的sql(十二)Oracle優化SQL
- 你真的會玩SQL嗎?冷落的Top和ApplySQLAPP
- 你真的會玩 SQL 嗎?冷落的 Top 和 ApplySQLAPP
- 獲取top N cpu pid的sql資訊指令碼SQL指令碼
- 從暢銷Top 200到Top 20,又一款國產SLG在海外火了
- [20130803]ORACLE 12C TOP N SQL實現分頁功能.txtOracleSQL
- SegmentFault 思否 2020 年度 Top Writer
- Eurogamer:2020年遊戲Top 50GAM遊戲
- 建立聯合函式索引解決top sql效能問題函式索引SQL
- 笨人學 app:閱讀類 Top 20APP
- 2015年北美巡演TOP200