Oracle ORA-01157: 無法標識/鎖定資料檔案

來源:互聯網
上載者:User

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環境下出現類似的問題,

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.