解決方法一:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
進程 ID: 0
會話 ID: 0 序列號: 0
因為這個小小的錯誤,折騰了我好幾個小時,特記錄如下。
上網(wǎng)搜索了下解決方案,如下:
sqlplus "sys/password as sysdba"
連接成功,提示"已連接到空閑例程"
SQL> startup
ORACLE 例程已經(jīng)啟動。
Total System Global Area 535662592 bytes
Fixed Size 1375792 bytes
Variable Size 293601744 bytes
Database Buffers 234881024 bytes
Redo Buffers 5804032 bytes
數(shù)據(jù)庫裝載完畢。
ORA-03113: 通信通道的文件結(jié)尾
進程 ID: 5412
會話 ID: 5 序列號: 5
出現(xiàn)一個新錯誤:ORA-03113: 通信通道的文件結(jié)尾;分析可能由于昨晚數(shù)據(jù)庫強制關(guān)閉,導致文件狀態(tài)可能不一致,因為正常關(guān)閉數(shù)據(jù)庫會同步校驗各文件,使得重新啟動的時候文件時間點一致。
找到解決方案如下:
SQL> conn / as sysdba
已連接到空閑例程。
SQL> startup mount
ORACLE 例程已經(jīng)啟動。
Total System Global Area 535662592 bytes
Fixed Size 1375792 bytes
Variable Size 293601744 bytes
Database Buffers 234881024 bytes
Redo Buffers 5804032 bytes
數(shù)據(jù)庫裝載完畢。
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC
---------- ---------- ---------- ---------- ---------- ---------- ---
STATUS FIRST_CHANGE# FIRST_TIME NEXT_CHANGE# NEXT_TIME
---------------- ------------- -------------- ------------ -------------
1 1 340 52428800 512 1 NO
INACTIVE 8474486 02-4月 -11 8522856 02-4月 -11
3 1 342 52428800 512 1 NO
INACTIVE 8555222 06-4月 -11 8565162 11-4月 -11
2 1 343 52428800 512 1 NO
CURRENT 8565162 11-4月 -11 2.8147E+14
SQL> alter database open resetlogs
2 ;
alter database open resetlogs
*
第 1 行出現(xiàn)錯誤:
ORA-01139: RESETLOGS 選項僅在不完全數(shù)據(jù)庫恢復后有效
SQL> recover database until time '2011-04-11 12:12:12'
完成介質(zhì)恢復。
SQL> alter database open resetlogs;
數(shù)據(jù)庫已更改。
SQL> shutdown
數(shù)據(jù)庫已經(jīng)關(guān)閉。
已經(jīng)卸載數(shù)據(jù)庫。
ORACLE 例程已經(jīng)關(guān)閉。
SQL> startup
ORACLE 例程已經(jīng)啟動。
Total System Global Area 535662592 bytes
Fixed Size 1375792 bytes
Variable Size 293601744 bytes
Database Buffers 234881024 bytes
Redo Buffers 5804032 bytes
數(shù)據(jù)庫裝載完畢。
數(shù)據(jù)庫已經(jīng)打開。
解決方法:二
我頂 字號:大 中 小
在試圖登錄pl/sql時,輸入用戶名(system/pwd)后,Oracle報告下列錯誤:
ERROR:
ORA-27101 Shared memory realm does not exist
ORA-01034 ORACLE not available &<60;
查閱了相關(guān)
ORA-27101 Shared memory realm does not exist
ORA-01034 ORACLE not available &<60;
的說明,解釋為ORACLE_HOME或者ORACLE_SID設(shè)置不正確。
但檢查bash_profile以后沒有發(fā)現(xiàn)錯誤;
錯誤點,沒有開啟oracle服務(wù);
解決辦法,直接開啟oracle相關(guān)數(shù)據(jù)庫的服務(wù);
或按照下面的步驟操作:
lsnrctl start
sqlplus '/as sysdba'
sql> startup
emctl start dbconsole
isqlplusctl start
posted on 2014-07-22 18:43
fly 閱讀(1877)
評論(0) 編輯 收藏 所屬分類:
數(shù)據(jù)庫學習