After the IP address of the oracle server is changed, the listener cannot process it.

Source: Internet
Author: User

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

 


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.