oracle11 資料表空間dbf檔案遷移,oracle11dbf

來源:互聯網
上載者:User

oracle11 資料表空間dbf檔案遷移,oracle11dbf

當oracle的資料檔案所在的磁碟空間不夠用了或其他情況需要把dbf檔案遷移到另外的位置,下面是操作步驟:

1、sqlplus sys/sys as sysdba

2、shutdown immediate

3、copy dbf檔案到新的位置

4、startup mount;

5、alter database rename file 'E:\oracle\oradata\hqbi\EFMWEB03.DBF' to 'G:\oradata\hqbi\EFMWEB03.DBF'; 

第一個檔案為原來資料表空間的dbf檔案,第二個為新的位置

6、alter database open;

7、如果報下面的錯:

第 1 行出現錯誤:
ORA-01113: 檔案 9 需要介質恢複
ORA-01110: 資料檔案 9: 'G:\ORADATA\HQBI\EFMWEB03.DBF'

則需要執行下面的語句:

recover datafile 'G:\oradata\hqbi\EFMWEB03.DBF';

 

搞定!

 


oracle10g 對於匯入資料表空間資料 dbf檔案

單純備份某個資料表空間的物理檔案是不行的,最好使用以前的匯出檔案或者rman備份。
如果把所有的資料檔案、控制檔案、參數檔案、口令檔案都備份,可以恢複。
 
oracle 資料表空間冷遷移

將資料表空間置於offline->移動資料表空間檔案->rename資料表空間檔案到新的位置->recover tablespace->將資料表空間置於online
如果不知道每一步驟的命令,可以追問我,本人長期長時間持續線上
 

相關文章

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.