When i called for the listener on linux, im facing the following error like “linux error 111 connection refused “. How can i fix linux error 111 connection refused ?
[oraclekierac2948 bin]$ lsnrctl
LSNRCTL for Linux: Version 11.2.0.1.0 – Production on 03-FEB-2021 02:13:35
Copyright (c) 1997, 2016, Oracle. All rights reserved.
Welcome to LSNRCTL, type “help” for information.
LSNRCTL> start
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rac2)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Fixing “linux error 111 connection refused error is easy. Basically this is a common error that we face when working with linux environment. when we get this 111 issue with connecting the given HOST.
The host file i.e /etc/hosts might not have address or the name of the server that we connect.
So please edit /etc/hosts if required and verify it. Commit the changes you made and restart the listener adapter.