分类: Oracle
2018-01-16 21:32:10
刚开始ip有点紧张,我就只设置了一个SCAN,怕轮询不了,必须在加SCAN IP
这样来增加: [root@esm1 ~]# /u01/grid/11g/bin/srvctl config scan SCAN name: racscan, Network: 1/192.168.116.0/255.255.255.0/eth0 SCAN VIP name: scan1, IP: /racscan/192.168.116.254
我们看看scan监听的情况 [root@esm1 ~]# /u01/grid/11g/bin/srvctl config scan_listener SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521 [root@esm1 ~]# /u01/grid/11g/bin/srvctl status scan_listener SCAN
Listener LISTENER_SCAN1 is enabled SCAN listener
LISTENER_SCAN1 is running on node esm1
停止scan的监听
[root@esm1 ~]# /u01/grid/11g/bin/srvctl stop scan_listener
[root@esm1 ~]# /u01/grid/11g/bin/srvctl status scan_listener SCAN
Listener LISTENER_SCAN1 is enabled SCAN listener LISTENER_SCAN1 is not running
停止scan
[root@esm1 ~]# /u01/grid/11g/bin/srvctl stop scan
增加hosts文件的scan Ip
192.168.116.254 racscan
192.168.116.253 racscan
执行一下修改动作:
[root@esm1 ~]# /u01/grid/11g/bin/srvctl modify scan -n racscan 启动scan 启动监听
[root@esm1 ~]# /u01/grid/11g/bin/srvctl status scan
[root@esm1 ~]# /u01/grid/11g/bin/srvctl status scan_listener