码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2020-07-25 23:57:18      阅读:177      评论:0      收藏:0      [点我收藏+]

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

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   

原文地址:https://www.cnblogs.com/mydb/p/13376142.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!