如果发现解析有问题,只认第一个scan ip
默认是multi on的(可多个scan ip),如果off的话会导致该问题
该问题参考
Linux中host&host.conf&host.allow&host.deny作用-CSDN博客
添加方法:
1.修改hosts
2.确认sacn信息
srvctl config scan
srvctl status scan
srvctl status scan_listener
3.关闭scan监听、scan服务
srvctl stop scan_listener
srvctl stop scan
4.修改scan配置
找srvctl位置
which srvctl
root执行(node-scan是scan的别名)
/oracle/grid/crs_1/bin/srvctl modify scan -n node-scan
5.更新scan监听
root跑
/oracle/grid/crs_1/bin/srvctl modify scan_listener -u
6.起scan监听、scan服务
srvctl start scan
srvctl start scan_listener
7.查看scan信息
srvctl config scan
8.确认集群信息
有了3个scan监听和scan服务(两个1节点上,一个2节点上)