ITPub博客

首页 > 数据库 > Oracle > 物理DG监控

物理DG监控

原创 Oracle 作者:OGG-01161 时间:2014-04-01 09:07:29 0 删除 编辑

一、监控恢复进度

1、查看进程的活动状态,查看STANDBY DB

     

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

  

2、查看REDO应用进度,查看STANDBY DB

select dest_name,archived_thread#,archived_seq#,applied_thread#,applied_seq#,db_unique_name 

 from   v$archive_dest_status where status='VALID';                                                  

3、检查归档文件路径和创建信息,查看STANDBY DB

  select name,creator,sequence#,applied,completion_time from v$archived_log;   

 

4、查询归档历史,查看STANDBY DB

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

  

5、查看最后应用的归档文件,查看STANDBY DB

 select thread#,max(sequence#) as "LAST_APPLIED_LOG" from v$log_history group by thread#;

 

6、查看物理STANDBY数据库未接收的日志文件,在PRIMARY端执行

  select local.thread#,local.sequence# 

  from (select thread#,sequence# from v$archived_log where dest_id=1) local 

  where local.sequence# not in

  (select sequence# from v$archived_log where dest_id=2 and thread#=local.thread#);

 

  

二、监控日志应用服务

 1、查询当前数据的基本信息,查看STANDBY DB

    select database_role,db_unique_name,open_mode,protection_mode,protection_level,switchover_status from v$database;

 

 2、查看当前REDO应用和REDO传输服务的活动状态,查看STANDBY DB

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

 3、查看应用模式,查看STANDBY DB

 

    

   select recovery_mode from v$archive_dest_status where dest_id=2;

 

 

 4、DATA GUARD事件,查看STANDBY DB

   select message from v$dataguard_status;

 

 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27571661/viewspace-1133675/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2012-08-11

  • 博文量
    55
  • 访问量
    157570