捕捉运行很久的SQL

来源:互联网 发布:mac版draw9patch下载 编辑:程序博客网 时间:2024/04/29 22:48
select username,sid,opname, round(sofar*100 / totalwork,0) || '%' as progress,
time_remaining,sql_text
from v$session_longops , v$sql
where time_remaining <> 0
and sql_address = address
and sql_hash_value  =  hash_value;