磁碟空間不足 線上移動Oracle的資料檔案

來源:互聯網
上載者:User

在匯入資料時,匯入到一半,發現磁碟的空間不足。

這需要把資料庫檔案的資料移動到其他的磁碟中。

1、讓資料檔案離線:

SQL> alter database datafile

2 'H:\Oracle\product\10.2.0\oradata\lhoms\pub\test_space.dbf'

3 offline;

資料庫已更改。

2、剪貼資料檔案到其他磁碟

把H:\oracle\product\10.2.0\oradata\lhoms\pub\test_space.dbf

剪貼到F:\oradata\目錄下

3、重新指定資料檔案路徑

SQL> alter database rename file 'H:\oracle\product\10.2.0\oradata\lhoms\pub\test_space.dbf' to 'F:\oradata\test_space.dbf';

資料庫已更改。

4、恢複該資料檔案

SQL> recover datafile 'F:\oradata\test_space.dbf';

ORA-00279:更改3998546665081 (在06/13/2011 13:10:56產生)對於線程1是必需的

ORA-00289:建議:

H:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\LHOMS\ARCHIVELOG\2011_06_13\O1_MF_1

_2573_%U_.ARC

ORA-00280:更改3998546665081 (用於線程1)在序列#2573中

指定日誌: {<RET>=suggested | filename | AUTO | CANCEL}

Auto   (可選中Auto)

已應用的日誌。

完成介質恢複。

5、使資料檔案線上

SQL> alter database datafile 'F:\oradata\test_space.dbf' online;

資料庫已更改。

完畢!

聯繫我們

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