Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Oracle cannot be used after centos7 changes the machine name

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

1. Change the machine name

~] # hostnamectl-- static set-hostname oracle

2 、

~] # su-oracle

Last login: Tue Apr 12 10:11:34 CST 2016 from 192.168.30.250 on pts/0

[oracle@oracledb ~] $lsnrctl status

LSNRCTL for Linux: Version 11.2.0.1.0-Production on 12-APR-2016 10:19:53

Copyright (c) 1991, 2009, 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 the relevant machine name

4. Start monitoring

~] $lsnrctl start

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report