一、重建scan监听 (1)查看集群各资源状态 crsctl stat res -t (2)停止现有scan监听 srvctl stop scan_listener (3)移除集群中scan监听 srvctl remove scan_listener (4)添加新的scan监听 srvctl add scan_listener -l LISTENER (5)查看集群监听是否添加成功 crsctl stat res –t (6)开启scan监听 srvctl start scan_listener (7)数据库实例注册到scan监听 alter system set remote_listener=ht-scan:1521; (8) 查看scan监听及状态 [+ASM1]@ht01[/home/grid]$srvctl status scan_listener SCAN 监听程序 LISTENER_SCAN1 已启用 SCAN 监听程序 LISTENER_SCAN1 正在节点 ht01 上运行 lsnrctl status LISTENER_SCAN1 二、修改scan名称 查看scan [+ASM1]@ht01[/home/grid]$srvctl config scan SCAN 名称: ht-scan, 网络: 1 子网 IPv4: 192.168.20.0/255.255.255.0/enp0s8, static 子网 IPv6: SCAN 1 IPv4 VIP: 192.168.20.234 SCAN VIP 已启用。 关闭节点2集群 /u01/app/grid/bin/crsctl stop crs -f root 在节点1上执行 /u01/app/grid/bin/srvctl modify scan -scanname ht01-scan 重启节点1上集群 [+ASM1]@ht01[/home/grid]$srvctl config scan SCAN 名称: ht01-scan, 网络: 1 子网 IPv4: 192.168.20.0/255.255.255.0/enp0s8, static 子网 IPv6: SCAN 1 IPv4 VIP: 192.168.20.234 SCAN VIP 已启用。 添加scan监听 添加scan root用户执行修改/etc/hosts 192.168.20.234 ht01-scan 192.168.20.235 ht01-scan 192.168.20.236 ht01-scan grid用户执行 srvctl stop scan_listener srvctl stop scan srvctl status scan_listener root用户执行 /u01/app/grid/bin/srvctl modify scan -n ht01-scan /u01/app/grid/bin/srvctl modify scan_listener -u grid用户执行 srvctl start scan srvctl start scan_listener srvctl status scan_listener