2026-03-12 20:23:15
This commit is contained in:
13
vdh/get_last_recovery_scn_in_backup.sql
Normal file
13
vdh/get_last_recovery_scn_in_backup.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
column next_change# format 999999999999999
|
||||
select *
|
||||
from ( select thread#, max(sequence#) sequence#, max(next_change#) next_change#, to_char(max(next_time), 'DD/MM/YYYY HH24:MI:SS') next_time
|
||||
from v$backup_archivelog_details
|
||||
where resetlogs_time =
|
||||
( select resetlogs_time
|
||||
from v$database_incarnation
|
||||
where status = 'CURRENT'
|
||||
)
|
||||
group by thread#
|
||||
order by next_change#
|
||||
)
|
||||
where rownum = 1;
|
||||
Reference in New Issue
Block a user