#剛開始直接root用戶登錄,在etc目錄,切換到oracle,輸入lsnrctl start啟動(dòng)oracle時(shí)提示"lsnrctl: command not found"
[root@loveyao_test etc]# su oracle
[oracle@loveyao_test etc]$ lsnrctl start
bash: lsnrctl: command not found#切換回root用戶,cd /根目錄, 再次su - oracle ,輸入lsnrctl start啟動(dòng)oracle,這次正常啦.
[oracle@loveyao_test ~]$ cd /
[oracle@loveyao_test /]$ su -root
su: invalid option -- 'r'
Try `su --help' for more information.
[oracle@loveyao_test /]$ su - root
Password:
[root@loveyao_test ~]# su - oracle
[oracle@loveyao_test ~]$
[oracle@loveyao_test ~]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 04-JUL-2016 22:06:57
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Log messages written to /u01/app/oracle/diag/tnslsnr/loveyao_test/listener/alert/log.xml
Error listening on: (ADDRESS=(PROTOCOL=tcp)(HOST=)(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: 25: Inappropriate ioctl for device
Listener failed to start. See the error message(s) above...
[oracle@loveyao_test ~]$
#如上所示: oracle啟動(dòng)失敗,提示"Error listening on: (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12545: Connect failed because target host or object does not exist"
#hosts文件導(dǎo)致,切換root修改hosts文件,重新啟動(dòng)oracle可以正常啟動(dòng). 具體操作如下:
[oracle@loveyao_test alert]$ su - root
Password:
[root@loveyao_test ~]#
[root@loveyao_test ~]#
[root@loveyao_test ~]# vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
~
#將hosts文件localhost 修改成主機(jī)名hostname的名字,
注意: vi /etc/sysconfig/network 文件可以修改hostname的名字(這里修改后需要重啟系統(tǒng)).
[root@loveyao_test ~]# vi /etc/hosts
127.0.0.1 loveyao_test localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
~
[root@loveyao_test ~]# su - oracle
[oracle@loveyao_test ~]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 04-JUL-2016 22:23:22
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Log messages written to /u01/app/oracle/diag/tnslsnr/loveyao_test/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=loveyao_test)(PORT=1521)))
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date 04-JUL-2016 22:23:22
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File /u01/app/oracle/diag/tnslsnr/loveyao_test/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=loveyao_test)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@loveyao_test ~]$
#查看oracle監(jiān)聽端口1521
[oracle@loveyao_test ~]$ ss -tanl
Recv-Q Send-Q Local Address:Port Peer Address:Port
0 128 :::111 :::*
0 128 *:111 *:*
0 128 :::1521 :::*
0 128 :::25493 :::*
0 128 :::22 :::*
0 128 *:22 *:*
0 128 127.0.0.1:631 *:*
0 128 ::1:631 :::*
0 100 ::1:25 :::*
0 100 127.0.0.1:25 *:*
0 128 *:39108 *:*
[oracle@loveyao_test ~]$
網(wǎng)站設(shè)計(jì)制作、
成都網(wǎng)站建設(shè),成都做網(wǎng)站公司-
創(chuàng)新互聯(lián)公司已向1000+企業(yè)提供了,網(wǎng)站設(shè)計(jì),網(wǎng)站制作,網(wǎng)絡(luò)營(yíng)銷等服務(wù)!設(shè)計(jì)與技術(shù)結(jié)合,多年網(wǎng)站推廣經(jīng)驗(yàn),合理的價(jià)格為您打造企業(yè)品質(zhì)網(wǎng)站。
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。
新聞名稱:oracle啟動(dòng)錯(cuò)誤提示---hostname原因?qū)е?創(chuàng)新互聯(lián)
URL分享:http://jinyejixie.com/article6/issig.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站營(yíng)銷、ChatGPT、微信小程序、營(yíng)銷型網(wǎng)站建設(shè)、用戶體驗(yàn)、網(wǎng)站維護(hù)
廣告
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源:
創(chuàng)新互聯(lián)