首页 > 数据库技术 > 详细

Oracle dg 状态校验

时间:2021-09-20 15:19:28      阅读:29      评论:0      收藏:0      [点我收藏+]
查看主库状态:
select open_mode,protection_mode,database_role,switchover_status from v$database;


OPEN_MODE            PROTECTION_MODE             DATABASE_ROLE         SWITCHOVER_STATUS
-------------------- ----------------------------- ------------------------ ------------------------
READ WRITE           MAXIMUM PERFORMANCE      PRIMARY                      TO STANDBY

查看备库状态:
select open_mode,protection_mode,database_role,switchover_status from v$database;

OPEN_MODE                   PROTECTION_MODE             DATABASE_ROLE         SWITCHOVER_STATUS
------------------------- ----------------------------- ------------------------ ------------------------
READ ONLY WITH APPLY MAXIMUM PERFORMANCE      PHYSICAL STANDBY      NOT ALLOWED

检查主备两边的序号
select max(sequence#) from v$log;

备库执行,查看是否有数据未应用
select name,SEQUENCE#,APPLIED from v$archived_log order by sequence#;

select SEQUENCE#,FIRST_TIME,NEXT_TIME ,APPLIED from v$archived_log order by 1;

 

Oracle dg 状态校验

原文:https://www.cnblogs.com/tigergaonotes/p/15310635.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!