錯誤情況:ORA-01033: ORACLE initialization or shutdown in progress
錯誤分析:由於刪除數據文件,啓動服務以後,連接報錯ORA-01033: ORACLE initialization or shutdown in progress;
解決辦法:
SQL> startup mount
ORACLE 例程已經啓動。
Total System Global Area 612368384 bytes
Fixed Size 1250428 bytes
Variable Size 104860548 bytes
Database Buffers 499122176 bytes
Redo Buffers 7135232 bytes
數據庫裝載完畢。
–ARCHIVELOG模式命令,文件名要大寫
SQL> alter database datafile 'C:/TEST.DBF' offline;
–NOARCHIVELOG模式命令
SQL> alter database datafile 'C:/TEST.DBF' offline drop;
alter database open;
–查詢數據文件聯、脫機狀態
SQL> select file#,name,status from v$datafile;
SQL> drop tablespace test;
表空間已丟棄。