Oracle移動資料檔案

來源:互聯網
上載者:User

標籤:stat   情況   sof   status   資料檔案   font   name   檔案名稱   alt   

   由於oracle資料表空間資料檔案規劃問題導致當前資料檔案所在檔案系統空間不足,當其他檔案系統空間充足情況下,可將資料檔案移動到空間充足的檔案系統下。本文主要描述Oracle資料表空間資料檔案移動的操作步驟。

資料表空間資料檔案移動操作步驟

1、查看當前待動作表空間DATATBS對應的資料檔案的路徑、狀態。

SQL> select tablespace_name,file_name,online_status from dba_data_files where tablespace_name=‘DATATBS‘; 

2、將DATATBS資料表空間狀態想修改為offline

SQL> alter tablespace datatbs offline; 

3、移動資料檔案到指定的目錄下。

SQL> host move /opt/oracle/oradata/datatbs.dbf /home/oracle/datatbs.dbf; 

4、重新命名當前資料檔案名為修改後的路徑。

SQL> alter tablespace datatbs rename datafile ‘/opt/oracle/oradata/datatbs.dbf‘ to ‘/home/oracle/datatbs.dbf‘; 

5、將資料表空間對應狀態修改為online

SQL> alter tablespace datatbs online; 

6、操作完成。

Oracle移動資料檔案

相關文章

聯繫我們

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