Solution to Oracle 11gR2 listener startup error in CentOS7
An error occurred while starting the Oracle listener:
[Oracle @ localhost ~] $ Lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0-Production on 12-APR-2016 00:27:54
Copyright (c) 1991,200 9, Oracle. All rights reserved.
Starting/data/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...
TNS-12537: TNS: connection closed
TNS-12560: TNS: protocol adapter error
TNS-00507: Connection closed
Linux Error: 29: Illegal seek
[Oracle @ localhost ~] $ Cat/etc/hosts
127.0.0.1 localhost. localdomain localhost4 localhost4.localdomain4 odb-sonny
: 1 localhost. localdomain localhost6 localhost6.localdomain6
According to the network speed Query Information, 127.0.0.1 localhost needs to be added to the etc/hosts for testing ~~
Then I tried a bunch of methods ~~
Finally, change localhost in listerner. ora to the IP address of the local machine ~~
[Oracle @ localhost ~] $ Cat/data/oracle/product/11.2.0/db_1/network/admin/listener. ora
# Listener. ora Network Configuration File:/data/oracle/product/11.2.0/db_1/network/admin/listener. ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.232.133) (PORT = 1521 ))
)
)
ADR_BASE_LISTENER =/data/oracle
[Oracle @ localhost ~] $