Oracle使用RMAN將普通資料檔案轉成ASM
1. 資料庫啟動至mount
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
2. RMAN備份資料檔案
RMAN> backup as copy database format '+data';
Starting backup at 27-MAR-18
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=6 device type=DISK
channel ORA_DISK_1: starting datafile copy
input datafile file number=00001 name=/u01/app/oracle/oradata/test/system01.dbf
3. switch datafile
RMAN> switch database to copy;
datafile 1 switched to datafile copy "+DATA/test/datafile/system.276.971869559"
datafile 2 switched to datafile copy "+DATA/test/datafile/sysaux.277.971869589"
datafile 3 switched to datafile copy "+DATA/test/datafile/undotbs1.278.971869615"
datafile 4 switched to datafile copy "+DATA/test/datafile/users.280.971869621"
4. alter database open
SQL> alter database open;
Database altered.
5. 驗證
SQL> select file_name from dba_data_files;
FILE_NAME
--------------------------------------------------------------------------------
+DATA/test/datafile/users.280.971869621
+DATA/test/datafile/undotbs1.278.971869615
+DATA/test/datafile/sysaux.277.971869589
+DATA/test/datafile/system.276.971869559
6. 刪除原資料檔案
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
2. RMAN備份資料檔案
RMAN> backup as copy database format '+data';
Starting backup at 27-MAR-18
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=6 device type=DISK
channel ORA_DISK_1: starting datafile copy
input datafile file number=00001 name=/u01/app/oracle/oradata/test/system01.dbf
3. switch datafile
RMAN> switch database to copy;
datafile 1 switched to datafile copy "+DATA/test/datafile/system.276.971869559"
datafile 2 switched to datafile copy "+DATA/test/datafile/sysaux.277.971869589"
datafile 3 switched to datafile copy "+DATA/test/datafile/undotbs1.278.971869615"
datafile 4 switched to datafile copy "+DATA/test/datafile/users.280.971869621"
4. alter database open
SQL> alter database open;
Database altered.
5. 驗證
SQL> select file_name from dba_data_files;
FILE_NAME
--------------------------------------------------------------------------------
+DATA/test/datafile/users.280.971869621
+DATA/test/datafile/undotbs1.278.971869615
+DATA/test/datafile/sysaux.277.971869589
+DATA/test/datafile/system.276.971869559
6. 刪除原資料檔案
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8520577/viewspace-2152252/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 利用rman將本地資料檔案遷移到asmASM
- 【原創】ASM下的資料檔案轉換為普通檔案ASM
- 使用rman在oracle ASM磁碟組之間移動資料檔案OracleASM
- 利用RMAN將資料庫從檔案系統遷移到ASM資料庫ASM
- 使用shell指令碼及asm cp或RMAN copy批量將資料檔案從ASM拷貝到檔案系統指令碼ASM
- 使用普通檔案建立ASM例項ASM
- 使用RMAN遷移檔案系統資料庫到ASM資料庫ASM
- 利用RMAN將非ASM檔案移動到ASM裡 - [ASM]ASM
- 使用rman將資料庫遷移到ASM例項資料庫ASM
- 使用RMAN執行oracle ASM資料遷移OracleASM
- 使用RMAN在ASM和檔案系統之間複製資料ASM
- 使用RMAN在ASM和檔案系統之間拷貝資料ASM
- 利用RMAN將資料庫從檔案系統遷移到ASM(單例項)資料庫ASM單例
- 【原創】使用普通檔案建立ASM例項ASM
- 使用rman copy將資料庫遷移到ASM例項資料庫ASM
- 【資料遷移】RMAN遷移資料庫到ASM(二)切換資料檔案到ASM資料庫ASM
- [ORACLE ASM] AMDU 恢復資料檔案OracleASM
- 【ASM】ASM資料檔案和OS檔案(FILESYSTEM)轉移方法總結ASM
- ASM儲存使用RMAN複製控制檔案ASM
- oracle 普通表空間資料檔案壞塊Oracle
- ubuntu下使用sratoolkit將sra檔案轉換成fastq檔案UbuntuAST
- 用rman從檔案系統遷移資料庫到asm資料庫ASM
- oracle 將表空間下的資料檔案從檔案系統遷移到ASM磁碟組OracleASM
- 將資料庫從ASM遷移到檔案系統資料庫ASM
- 將資料庫從檔案系統遷移到ASM資料庫ASM
- oracle之 RAC本地資料檔案遷移至ASMOracleASM
- 四、用rman從檔案系統遷移資料庫到asm資料庫ASM
- window下使用sratoolkit將sra檔案轉換成fastqAST
- RMAN 資料庫克隆檔案位置轉換方法資料庫
- 使用RAM將檔案系統遷移到ASMASM
- 用oracle amdu 抽取asm磁碟組的資料檔案OracleASM
- ORACLE 資料庫 ASM磁碟組上新增控制檔案Oracle資料庫ASM
- 如何將資料庫中的資料導成 excel 檔案資料庫Excel
- 利用RMAN在檔案系統與ASM之間遷移資料庫ASM資料庫
- 將asm上的資料庫移動到普通的filesystem上ASM資料庫
- ASM 中使用RMAN delete archivelog until time刪除歸檔檔案ASMdeleteHive
- 轉:Oracle刪除資料檔案Oracle
- 【RMAN】Oracle使用rman將11.2.0.4資料庫遷移至Oracle12c命令參考Oracle資料庫