2026-03-12 20:23:15

This commit is contained in:
root
2026-03-12 21:23:47 +01:00
parent eab4b36eca
commit 93039b8489
3332 changed files with 699614 additions and 0 deletions

15
vdh/show_latest_arch.sql Normal file
View File

@@ -0,0 +1,15 @@
select thread#, sequence#, next_change#, to_char(next_time, 'DD/MM/YYYY HH24:MI:SS') next_time
from ( select thread#, sequence#, next_time, next_change#,
row_number() over
( partition by thread#
order by sequence# desc
) rn
from v$archived_log
where resetlogs_id =
( select resetlogs_id
from v$database_incarnation
where status = 'CURRENT'
)
)
where rn = 1
order by thread#;