Data Guard Physical Standby Setup in Oracle11.2 & 后加 Data Guard Broker 之03 (Maximum Availability

Posted 轻飘飘D

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Data Guard Physical Standby Setup in Oracle11.2 & 后加 Data Guard Broker 之03 (Maximum Availability相关的知识,希望对你有一定的参考价值。

1.主库

[oracle@xag1124a ~]$  sqlplus / as sysdba

SQL> select protection_mode,protection_level,log_mode,open_mode,flashback_on from v$database;

PROTECTION_MODE      PROTECTION_LEVEL	  LOG_MODE     OPEN_MODE      FLASHBACK_ON
-------------------- -------------------- ------------ ---------------------------
MAXIMUM PERFORMANCE  MAXIMUM PERFORMANCE  ARCHIVELOG   READ WRITE      NO

SQL> alter system set log_archive_dest_2=‘service=db11g_stby LGWR SYNC AFFIRM valid_for=(ONLINE_LOGFILES,primary_role) db_unique_name=DB11G_STBY‘ scope=both;

SQL> ALTER DATABASE SET STANDBY DATABASE TO MAXIMIZE AVAILABILITY;

SQL> select protection_mode,protection_level,log_mode,open_mode,flashback_on from v$database;

PROTECTION_MODE      PROTECTION_LEVEL	  LOG_MODE     OPEN_MODE      FLASHBACK_ON
-------------------- -------------------- ------------ ---------------------------
MAXIMUM AVAILABILITY RESYNCHRONIZATION	  ARCHIVELOG   READ WRITE      NO

2.备库

[oracle@xag1124b ~]$  sqlplus / as sysdba
SQL> select protection_mode,protection_level,log_mode,open_mode,flashback_on from v$database;

PROTECTION_MODE      PROTECTION_LEVEL	  LOG_MODE     OPEN_MODE                 FLASHBACK_ON
-------------------- -------------------- ------------ ------------------------  -------------
MAXIMUM AVAILABILITY MAXIMUM AVAILABILITY ARCHIVELOG   READ ONLY WITH APPLY      NO


SQL> alter system set log_archive_dest_2=‘service=db11g_pri LGWR SYNC AFFIRM valid_for=(ONLINE_LOGFILES,primary_role) db_unique_name=DB11G_PRI‘ scope=both;


SQL> select protection_mode,protection_level,log_mode,open_mode,flashback_on from v$database;

PROTECTION_MODE      PROTECTION_LEVEL	  LOG_MODE     OPEN_MODE            FLASHBACK_ON
-------------------- -------------------- ------------ -------------------- -------------
MAXIMUM AVAILABILITY MAXIMUM AVAILABILITY ARCHIVELOG   READ ONLY WITH APPLY NO

3.主库再次检查

SQL> select protection_mode,protection_level,log_mode,open_mode,flashback_on from v$database;

PROTECTION_MODE      PROTECTION_LEVEL	  LOG_MODE     OPEN_MODE            FLASHBACK_ON
-------------------- -------------------- ------------ -------------------- -------------
MAXIMUM AVAILABILITY MAXIMUM AVAILABILITY ARCHIVELOG   READ WRITE            NO

以上是关于Data Guard Physical Standby Setup in Oracle11.2 & 后加 Data Guard Broker 之03 (Maximum Availability的主要内容,如果未能解决你的问题,请参考以下文章

Data Guard Physical Standby Setup Using the Data Guard Broker in Oracle 11.2 之01(安装配置)

11.2 Data Guard Physical Standby Switchover Best Practices using SQL*Plus (Doc ID 1304939.1)

Oracle Data Gurad Physical Standby 相关说明

[译] Data Guard:Oracle Database 21c 中的 PREPARE DATABASE FOR DATA GUARD 命令

Oracle Active Data Guard和Data Guard的区别

DATA GUARD架构