[Oracle] Solve the problem of starting monitoring error

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:

  1. modify hostname

    [root@localhost oracle]# hostname oracle
    
  2. Add "host ip oracle" to the /etc/hosts file

    [root@oracle oracle]# vim /etc/hosts
    ...
    主机ip oracle
    
  3. Add "hostname = oracle" in the etc/sysconfig/network file

    [root@oracle oracle]# vim /etc/sysconfig/network
    ...
    hostname=oracle
    
  4. restart listener

    [root@oracle oracle]# lsnrctl start
    

After a wave of configuration, the monitoring is successfully enabled:

insert image description here

Guess you like

Origin blog.csdn.net/zzy_NIC/article/details/120617988