一、更改機器名稱 web
~]# hostnamectl --static set-hostname oracle
2、vim
~]# su - oracle
Last login: Tue Apr 12 10:11:34 CST 2016 from 192.168.30.250 on pts/0bash
[oracle@oracledb ~]$ lsnrctl statusoracle
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 12-APR-2016 10:19:53ide
Copyright (c) 1991, 2009, Oracle. All rights reserved.get
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))it
TNS-12541: TNS:no listenerio
TNS-12560: TNS:protocol adapter errorast
TNS-00511: No listenerclass
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
更改成相關機器名
四、啓動監聽
~]$ lsnrctl start