转载:http://blog.itpub.net/29475508/viewspace-1256685/

【实验过程】
1、主、备库查看当前日志状况

select sequence#,status from v$log;

2、备库查看RFS接收日志和MRP应用日志同步主库情况

select process, sequence#, status, delay_mins from v$managed_standby;

3、察看备库是否和主库同步

select sequence#,status from v$log;
select archived_thread#,archived_seq#,applied_thread#,applied_seq# from v$archive_dest_status;

4、备库查4、看已经归档的redo

select REGISTRAR,CREATOR,THREAD#,APPLIED,sequence#,first_change#,next_change#, COMPLETION_TIME from v$archived_log;

5、备库查看已经应用的redo

select thread#,sequence#,first_change#,next_change# from v$log_history;

6、主、备库查看是否有gap

select status,gap_status from v$archive_dest_status where dest_id=2;

备库查看

select * from v$archive_gap;

通过上面这6种方法,都可以对主备库间日志传输情况进行监控。
如果日志传输出现代沟(GAP),就需要及时排查问题,必要时还可以采取手工处理GAP措施。

标签: none

评论已关闭