利用rman遷移裸裝置資料檔案到檔案系統
主環境 aix 5.3+oracle 10.2.0.4
目標環境 aix 5.3+oracle 10.2.0.4
利用rman遷移裸裝置到檔案系統 主要有以下步驟:
主環境備份指令碼
run
{
allocate channel c1 type disk maxpiecesize 20G;
backup format '/orabak/15_set/full_%s_%p_%t' database;
backup current controlfile format '/orabak/15_set/control_%s_%p_%t';
release channel c1;
}
目標環境做restore
1.建立oracle使用者和存放oracle軟體目錄,設定好環境變數
2.安裝oracle軟體,並且升級到10.2.0.4
3.從主庫生成pfile指令碼放到目標環境中,修改相關pfile引數,比如相關記憶體引數、dump存放路徑,控制檔案存放路徑等
這裡控制檔案存放路徑為
/orabakold/crm_cont01 /orabakold/crm_cont02 /orabakold/crm_cont03
4.建立例項對應admin下的trace目錄,有以下這些:
ORACLE_BASE/admin/ORACLE_SID/bdump
ORACLE_BASE/admin/ORACLE_SID/cdump
ORACLE_BASE/admin/ORACLE_SID/adump
ORACLE_BASE/admin/ORACLE_SID/udump
5.用orapwd建立密碼檔案
6.用修改後的pfile sqlplus 啟動到nomount狀態
7.用rman登入,恢復控制檔案
RMAN> restore controlfile from '/oracle/control_186_1_720930534';
Starting restore at 06-JUN-10
using channel ORA_DISK_1
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
output filename=/orabakold/crm_cont01
output filename=/orabakold/crm_cont02
output filename=/orabakold/crm_cont03
Finished restore at 06-JUN-10
8.把資料庫啟動到mount狀態
RMAN> alter database mount;
database mounted
released channel: ORA_DISK_1
9.恢復資料檔案,指令碼有對資料檔案命名的操作,是從raw到檔案系統的
RMAN> run{
allocate channel t1 type disk;
allocate channel t2 type disk;
set newname for datafile '/dev/rcrm_data01' to '/DBUrgent/oradata/crm_data011.dbf';
set newname for datafile '/dev/rcrm_data07' to '/DBUrgent/oradata/crm_data017.dbf';
set newname for datafile '/dev/rcrm_data08' to '/DBUrgent/oradata/crm_data018.dbf';
set newname for datafile '/dev/rcrm_systemlv' to '/orabakold/oradata/crm_data01167.dbf';
set newname for datafile '/dev/rcrm_undo01lv' to '/orabakold/oradata/crm_data01168.dbf';
set newname for datafile '/dev/rcrm_undo02lv' to '/orabakold/oradata/crm_data01169.dbf';
restore database;
switch datafile all;
release channel t1;
release channel t2;
}
10.介質恢復
recover database;
11.用resetlogs方式開啟資料庫
alter database open resetlogs;
12.遷移臨時資料檔案到檔案系統,可以先刪除後新增
13.遷移redo到檔案系統,可以刪除後新增
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-664749/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 三、rman 資料庫遷移--從檔案系統到裸裝置資料庫
- 三、rman 資料庫遷移--從檔案系統到裸裝置 用dd複製控制檔案資料庫
- 利用rman copy的方法實現儲存上裸裝置資料檔案的遷移ITPUB
- 使用RMAN遷移檔案系統資料庫到ASM資料庫ASM
- oracle將控制檔案從裸裝置遷移到檔案系統Oracle
- 如何遷移ASM資料檔案到檔案系統ASM
- 用rman從檔案系統遷移資料庫到asm資料庫ASM
- 如何遷移裸裝置raw device資料檔案到另一個raw devicedev
- 四、用rman從檔案系統遷移資料庫到asm資料庫ASM
- 利用RMAN在檔案系統與ASM之間遷移資料庫ASM資料庫
- 用rman更改管理裸裝置檔案
- linux下表空間檔案系統移動到裸裝置測試Linux
- 利用RMAN將資料庫從檔案系統遷移到ASM資料庫ASM
- 一、rman 資料庫遷移--從檔案系統到檔案系統用預設的備份路徑資料庫
- raw 裸裝置資料檔案更改其他raw裸裝置位置
- 【資料遷移】RMAN遷移資料庫到ASM(二)切換資料檔案到ASM資料庫ASM
- HPUNIX下表空間檔案系統到裸裝置測試
- 在UNIX裸裝置和檔案系統之間移動ORACLEOracle
- 移動資料檔案從ASM到檔案系統ASM
- 遷移資料庫檔案到ASM資料庫ASM
- ORACLE中裸裝置資料檔案RESIZE/AUTOEXTEND ONOracle
- 利用rman將本地資料檔案遷移到asmASM
- 在UNIX裸裝置和檔案系統之間移動ORACLE (轉)Oracle
- SOLARS AIX LINUX 下移動資料庫檔案到裸裝置AILinux資料庫
- 更改資料庫裸裝置資料檔案的位置資料庫
- 資料檔案遷移
- 利用RMAN將資料庫從檔案系統遷移到ASM(單例項)資料庫ASM單例
- ASM檔案系統遷移ASM
- asm 檔案系統遷移ASM
- 用RMAN遷移檔案到ASM或從ASM遷出ASM
- FastDFS檔案系統遷移和資料恢復AST資料恢復
- 基於裸裝置檔案格式安裝oracle資料庫Oracle資料庫
- 移動資料檔案從檔案系統到ASM磁碟組中ASM
- 資料檔案的遷移
- oracle 資料檔案遷移Oracle
- oracle資料檔案遷移Oracle
- 給oracle新增裸裝置資料檔案(AIX單機)OracleAI
- 建立資料庫時用裸裝置的配置檔案資料庫