oracle 表空間下資料檔案遷移的三種方法
上個星期週末幫客戶做了一個歷史表空間的資料檔案遷移案例,主要是換儲存,有raid 0+1 遷移到 raid 5 儲存型別
上,下面記錄下幾種遷移方法,檔案系統是裸裝置型別,首先要在raid 5儲存上建好相應的lv 裸裝置資料檔案,注意大小一定要和原來一樣大或更大。
1. 用cplv的方法
alter tablespace tablespace_name offline;
cplv old_lv to new_lv
alter database rename file 'old_lv' to 'new_lv';
alter tablespace tablespace_name online;
2.用rman copy的方法
sqlplus 下
alter tablespace tablespace_name offline;
rman 工具下
rman target /
copy datafile 'old_lv ' to 'new_lv';
sqlplus 下
alter database rename file 'old_lv' to 'new_lv';
alter tablespace tablespace_name online;
3. 全部用rman工具+rman copy 來實現的方法 一個指令碼搞定
run{
allocate channel c1 type disk;
sql 'alter tablespace tablespace_name offline';
copy datafile 'old_lv' to 'new_lv';
set newname for datafile 6 to 'new_lv';
switch datafile 6;
sql 'alter tablespace tablespace_name online';
release channel c1;
}
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-580442/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 表空間資料檔案遷移Oracle
- (個人)Oracle 表空間資料檔案遷移(轉)Oracle
- 線上遷移表空間資料檔案
- InnoDB資料表空間檔案平滑遷移
- 資料檔案,表空間的移動
- oracle 將表空間下的資料檔案從檔案系統遷移到ASM磁碟組OracleASM
- 【資料遷移】使用傳輸表空間遷移資料
- 移動資料檔案、系統表空間檔案、臨時表空間檔案
- ORACLE表批量遷移表空間Oracle
- 資料庫物件遷移表空間資料庫物件
- 達夢資料庫系統表空間資料檔案遷移過程資料庫
- Oracle 表空間與資料檔案Oracle
- oracle 資料檔案表空間管理Oracle
- Oracle中表空間、表、索引的遷移Oracle索引
- MySQL innodb共享表空間新增表空間資料檔案方法MySql
- oracle rac on aix 下為表空間增加資料檔案OracleAI
- oracle 回收表空間的資料檔案大小Oracle
- oracle 表空間 資料檔案 筆記Oracle筆記
- 表空間遷移
- 遷移表空間
- oracle 資料檔案遷移Oracle
- oracle資料檔案遷移Oracle
- Oracle 不同平臺間表空間遷移Oracle
- PostgreSQL在不同的表空間移動資料檔案SQL
- 表空間online移動資料檔案
- Oracle資料庫表空間的資料檔案大小上限。Oracle資料庫
- oracle誤刪除表空間的資料檔案Oracle
- 利用PLSQL實現表空間的遷移(三)SQL
- 檢視Oracle資料庫表空間大小,是否需要增加表空間的資料檔案Oracle資料庫
- 磁碟空間不足,線上移動Oracle的資料檔案Oracle
- oracle 普通表空間資料檔案壞塊Oracle
- 誤刪oracle資料庫表空間檔案Oracle資料庫
- 【遷移】表空間transport
- RMAN遷移表空間
- Oracle_遷移資料檔案Oracle
- windows下oracle資料檔案的遷移和規範WindowsOracle
- Oracle臨時表空間檢視、新增臨時表空間資料檔案、修改預設臨時表空間 方法!Oracle
- 遷移表到新的表空間