Sometimes executed oracle, sql statements need to check the performance, you can use this for simple calculations and statistics

--http://www.cnblogs.com/Invokerr/p/7084786.html
SELECT  ELAPSED_TIME,LAST_ACTIVE_TIME,EXECUTIONS , DISK_READS, BUFFER_GETS, 
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 
and SQL_TEXT like '%htjs%'
ORDER BY  5 DESC;
 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327012962&siteId=291194637