原 Oracle环境中报错TNS-00511、TNS-12541、No listener,其实监听已启动
Tags: Oracle原创故障处理监听no listener
现象
使用tnsping的时候发现报错 No listener
告警日志:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | Fatal NI connect error 12541, connecting to: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=100.51.163.21)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)(CID=(PROGRAM=oracle)(HOST=dgorcl)(USER=oracle)))) VERSION INFORMATION: TNS for Linux: Version 11.2.0.4.0 - Production TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.4.0 - Production Time: 17-AUG-2024 23:18:29 Tracing not turned on. Tns error struct: ns main err code: 12541 TNS-12541: TNS:no listener ns secondary err code: 12560 nt main err code: 511 TNS-00511: No listener nt secondary err code: 111 nt OS err code: 0 Error 12541 received logging on to the standby Check whether the listener is up and running. PING[ARC2]: Heartbeat failed to connect to standby 're_163_21'. Error is 12541. |
分析
情况1:
rac环境修改了scan ip后,需要重启整个集群,否则对rac scanip的tnsping会报这个无监听的错误。
情况2:
单机切换IP后,原来的IP地址并未down掉,也就是说整个网络环境中存在2个100.51.163.21地址,所以,做tnsping也会报无监听的错误。