oracle 11g 手動刪除資料表空間檔案導致資料庫報錯處理方法

來源:互聯網
上載者:User

標籤:oracle刪除資料表空間 報錯ora-01116 ora-01110 ora-27041

簡單說下原因:當時圖方便沒進資料庫,直接在datafile目錄下刪除了資料表空間對應的資料檔案

導致後來資料庫報錯,並且不能刪除資料表空間

錯誤如下;
ORA-01116:error in opening database ****
ORA-01110:data file 54:‘/home3/datafile/arrange/NewArrange.dbf‘
ORA-27041:unable to open file
Linux Error:2: No Such file or directory
Additional information: 3


alter database datafile ‘/hot/oradata/SMSDBMT_INDX01.dbf‘ offline drop;
alter database datafile ‘/hot/oradata/SMSDBMT_INDX01.dbf‘ offline drop
*
ERROR at line 1:
ORA-01516: nonexistent log file, data file, or temporary file
"/hot/oradata/SMSDBMT_INDX01.dbf"


解決辦法:

1,先關閉資料庫

SQL> shutdown immediate -----報錯

SQL> shutdown abort  --停用資料庫

2,啟動資料庫到掛載模式

SQL>startup mount 

SQL>alter database datafile ‘/hot/oradata/SMSDBMT_INDX01.dbf‘ offline drop; -----刪除資料表空間檔案 成功

3, 開啟資料庫

SQL>alter database open;

4,刪除資料表空間

SQL>drop tablespace SMSDBMT_INDX including contents and datafiles;---刪除資料表空間


本文出自 “10999243” 部落格,請務必保留此出處http://11009243.blog.51cto.com/10999243/1857031

oracle 11g 手動刪除資料表空間檔案導致資料庫報錯處理方法

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.