当前位置:Gxlcms > 数据库问题 > Data Guard Physical Standby Setup in Oracle11.2 & 后加 Data Guard Broker 之03 (Maximum Availability)

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

时间:2021-07-01 10:21:17 帮助过:5人阅读

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)

标签:open   fir   protect   logfile   pen   ack   ase   evel   _for   

人气教程排行