Sriram Sanka

Databases | Cloud | Infrastructure | Security |

Query for Top 10 by Executions:

Posted by Sriram Sanka on September 13, 2022

set linesize 100
set pagesize 100
SELECT * FROM
(SELECT substr(sql_text,1,40) sql,
        executions, rows_processed, rows_processed/executions "Rows/Exec",
        hash_value,address
   FROM V$SQLAREA
  WHERE executions > 100
 ORDER BY executions DESC)
WHERE rownum  <=10
;

Leave a Reply

 

Discover more from Sriram Sanka

Subscribe now to keep reading and get access to the full archive.

Continue reading