2026-03-12 21:01:38
This commit is contained in:
11
tiddlywiki/Dataguard archivelog apply check.txt
Executable file
11
tiddlywiki/Dataguard archivelog apply check.txt
Executable file
@@ -0,0 +1,11 @@
|
||||
alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';
|
||||
set lines 200
|
||||
|
||||
-- on PRIMARY database
|
||||
----------------------
|
||||
select THREAD#, max(SEQUENCE#), max(FIRST_TIME),max(NEXT_TIME),max(COMPLETION_TIME) from gv$archived_log group by THREAD#;
|
||||
|
||||
-- on STANDBY database
|
||||
----------------------
|
||||
select THREAD#, max(SEQUENCE#), max(FIRST_TIME),max(NEXT_TIME),max(COMPLETION_TIME) from gv$archived_log
|
||||
where APPLIED='YES' group by THREAD#;
|
||||
Reference in New Issue
Block a user