当前位置: 代码迷 >> 综合 >> TNS-12560: TNS:protocol adapter error and Linux Error: 111: Connection refused
  详细解决方案

TNS-12560: TNS:protocol adapter error and Linux Error: 111: Connection refused

热度:95   发布时间:2023-12-19 17:07:00.0

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localdomain)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused


解决过程:
[oracle@ log]$ more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
10.10.5.24 localdomain
10.10.3.254 localdomain

[root@~]# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost #添加
10.10.5.24 localdomain
10.10.3.254 localdomain

  相关解决方案