listener is up but "lsnrctl status" says it is down
When I issue the command lsnrctl status on my Linux server. It indicates that listener is down. However the listener is up and client connection is working.
$ ps -fu oracle |grep tns
oracle 4509 1 0 Apr21 ? 00:00:39 /oracle/app/oracle/product/19.0.0/dbhome_1/bin/tnslsnr LISTENER -inherit
$ lsnrctl status
LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 23-APR-2021 11:33:28
Copyright (c) 1991, 2020, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=myserver)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 2: No such file or directory
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error