说明
1.源端:(11g单实例)
IP: 192.168.114.176
Hostname: vmzj
db_unique_name: vmzj
2.目标端:(11gRAC)
IP: 192.168.20.241, 192.168,20.242
VIP: 192.168.20.243, 192.168,20.244
Scan-ip: 192.168.20.245
Hostname: racnode1,racnode2
db_unique_name: ru
3.此次DG的创建通过duplicate。。。 from active database创建DG
4.数据库版本,两端都是11.2.0.4
另一篇相关文章更为详细一些:Oracle单实例到RAC用duplicate active database做DataGuard之二
源端配置网络
检查确保主库在归档模式
静态监听:
[oracle@vmzj admin]$ vi listener.ora
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(PORT = 1522))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
SID_LIST_LISTENER=
(SID_LIST=
(SID_DESC=
(GLOBAL_DBNAME=vmzj)
(SID_NAME=vmzj)
(ORACLE_HOME=/u02/oracle/product/11.2.0/dbhome_1)
)
)
网络连接配置
[oracle@vmzj admin]$ vi tnsnames.ora