oracle recognition 'inefficient execution' SQL statements

Identify inefficient SQL SQL tool with the following:

 SELECT 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

ORDER BY 4 DESC;

     ( Although on a variety of SQL optimization graphical tool after another , but to write their own SQL tools to solve a problem is always the best method ) 

Guess you like

Origin www.cnblogs.com/fanweisheng/p/11124570.html