0% found this document useful (0 votes)
5 views1 page

Knowledge - Base - DC - DR Sync

Uploaded by

kapil Jadhav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Knowledge - Base - DC - DR Sync

Uploaded by

kapil Jadhav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

set lines 165 pages 2000;

col host_name for a25;


alter session set nls_date_format='DD-MM-YYYY HH24:MI:SS';
select INSTANCE_NAME,HOST_NAME,VERSION,STARTUP_TIME,STATUS from gv$instance;
select NAME,OPEN_MODE,DATABASE_ROLE,PROTECTION_MODE,PROTECTION_LEVEL,FORCE_LOGGING,
SWITCHOVER_STATUS from v$database;

set lines 200 pages 1000


SELECT NAME,
ROUND((TOTAL_MB)/1024,2) TOTAL_GB,
ROUND((FREE_MB)/1024,2) FREE_GB,
ROUND((TOTAL_MB-FREE_MB)/1024,2) USED_GB
FROM V$ASM_DISKGROUP;

select max(sequence#),thread# from gv$archived_log where applied='YES' and


REGISTRAR='RFS' group by thread#;

select max(sequence#),thread# from gv$log group by thread#;

alter database recover managed standby database cancel;

alter database recover managed standby database disconnect from session;

alter database recover managed standby database using current logfile;

select process,status from v$managed_standby;

select process,sequence#,thread#,status,blocks,block# from v$managed_standby;

select al.thrd "Thread", almax "Last Seq Received", lhmax "Last Seq Applied" ,
almax - lhmax "Arc_gap"
from (select thread# thrd, max(sequence#) almax
from v$archived_log
where resetlogs_change#=(select resetlogs_change# from v$database)
group by thread#) al,
(select thread# thrd, max(sequence#) lhmax
from v$log_history
where resetlogs_change#=(select resetlogs_change# from v$database)
group by thread#) lh
where al.thrd = lh.thrd order by 1;

Thread Last Seq Received Last Seq Applied Arc_gap


---------- ----------------- ---------------- ----------
1 14252 14250 2

You might also like