重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1649|回复: 1
打印 上一主题 下一主题

[安装] 如何重建Dataguard Broker Configuration

[复制链接]
跳转到指定楼层
楼主
发表于 2018-8-5 12:53:49 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
dg broker 配置文件出现问题,如何手工重建。

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

沙发
 楼主| 发表于 2018-8-5 12:54:25 | 只看该作者
Step By Step How to Recreate Dataguard Broker Configuration (文档 ID 808783.1)        转到底部转到底部       

In this Document
        Goal
        Solution
        References

Applies to:
Oracle Database - Enterprise Edition - Version 9.2.0.1 to 12.1.0.2 [Release 9.2 to 12.1]
Information in this document applies to any platform.
***Checked for relevance on 17-Feb-2014***
*** Reviewed for Relevance 16-Jul-2015 ***


Goal

Step By Step How to Recreate Dataguard Broker Configuration on Windows and Unix.

Parameters used

dg_broker_start

dg_broker_config_file1

dg_broker_config_file2


Solution

Step 1. Stop broker in both of primary and standby databases (in all instances in case of RAC):
SQL>ALTER SYSTEM SET DG_BROKER_START=FALSE;

Step 2. Drop old broker configuration files from both primary and standby:

Check the location of files using : "show parameter dg_broker_config_file"
By default the broker configuration files will be in "$ORACLE_HOME/dbs" in Unix and "$ORACLE_HOME/database" in Windows.
SQL> show parameter dg_broker_config_file

NAME                   TYPE   VALUE
---------------------- ------ ----------------------------------------
dg_broker_config_file1 string \oracle\product\10.2.0\dbs\dr1PROD10G.dat
dg_broker_config_file2 string \oracle\product\10.2.0\dbs\dr2PROD10G.dat

Drop the files using ASMCMD if files are on ASM:
ASMCMD> cd DATA/PROD10G/
ASMCMD> rm dr1PROD10G.dat
ASMCMD> rm dr2PROD10G.dat

Drop the files using :

Unix
$cd $ORACLE_HOME/dbs
$ rm dr1PROD10G.dat
$ rm dr2PROD10G.dat


Windows
c:\>cd $ORACLE_HOME/database
D:\oracle\product\10.2.0\db_2\database> del dr1PROD10G.dat
D:\oracle\product\10.2.0\db_2\database> del dr2PROD10G.dat

Step 3. Start broker in both of primary and standby (in all instances in case of RAC):
SQL>ALTER SYSTEM SET DG_BROKER_START=TRUE;

Step 4. Connect to DGMGRL on primary: (from instance one in case of RAC)
$dgmgrl
DGMGRL for Linux: Version 10.2.0.3.0 - Production

Copyright (c) 2000, 2005, Oracle. All rights reserved.

Welcome to DGMGRL, type "help" for information.

DGMGRL> CONNECT sys/<password>;
Connected.

Step 5. Create configuration on primary:
DGMGRL> CREATE CONFIGURATION 'PRODCONF' AS PRIMARY DATABASE IS 'PROD10G' CONNECT IDENTIFIER IS PROD10G;

Configuration "PRODCONF" created with primary database "PROD10G"

Step 6. Add standby in the configuration:
DGMGRL> ADD DATABASE 'STDBY10G' AS CONNECT IDENTIFIER IS STDBY10G MAINTAINED AS PHYSICAL;

Database "STDBY10G" added

Step 7. Enable Configuration:
DGMGRL> ENABLE CONFIGURATION;
Enabled.

Use the SHOW command to verify that the configuration and its databases were successfully enabled and brought online:
DGMGRL> SHOW CONFIGURATION;

Configuration
Name: PRODCONF
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED

Databases:
PROD10G - Primary database
STDBY10G - Physical standby database

Current status for "PRODCONF"
SUCCESS
References
NOTE:454418.1 - Unable To Recreate Data Guard Fast Start Failover Configuration With DGMGRL
NOTE:2010503.1 - 12.1 Data guard Broker(DGMGRL) Enhancements - Complete Reference
NOTE:1583588.1 - 12c Create Dataguard Broker Configuration - DGMGRL
BUG:18610799 - DATA GUARD BROKER DOES NOT MANAGE BLOCK CHANGE TRACKING DURING ROLE SWITCH
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-4-27 18:06 , Processed in 0.075863 second(s), 19 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表