誤修改ORACLE_HOME導致無法登陸資料庫
1、現象:
[oracle@secdb1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Feb 25 23:49:20 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 314572800 bytes
Fixed Size 1219184 bytes
Variable Size 79693200 bytes
Database Buffers 230686720 bytes
Redo Buffers 2973696 bytes
Database mounted.
Database opened.
SQL> conn system/oracle@PROD
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
Warning: You are no longer connected to ORACLE.
SQL>
2.解決方法:
懷疑是ORACLE_HOME目錄設定不正確導致,檢視ORACLE_HOME目錄,發現目錄中多了一個“/”
[oracle@secdb1 ~]$ echo $ORACLE_HOME
//u01/app/oracle/product/10.2.0/db_1
重新設定一下ORACLE_HOME的目錄,啟動資料後,連線正常
[oracle@secdb1 ~]$ export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
[oracle@secdb1 ~]$ echo $ORACLE_HOME
/u01/app/oracle/product/10.2.0/db_1
[oracle@secdb1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Feb 26 00:27:41 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 314572800 bytes
Fixed Size 1219184 bytes
Variable Size 79693200 bytes
Database Buffers 230686720 bytes
Redo Buffers 2973696 bytes
Database mounted.
Database opened.
SQL> conn system/oracle@PROD
Connected.
SQL>
3、總結
oracle使用者中的環境變數非常重要,特別是ORACLE_HOME,如果不小心改動了,會導致資料庫無法連線
jiangkck
2014026
----------------------
[oracle@secdb1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Feb 25 23:49:20 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 314572800 bytes
Fixed Size 1219184 bytes
Variable Size 79693200 bytes
Database Buffers 230686720 bytes
Redo Buffers 2973696 bytes
Database mounted.
Database opened.
SQL> conn system/oracle@PROD
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
Warning: You are no longer connected to ORACLE.
SQL>
2.解決方法:
懷疑是ORACLE_HOME目錄設定不正確導致,檢視ORACLE_HOME目錄,發現目錄中多了一個“/”
[oracle@secdb1 ~]$ echo $ORACLE_HOME
//u01/app/oracle/product/10.2.0/db_1
[oracle@secdb1 ~]$ export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
[oracle@secdb1 ~]$ echo $ORACLE_HOME
/u01/app/oracle/product/10.2.0/db_1
[oracle@secdb1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Feb 26 00:27:41 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 314572800 bytes
Fixed Size 1219184 bytes
Variable Size 79693200 bytes
Database Buffers 230686720 bytes
Redo Buffers 2973696 bytes
Database mounted.
Database opened.
SQL> conn system/oracle@PROD
Connected.
SQL>
3、總結
oracle使用者中的環境變數非常重要,特別是ORACLE_HOME,如果不小心改動了,會導致資料庫無法連線
jiangkck
2014026
----------------------
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/393784/viewspace-1090324/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- listener的ORACLE_HOME配置出錯導致無法遠端登陸資料庫Oracle資料庫
- ORACLE_HOME設定錯誤導致本地sqlplus無法登陸OracleSQL
- 修改SQLNET.ORA導致資料庫無法啟動SQL資料庫
- spfile誤修改導致資料庫無法啟動的另一種恢復方法資料庫
- 【故障恢復】因spfile修改錯誤導致資料庫無法啟動的恢復方法資料庫
- 【strings】spfile誤修改導致資料庫無法啟動的另一種恢復方法資料庫
- linux下錯誤修改了/etc/profile導致虛擬機器無法登入Linux虛擬機
- SPFILE 錯誤導致資料庫無法啟動(ORA-01565)資料庫
- ORA-06502報錯導致資料庫所有檢視無法修改。資料庫
- cacti登陸出現報錯:資料庫無法連線資料庫
- 又一例SPFILE設定錯誤導致資料庫無法啟動資料庫
- HA異常導致oracle資料庫無法啟動Oracle資料庫
- 一次資料庫無法登陸的問題及排查資料庫
- 一次資料庫無法登陸的"問題"及排查資料庫
- 磁碟IO故障導致的SQLServer資料庫無法寫入SQLServer資料庫
- UNDO表空間損壞導致資料庫無法OPEN資料庫
- 歸檔問題導致的資料庫無法啟動資料庫
- 網站無法登陸網站
- LD_LIBRARY_PATH設定不當導致無法登陸和啟動oracleOracle
- oracle SGA設定過大導致資料庫無法啟動Oracle資料庫
- 歸檔日誌無法歸檔導致資料庫hang住資料庫
- 大量"library cache lock"事件導致資料庫無法連線事件資料庫
- ORACLE DSG資料同步軟體程式導致資料庫無法正常關閉Oracle資料庫
- 資料庫表匯出不全導致tomcat無法釋出程式資料庫Tomcat
- OS臨時埠耗盡導致無法建立資料庫連線資料庫
- Linux SSH 無法登陸Linux
- solaris修改root shell後無法登陸的問題解決
- 【epoll問題】EPOLLRDHUP使用導致無法接受資料
- 資料庫恢復狀態可能導致JOB無法自動執行資料庫
- 重新命名/etc/security致rhel5無法登陸_處理
- [Oracle]由於初始化引數檔案修改錯誤導致oracle無法startupOracle
- 11gR2私有ip修改錯誤導致crs無法啟動解決方法
- 【恢復】非歸檔模式下因誤刪除資料檔案導致資料庫無法OPEN的故障處理模式資料庫
- 應用使用JNDI,資料庫無法連線,導致的程序無法啟動問題處理資料庫
- [HP-UX] ftp無法登陸UXFTP
- Linux主機記憶體溢位導致oracle的SYS使用者無法正常登陸Linux記憶體溢位Oracle
- 【oracle資料庫資料恢復】誤操作導致的資料庫誤刪除的資料恢復案例Oracle資料庫資料恢復
- [oracle]undo表空間出錯,導致資料庫例項無法開啟Oracle資料庫