捕捉运行很久的SQL(转)[@more@]
09.05]:如何捕捉运行很久的SQL?
column username format a12
column opname format a16
column progress format a8
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
/
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8225414/viewspace-942566/
,如需转载,请注明出处,否则将追究法律责任。