1.ORA-01102: cannot mount database in EXCLUSIVE mode
現象:
SQL> startup
Oracle instance started.
Total System Global Area 1224736768 bytes
Fixed Size 2020384 bytes
Variable Size 318770144 bytes
Database Buffers 889192448 bytes
Redo Buffers 14753792 bytes
ORA-01102: cannot mount database in EXCLUSIVE mode
解決方案:
a.cd $ORACLE_HOME/dbs
b.fuser -u lk* (fuser在/sbin目錄下)
得到諸如:lkCAPITALV: 368(oracle) 370(oracle) 372(oracle) 374(oracle) 376(oracle) 378(oracle) 380(oracle) 382(oracle) 384(oracle) 386(oracle) 388(oracle) 397(oracle) 1472(oracle) 1557(oracle) 8852(oracle)
c.fuser -k lk* (殺掉資源佔用的東東)
d.fuser -u lk*
若無輸出顯示,則達到目的了
再次啟動資料庫
SQL> startup
ORACLE instance started.
Total System Global Area 1224736768 bytes
Fixed Size 2020384 bytes
Variable Size 318770144 bytes
Database Buffers 889192448 bytes
Redo Buffers 14753792 bytes
Database mounted.
Database opened.
OK.問題解決。
2.ORA-01081:cannot start already-running ORACLE-shut it down first
SQL>shutdown abort
SQL>startup
3.ora-01219 資料庫未開啟:僅允許在固定的表/視圖查詢
是日誌太多的緣故
首先執行語句 SQL〉shutdown immediate;
然後執行 SQL〉 startup mount; (若此步失敗的話,轉2步驟執行後在接著執行一下命令)
然後用CLEAR命令重建該記錄檔
SQL>alter database clear logfile group 1;
如果是該日誌組還沒有歸檔,則需要用
SQL> alter database clear unarchived logfile group 1;
發現clear不成功
SQL> alter database clear unarchived logfile group 1;