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

31
vdh/logical_standby.sql Normal file
View File

@@ -0,0 +1,31 @@
set linesize 150
column type format a15
column status format a80
select sid, serial#, type, status
from v$logstdby_process
order by type;
select applied_scn, applied_sequence#, to_char(applied_time, 'DD/MM/YYYY HH24:MI:SS') applied_time
from dba_logstdby_progress
order by applied_scn;
column thread# format 99999
column sequence# format 999999
select
thread#, sequence#, first_change#, to_char(first_time, 'DD/MM/YYYY HH24:MI:SS') first_time,
next_change#, to_char(next_time, 'DD/MM/YYYY HH24:MI:SS') next_time, file_name, applied
from
dba_logstdby_log
where
applied = 'NO'
or next_time >= trunc(sysdate)
order by
thread#, sequence#;
column value format a20
select *
from v$dataguard_stats;