To modify the linux host name of an Oracle Database

Source: Internet
Author: User

To modify the linux host name of Oracle, the original host name is centos, change to test 1, modify vim/etc/hosts vim/etc/sysconfig/network service network restart in linux, and modify the Oracle configuration. At this time, the Oracle instance is not started. An error occurred while executing lsnrctl status. [Oracle @ test ~] $ Lsnrctl statusLSNRCTL for Linux: Version 11.2.0.1.0-Production on-2013 15: 44: 55 Copyright (c) 1991,200 9, Oracle. all rights reserved. connecting to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = centos) (PORT = 1521) TNS-12545: connection failure TNS-12560: TNS: protocol adapter Error TNS-00515: Connection Failed Linux Error: 3: No such process because listener because the target host or object does not exist. the host name in the ora file does not match the Host Name of the current local machine. Reconfigure the listener. ora file [oracle @ test ~] $ Vim $ ORACLE_HOME/network/admin/listener. ora changes "HOST = centos" to "HOST = test" and runs lnsrctl start to start the listener. [Oracle @ test ~] $ Lsnrctl startLSNRCTL for Linux: Version 11.2.0.1.0-Production on-2013 15: 50: 15 Copyright (c) 1991,200 9, Oracle. all rights reserved. start/opt/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: Please wait... TNSLSNR for Linux: Version 11.2.0.1.0-Production system parameter file:/opt/oracle/product/11.2.0/dbhome_1/network/admin/listener. ora writes/opt/oracle/diag/tnslsnr/test/listener/alert/log. xml log information listener: (DESCRIPTION = (ADDR ESS = (PROTOCOL = tcp) (HOST = test) (PORT = 1521) connecting to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = test) (PORT = 1521) listener status ------------------------ alias LISTENER version TNSLSNR for Linux: version 11.2.0.1.0-Production start date: 2013 15:50:17 normal running time: 0 days 0 hours 0 minutes 1 second tracking level off security ON: local OS AuthenticationSNMP OFF listener parameter file/opt/oracle/product/11.2.0/dbhome_1/network/admin/listener. ora listener log file/opt/oracle /Diag/tnslsnr/test/listener/alert/log. xml listener endpoint overview... (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = test) (PORT = 1521) The Listener does not support successful execution of service commands. The Listener starts normally and the modification is complete.

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.