1. Change the machine name
~]# hostnamectl--static Set-hostname Oracle
2.
~]# su-oracle
Last login:tue April 10:11:34 CST from 192.168.30.250 on pts/0
[Email protected] ~]$ lsnrctl status
Lsnrctl for linux:version 11.2.0.1.0-production on 12-apr-2016 10:19:53
Copyright (c) 1991, Oracle. All rights reserved.
Connecting to (Description= (address= (PROTOCOL=IPC) (key=extproc1521)))
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=tcp) (host=webtest) (port=1521)))
Tns-12545:connect failed because target host or object does not exist
Tns-12560:tns:protocol Adapter Error
Tns-00515:connect failed because target host or object does not exist
Linux Error:110:connection timed out
3.
~]$ Vim $ORACLE _home/network/admin/listener.ora
Change to related machine name
4. Start monitoring
~]$ Lsnrctl Start
This article is from the "Starseven" blog, make sure to keep this source http://lcpljc.blog.51cto.com/200989/1762865
Centos7 Oracle cannot use after changing machine name