打开SQL执行时间统计
set timing on;
查询是否有执行时间较长的SQL存在
select a.sid, b.sql_text
from v$session a, v$sqlarea b
where a.sql_hash_value = b.hash_value
and a.sid in
(SELECT SID from GV$Session_longops where TIME_REMAINING > 0);
时间: 2024-11-04 17:17:32
打开SQL执行时间统计
set timing on;
查询是否有执行时间较长的SQL存在
select a.sid, b.sql_text
from v$session a, v$sqlarea b
where a.sql_hash_value = b.hash_value
and a.sid in
(SELECT SID from GV$Session_longops where TIME_REMAINING > 0);