Oracle查詢回滾大事務所需時間

guocun09發表於2022-09-15

取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部落格 ” ,連結:http://blog.itpub.net/25583515/viewspace-2914732/,如需轉載,請註明出處,否則將追究法律責任。

相關文章