Centos7 Oracle cannot use after changing machine name

Source: Internet
Author: User

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

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.