Files
oracle/vdh/get_curr_undo_span.sql

21 lines
435 B
MySQL
Raw Normal View History

2026-03-12 21:23:47 +01:00
column curr_undo_span format a30 heading "Flasback Query Possible Until"
select
to_char(systimestamp - numtodsinterval (min(tuned_undoretention), 'second'), 'DD/MM/YYYY HH24:MI:SS TZR') curr_undo_span
from
( select
inst_id,
tuned_undoretention,
row_number() over
( partition by inst_id
order by begin_time desc
) as rn
from
gv$undostat
)
where
rn = 1
order by
inst_id
;