Oracle DG 之-- Remove DG Broker

简介:

How to Safely Remove a Data Guard Broker Configuration [ID 261336.1]


Modified20-OCT-2010     Type REFERENCE     Status PUBLISHED


PURPOSE

-------

How to safely remove a Data Guard Broker configuration.

SCOPE & APPLICATION

-------------------

This applies to all DBAs who wish to remove and deactive a

Data Guard Broker configuration.

Removing the Configuration

----------------------------

1) Remove the Data Guard Broker Configuration

 a) Using the Commandline DGMGRL:

    - Connect to the Primary Database

      DGMGRL> connect sys/<Password>@<Primary Database>

    - Remove the Data Guard Broker Configuration

      DGMGRL> remove configuration;

 b) Using Data Guard Manager or Grid Control:

    Follow the Wizard as mentioned in the Chapter

    'Scenarios Using Oracle Enterprise Manager'

    of the Data Guard Broker Guide of each Database Version.

2) On the primary database set dg_broker_start=false:

SQL> show parameter dg_broker

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

dg_broker_config_file1               string      ?/dbs/dr1@.dat

dg_broker_config_file2               string      ?/dbs/dr2@.dat

dg_broker_start                      boolean     TRUE

SQL>

SQL> alter system set dg_broker_start=false scope=both;

System altered.

SQL>  show parameter dg_broker

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

dg_broker_config_file1               string      ?/dbs/dr1@.dat

dg_broker_config_file2               string      ?/dbs/dr2@.dat

dg_broker_start                      boolean     FALSE

SQL>

3) On the primary disable any archive destinations that are archiving to the standby:

SQL> select dest_id,destination,status

 2  from v$archive_dest

 3  where target='STANDBY';

  DEST_ID

----------

DESTINATION

--------------------------------------------------------------------------------

STATUS

---------

        2

(DESCRIPTION=(ADDRESS_LIST = (ADDRESS=(PROTOCOL=tcp)(HOST=bjsrv)(PORT=1521)))(CONNECT_DATA=(SID=TestDB12)(ORACLE_HOME=/u01/app/oracle/11.2.0/dbhome_1)(SERVER=DEDICATED)))

VALID

SQL> alter system set log_archive_dest_state_2=defer scope=both;

System altered.

SQL>

4) on the standby set the dg_broker_start parameter to false:

SQL> show parameter dg_broker

NAME                                 TYPE        VALUE

------------------------------------ ----------- ------------------------------

dg_broker_config_file1               string      ?/dbs/dr1@.dat

dg_broker_config_file2               string      ?/dbs/dr2@.dat

dg_broker_start                      boolean     TRUE

SQL> alter system set dg_broker_start=false scope=both;

System altered.

SQL>

5) On both system rename the metadata files (if they exist):

oracle@bjsrv:/u03/oracle/9.2.0/dbs> mv dr1DG920.dat dr1bjdb.bak

oracle@bjsrv:/u03/oracle/9.2.0/dbs> mv dr2DG920.dat dr2bjdb.back

RELATED DOCUMENTS

--------------------

Oracle Data Guard Broker Guide










本文转自 客居天涯 51CTO博客,原文链接:http://blog.51cto.com/tiany/1405143,如需转载请自行联系原作者
目录
相关文章
|
2月前
|
Oracle 关系型数据库 数据库连接
初步了解Oracle DG
初步了解Oracle DG
39 0
|
5月前
|
Oracle 安全 关系型数据库
Oracle数据守卫(DG):数据的“守护者”与“时光机”
【4月更文挑战第19天】Oracle Data Guard保障数据安全,通过实时维护备库实现故障切换,保证业务连续性。它使用日志传输和应用保持数据同步,如同“时光机”,借助闪回技术能恢复误操作数据。此外,它还提供数据压缩、加密和故障转移等功能,提升数据库安全性与性能。作为数据管理员,理解并善用Data Guard是确保企业数据安全的关键。
|
Oracle 关系型数据库
Oracle 物理 DG 转 ADG 步骤
DataGuard 物理备库,正常为 mount 状态,如果想要进行查询,需要转为 ADG,即 read only 状态!
Oracle 物理 DG 转 ADG 步骤
|
运维 Oracle 安全
Oracle运维笔记之DG主备切换后的细节修改
Oracle运维笔记之DG主备切换后的细节修改
Oracle运维笔记之DG主备切换后的细节修改
|
运维 网络协议 Oracle
Oracle运维笔记之通过duplicate创建DG时遇到的ORA-12528问题
Oracle运维笔记之通过duplicate创建DG时遇到的ORA-12528问题
1148 0
Oracle运维笔记之通过duplicate创建DG时遇到的ORA-12528问题