create undo tablespace MOZI datafile 'E:\Oracle\product\10.2.0\oradata\orcl\MOZI.DBF' size 2048M extent management local;
alter system set undo_tablespace=MOZI;
WINDOW下面的ORCL資料庫提示:資料庫未開啟: 僅允許在固定表/視圖中查詢
載入資料庫時出錯:
RA-01157: 無法標識/鎖定資料檔案 7 - 請參閱 DBWR 追蹤檔案
ORA-01110: 資料檔案 7: 'D:\TCM52.DBF'
SQL> startup
ORACLE 常式已經啟動。
Total System Global Area 293601280 bytes
Fixed Size 1290208 bytes
Variable Size 209715232 bytes
Database Buffers 75497472 bytes
Redo Buffers 7098368 bytes
資料庫裝載完畢。
ORA-01157: 無法標識/鎖定資料檔案 7 - 請參閱 DBWR 追蹤檔案
ORA-01110: 資料檔案 7: 'D:\TCM52.DB<span class="hilite">F</span>'
原因:我在數據庫服務停止的時候,將數據檔案D:\TCM52.DBF刪除了。
解決方法:
SQL> startup
ORACLE 常式已經啟動。
Total System Global Area 293601280 bytes
Fixed Size 1290208 bytes
Variable Size 213909536 bytes
Database Buffers 71303168 bytes
Redo Buffers 7098368 bytes
資料庫裝載完畢。
ORA-01157: 無法標識/鎖定資料檔案 7 - 請參閱 DBWR 追蹤檔案
ORA-01110: 資料檔案 7: 'D:\TCM52.DBF'
SQL> alter database datafile 'd:\TCM52.dbf' offline drop;
資料庫已更改。
SQL> alter database open;
資料庫已更改。
SQL> drop tablespace TCM52 including contents;
資料表空間已刪除。
SQL> create undo tablespace TCM52 datafile 'E:\oracle\product\10.2.0\oradata\TCM52.db<span class="hilite">f</span>' size 2048M extent management local;
資料表空間已建立。
SQL> alter system set undo_tablespace=TCM52;
系統已更改。
LINUX環境下出現類似的問題,