Solve the Oracle start monitoring error
On the Linxu virtual machine, start the Oracle listening service:
[oracle@localhost ~]$ lsnrctl start
As a result, the monitoring error message is as follows:
TNS-12537: TNS:connection closed
TNS-12560: TNS:protocol adapter error
TNS-00507: Connection closed
Linux Error: 29: Illegal seek
After several attempts and consulting information, it is found that the error is caused by the default host name. At this time, the following steps can be performed to solve the above error reporting problem:
-
modify hostname
[root@localhost oracle]# hostname oracle
-
Add "host ip oracle" to the /etc/hosts file
[root@oracle oracle]# vim /etc/hosts ... 主机ip oracle
-
Add "hostname = oracle" in the etc/sysconfig/network file
[root@oracle oracle]# vim /etc/sysconfig/network ... hostname=oracle
-
restart listener
[root@oracle oracle]# lsnrctl start
After a wave of configuration, the monitoring is successfully enabled: