高消耗语句查询

select substr(sql_text, 1, 120) SQL文本,
       sql_fulltext SQL全文,
       parsing_schema_name 解析用户,
       executions 执行次数,
       disk_reads 磁盘读,
       buffer_gets 内存读,
       round((buffer_gets - disk_reads) / buffer_gets, 2) 缓存命中率,
       round(disk_reads / executions, 2) 单次物理读,
       optimizer_mode 优化器模式
  from v$sqlarea
where executions > 0
   and buffer_gets > 0
   and (buffer_gets - disk_reads) / buffer_gets > 0
   and parsing_schema_name = 'EGISNBUOPR'
order by 7;

你可能感兴趣的:(oracle)