时间:2021-07-01 10:21:17 帮助过:23人阅读
检查事务使用undo segment的情况:
SELECT s.username, s.sid, pr.PID, s.OSUSER, s.MACHINE, s.PROGRAM, rs.segment_id, r.usn, rs.segment_name, r.rssize/1024/1024, sq.sql_text FROM gv$transaction t, gv$session s, gv$rollstat r, dba_rollback_segs rs ,gv$sqltext sq,gv$process pr WHERE s.saddr = t.ses_addr AND t.xidusn = r.usn AND rs.segment_id = t.xidusn AND s.sql_address=sq.address AND s.sql_hash_value = sq.hash_value AND s.PADDR=pr.ADDR ORDER BY t.used_ublk DESC ,sq.PIECE;
Oracle 查看 使用 UNDO 段的事务脚本
标签:order 情况 rollback 技术分享 sqlt 事务 username style xtend