记一次| oracle12c 搭建 ADG

环境准备:两台服务器(系统centos7.9)
主库:192.168.1.42 主机名:cent7z 预装了oracle12c-db软件 监听和库都是正常的
备库:192.168.1.33 主机名:cent7 预装了oracle12c-db软件 (无监听,无数据库)

1、修改/etc/hosts文件,将主从的ip和主机名添加进去(主备两边都要做)

vim /etc/hosts

192.168.1.42 cent7z 192.168.1.33 cent7 [oracle@cent7 ~]$ ping cent7z PING cent7z (192.168.1.42) 56(84) bytes of data. 64 bytes from cent7z (192.168.1.42): icmp_seq=1 ttl=64 time=0.355 ms [root@cent7z ~]# ping cent7 PING cent7 (192.168.1.33) 56(84) bytes of data. 64 bytes from cent7 (192.168.1.33): icmp_seq=1 ttl=64 time=0.283 ms