After the IP address of the oracle server is changed, the following error is reported when the listener is started after the IP address of the oracle server is changed:
<Txt> TNS-12542: TNS: address already in use TNS-12560: TNS: protocol adapter error TNS-00512: Address already in use Linux Error: 98: address already in use Modify/etc/hosts [oracle @ localhost ~] $ More/etc/hosts #127.0.0.1 localhost. localdomain localhost4 localhost4.localdomain4 #: 1 localhost. localdomain localhost6 localhost6.localdomain6 # 192.168.1.20.localhost localhost. localdomain localhost4 localhost4.localdoma # 192.168.1.20.www. fbird. cn124.232.153.226 (the modified IP address here) localhost. localdomain [oracle @ localhost ~] $ More/etc/sysconfig/networkNETWORKING = yesHOSTNAME = localhost. localdomain -- hostname must be consistent with the host name [oracle @ localhost admin] $ more listener. ora # listener. ora Network Configuration File:/u01/app/oracle/product/11.2.0/db_1/network/admin/listener. ora # Generated by Oracle configuration tools. LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = localhost. localdomain -- the same as the host name) (PORT = 1521) ADR_BASE_LISTENER =/u01/app/oracle [oracle @ localhost admin] $ lsnrctl statusLSNRCTL for Linux: version 11.2.0.1.0-Production on 28-SEP-2013 12: 41: 04 Copyright (c) 1991,200 9, Oracle. all rights reserved. connecting to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = localhost. localdomain) (PORT = 1521) STATUS of the LISTENER ------------------------ Alias LISTENERVersion TNSLSNR for Linux: Version 11.2.0.1.0-ProductionStart Date 28-SEP-2013 12: 30: 30 Uptime 0 days 0 hr. 10 min. 33 secTrace Level offSecurity ON: Local OS AuthenticationSNMP OFFListener Parameter File/u01/app/oracle/product/11.2.0/db_1/network/admin/listener. oraListener Log File/u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log. xmlListening Endpoints Summary... (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = localhost) (PORT = 1521) Services Summary... service "orcl" has 1 instance (s ). instance "orcl", status READY, has 1 handler (s) for this service... service "orclXDB" has 1 instance (s ). instance "orcl", status READY, has 1 handler (s) for this service... the command completed successfully