TNS-1254 TNS-12560 TNS-00511 Linux Error: 111 【轉載】
這次安裝oracle資料庫,遇到了不少麻煩,在網上搜集了資料,放在這裡,作為解決問題的辦法,留個紀念,作為參考。
網址:
http://blog.csdn.net/reda0821/article/details/7821007
http://cbcman.blog.163.com/blog/static/64816431201273559634/
開放1521埠,再試..結果如下:
刪掉了,重新加上, 然後
之後結果如下:
重新進入rails目錄 rake db:migrate 搞定!
網址:
http://blog.csdn.net/reda0821/article/details/7821007
http://cbcman.blog.163.com/blog/static/64816431201273559634/
今天在做ORACLE資料庫和torquebox的連線
在配置好driver之後 rake的時候發現如下異常:
java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection>
資料庫連結失敗..
開啟sqlplus 連結一切正常..
反覆修改database.yaml後,仍然報錯。
於是netstat檢視埠
發現列表中並沒有1521埠。
可能是防火牆把埠遮蔽掉了
於是
- iptables -I INPUT -p tcp --dport 1521 -j ACCEPT
- iptables -I FORWARD -p tcp --dport 1521 -j ACCEPT
開放1521埠,再試..
仍然不行...
檢視下oracle監聽服務:
- lsnrctl status
- LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 01-AUG-2012 16:07:46
- Copyright (c) 1991, 2011, Oracle. All rights reserved.
- Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
- TNS-12541: TNS:no listener
- TNS-12560: TNS:protocol adapter error
- TNS-00511: No listener
- Linux Error: 111: Connection refused
- Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=wodeoraclefuwuqi)(PORT=1521)))
- TNS-12541: TNS:no listener
- TNS-12560: TNS:protocol adapter error
- TNS-00511: No listener
- Linux Error: 111: Connection refused
找到問題原因了,上網google,發現這個問題和IP有關係,之前在調整apache虛擬伺服器的時候,為了測試把/etc/hosts裡的這一行:
- 127.0.0.1 localhost.localdomain localhost
刪掉了,重新加上, 然後
- lsnrctl start
之後
- lsnrctl status
- LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 01-AUG-2012 16:11:35
- Copyright (c) 1991, 2011, Oracle. All rights reserved.
- Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
- STATUS of the LISTENER
- ------------------------
- Alias LISTENER
- Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
- Start Date 01-AUG-2012 16:11:27
- Uptime 0 days 0 hr. 0 min. 8 sec
- Trace Level off
- Security ON: Local OS Authentication
- SNMP OFF
- Default Service XE
- Listener Parameter File /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
- Listener Log File /u01/app/oracle/diag/tnslsnr/sstdevel/listener/alert/log.xml
- Listening Endpoints Summary...
- (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
- (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=wodeoraclefuwuqi)(PORT=1521)))
- Services Summary...
- Service "PLSExtProc" has 1 instance(s).
- Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
- The command completed successfully
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22275400/viewspace-751360/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【故障|監聽】TNS-12545、TNS-12560、TNS-00515和Linux Error: 111LinuxError
- oracle listener錯誤Linux Error: 111: Connection refusedOracleLinuxError
- TNS-12537, TNS-12560, TNS-00507 Linux Error: 29: Illegal seek error When StartinLinuxError
- TNS-12560: TNS:protocol adapter error 錯誤解決ProtocolAPTError
- TNS-12537, TNS-12560, TNS-00507 Linux Error: 29: Illegal seek error When Starting the ListenerLinuxError
- OGG 同步報錯 - TCP/IP error 111 (Connection refused)TCPError
- 轉載:ORA-00600: internal error code, arguments: [504]Error
- Linux磁碟掛載 轉Linux
- [Linux]配置Xmanager[轉載]Linux
- 【轉】在linux下oracle的TNS-12537, TNS-12560, TNS-00507LinuxOracle
- 111
- OGG-01224 error 111:Connection refused - retries exceeded.Error
- linux 111 錯誤 監聽起不來Linux
- 讓Linux掛載NTFS(轉)Linux
- [下載]BitTorrent for Linux 4.4.0(轉)Linux
- 菜鳥學Linux 第111篇筆記 MemoryLinux筆記
- linux上udev的配置(轉載)Linuxdev
- [轉載] Linux 目錄詳解Linux
- linux awk命令詳解 --轉載Linux
- [下載]PHP 5.1.2 for Unix/Linux(轉)PHPLinux
- SUSE Linux 下載專題(轉)Linux
- (轉)ERROR:FailedtobuildgemnativeextensionErrorAIUI
- Input/output error [ linux ]ErrorLinux
- lst111
- [轉載]Linux/Mac go版本升級LinuxMacGo
- linux繫結多個ip(轉載)Linux
- 全面瞭解Linux載入器(轉)Linux
- Linux掛載檔案系統(轉)Linux
- [Linux] Linux bond 網路卡繫結配置教程(轉載)Linux
- Linux Error: 29: Illegal seekLinuxError
- EBS TNS-12546: TNS:permission denied+ TNS-12560: TNS:protocol adapter error+TNS-00516: Permission deProtocolAPTError
- Overview of Oracle Processes (111)ViewOracle
- 111、酬張少府
- 2788647047_111py
- 11. [轉載]linux中awk命令使用Linux
- 【轉載】linux自動分割槽指令碼Linux指令碼
- Linux裸裝置相關命令[轉載]Linux
- 紅旗Linux影片課程下載(轉)Linux