首页 > 数据库 > Oracle > Oracle查询回滚大事务所需时间
取ktuxesiz 字段10S差值 ,计算出每秒恢复的量,剩余总量除以每秒恢复的量
select
s.username,
t.xidusn,
t.xidslot,
t.xidsqn,
x.ktuxesiz
from
sys.x$ktuxe x,
sys.v_$transaction t,
sys.v_$session s
where
x.inst_id = userenv('Instance') and
x.ktuxesta = 'ACTIVE' and
x.ktuxesiz > 1 and
t.xidusn = x.ktuxeusn and
t.xidslot = x.ktuxeslt and
t.xidsqn = x.ktuxesqn and
s.saddr = t.ses_addr;
转自 https://www.cnblogs.com/alexbob/p/14580882.html:
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25583515/viewspace-2914732/ ,如需转载,请注明出处,否则将追究法律责任。