打开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);
打开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);