轉自:http://blog.itpub.net/29800581/viewspace-1273615/
hutdown immediate關資料庫的時候出現ORA-01089: immediate shutdown in progress - no operations are permitted的錯誤。
ps -ef|grep ora_發現oracle的各個背景程序仍然在運作着,說明資料庫沒有關閉成功。
解決方法如下:
先exit退出,重新登入:
[[email protected] trace]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 18 08:21:53 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
@ 18-SEP-14>conn /as sysdba
Connected to an idle instance.
接着,使用shutdown abort強制關閉資料庫:
[email protected] 18-SEP-14>shutdown abort;
ORACLE instance shut down.
最後,使用startup force打開資料庫:
[email protected] 18-SEP-14>startup force;
ORACLE instance started.
Total System Global Area 849530880 bytes
Fixed Size 1339824 bytes
Variable Size 641732176 bytes
Database Buffers 201326592 bytes
Redo Buffers 5132288 bytes
Database mounted.
Database opened.
打開資料庫之後,再次使用shutdown immediate關閉資料庫:
SYS[email protected] 18-SEP-14>shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
問題解決。