今天在linux系统上启动oracle监听的时候报错:
[oracle@localhost ~]$ lsnrctl start
TNS-12537:
TNS:connection closed
TNS-12560: TNS:protocol adapter error
TNS-00507: Connection closed
Linux Error: 29: Illegal seek
百思不得其解,然后在网上查找原因,初步确定是因为,配置文件中的hostname不对应,赶紧检查配置文件,还真是两个配置文件中的主机名对不上,修改hostname:
进入到root用户下:su - root
[root@localhost
~]# cat /etc/hosts
127.0.0.1
localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
128.1.46.6
localhost
[root@localhost
~]# vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
将该文件中的HOSTNAME参数值改为localhost之后,重启监听,OK!!!可以启动。
来源:CSDN
作者:今夕不惑
链接:https://blog.csdn.net/MisshqZzz/article/details/51880298