dataguard broker 求救
本人新手 公司要求配置dataguard 我在自己的电脑上用虚拟机先做测试 然后再配置到服务器上去
redhat5+oracle 10.2.0.1
主库:192.168.0.100 SID/db_unique_name/db_name都是:orcl
备库:192.168.0.101 db_name:orcl db_unique_name:orcldg SID:orcldg
主备库都按照网上的文档配置成功了 可以在主库归档以后 在备库能接受到归档日志
现在想要主备库可以自动切换,网上说可以用broker,我不懂就按照网上的文档来配置
有几个问题想问问各位大侠
1 dgmgrl是必须在第三方客户机上启动么 我现在两台电脑 上面都是redhat5+oracle10.2.0.1
还是我只要在主库或者备库里面直接开启一个终端 然后输入dgmgrl就可以开始配置了
2 我是直接在备库里开终端 输入dgmgrl开始配置的 但是在enable configuration的时候就会卡 住不动,退出来show configuration的时候也是卡主不动
我的主库备库都是在mount状态下开始配置的 打开了falshback 也在主备库上配置了alter system set dg_broker_start = true scope=both;
一些配置文件贴出来 如下:
主库的listener.ora:
# listener.ora Network Configuration File: /oracle/product/10.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.100)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /oracle/product/10.2.0/db_1)
(SID_NAME = orcl)
)
(SID_DESC =
(GLOBAL_DBNAME = orcl_DGMGRL)
(ORACLE_HOME = /oracle/product/10.2.0/db_1)
(SID_NAME = orcl)
)
)
SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF
备库的listener.ora
# listener.ora Network Configuration File: /oracle/product/10.2.0_1/network/adminstener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.101)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/product/10.2.0_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = orcldg)
(ORACLE_HOME = /oracle/product/10.2.0_1)
(SID_NAM