Oracle DG 之-- Remove DG Broker

本文提供了一套详细的步骤来安全地移除 Oracle Data Guard Broker 的配置。内容包括通过 DGMGRL 命令行工具或 Data Guard Manager 进行配置删除、禁用参数 dg_broker_start、取消归档目的地设置等关键操作。

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

转自:https://blog.51cto.com/tiany/1405143

转载于:https://blog.51cto.com/lyzbg/2090691

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值