本文主要是介绍TNS-12560: TNS:protocol adapter error and Linux Error: 111: Connection refused,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
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
这篇关于TNS-12560: TNS:protocol adapter error and Linux Error: 111: Connection refused的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!