2016 - 2024

感恩一路有你

oracle存储过程执行慢 ORACLE如何查看执行时间较长较慢的语句?

浏览量:1455 时间:2021-03-16 08:44:50 作者:admin

ORACLE如何查看执行时间较长较慢的语句?

运行慢的sql:

select * from (select sa.SQL_TEXT, sa.SQL_FULLTEXT, sa.EXECUTIONS "执行次数", round(sa.ELAPSED_TIME / 1000000, 2) "总执行时间", round(sa.ELAPSED_TIME / 1000000 / sa.EXECUTIONS, 2) "平均执行时间", sa.COMMAND_TYPE, sa.PARSING_USER_ID "用户ID", u.username "用户名", sa.HASH_VALUE from v$sqlarea sa left join all_users u on sa.PARSING_USER_ID = u.user_id where sa.EXECUTIONS > 0 order by (sa.ELAPSED_TIME / sa.EXECUTIONS) desc) where rownum <= 50

oracle存储过程执行慢 存储过程执行太慢 oracle查询突然变慢

版权声明:本文内容由互联网用户自发贡献,本站不承担相关法律责任.如有侵权/违法内容,本站将立刻删除。