rman copy asm datafile(rename asm datafile)
1. Using RMAN to copy this datafile to another folder or copy to a new name
RMAN> copy datafile FILE_NUMBER TO '/db/data/abc_new.dbf';
--copy datafile 4 to '/home/oracle/u01/app/oradata/test/USERS01.dbf';
2. Offline the datafile
SQL> ALTER DATABASE datafile FILE_NUMBER offline;
--ALTER DATABASE datafile 4 offline;
3. Using RMAN to rename the datafile
run{
allocate channel ch1 device TYPE disk;
SET NEWNAME FOR datafile 4 TO '/home/oracle/u01/app/oradata/test/USERS01.dbf';
switch datafile ALL;
}
4. Recovering
SQL> recover datafile FILE_NUMBER;
--recover datafile 4;
5. Online datafile
SQL> ALTER DATABASE datafile FILE_NUMBER online;
--ALTER DATABASE datafile 4 online;[@more@]
RMAN> copy datafile FILE_NUMBER TO '/db/data/abc_new.dbf';
--copy datafile 4 to '/home/oracle/u01/app/oradata/test/USERS01.dbf';
2. Offline the datafile
SQL> ALTER DATABASE datafile FILE_NUMBER offline;
--ALTER DATABASE datafile 4 offline;
3. Using RMAN to rename the datafile
run{
allocate channel ch1 device TYPE disk;
SET NEWNAME FOR datafile 4 TO '/home/oracle/u01/app/oradata/test/USERS01.dbf';
switch datafile ALL;
}
4. Recovering
SQL> recover datafile FILE_NUMBER;
--recover datafile 4;
5. Online datafile
SQL> ALTER DATABASE datafile FILE_NUMBER online;
--ALTER DATABASE datafile 4 online;[@more@]
SQL> alter tablespace users offline;
SQL> host copy D:ORACLEPRODUCT10.2.0ORADATATESTusers02.dbf c:
已複製 1 個檔案。
SQL> alter tablespace users rename datafile 'D:ORACLEPRODUCT10.2.0ORADATATE
STusers02.dbf' to 'c:users02.dbf';
表空間已更改。
SQL> alter tablespace users online;
表空間已更改。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9907339/viewspace-1051156/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- How to copy a datafile from ASM to a file system not using RMANASM
- Move datafile:From File System to ASMASM
- Move datafile:From ASM to File SystemASM
- Oracle 使用RMAN COPY 移動 Datafile 位置Oracle
- oracle asm diskgroup add datafile error problemOracleASMError
- RMAN-06100: no channel to restore a backup or copy of datafileREST
- 冷備_並行copy datafile並行
- RMAN-06023 no backup or copy of datafile 1 found to restoreREST
- DBV驗證ASM裡的datafile,出現錯誤ASM
- 將asm上datafile移動到其他的diskgroup或者普通filesystem上ASM
- rman datafile恢復(歸檔模式)模式
- 應對 "RMAN-06023: no backup or copy of datafile 1 found to restore"錯誤REST
- rman restore database(spfile,controlfile, datafile)RESTDatabase
- 使用rman copy將資料庫遷移到ASM例項資料庫ASM
- 【Datafile】Oracle單個datafile大小的限制Oracle
- Oracle datafileOracle
- Rename a Datafile in Primary Within in Physical Dataguard Configuration_733796.1
- 安裝Infrastructure時(建ocr)與建庫時(datafile)的ASM 冗餘的區別ASTStructASM
- [20160720]rman set newname for datafile
- 【RMAN】RMAN備份至ASMASM
- 利用RMAN將非ASM檔案移動到ASM裡 - [ASM]ASM
- v$datafile_header 查詢datafile 狀態Header
- ORA-17502, OSD-4002,15081 when creating a datafile on a ASM diskgroup-369898.1ASM
- RMAN Duplicate Database From RAC ASM To RAC ASM [ID 461479.1]DatabaseASM
- Duplicate Database from ASM to Non- ASM Database Using RMANDatabaseASM
- alter database create datafileDatabase
- alter database create datafile '' as ''Database
- how to remove datafile pathREM
- 使用shell指令碼及asm cp或RMAN copy批量將資料檔案從ASM拷貝到檔案系統指令碼ASM
- 資料檔案實驗操作datafile的create/offline/drop/rename等操作
- Oracle OCP 1Z0 053 Q564(Datafile Recovery with RMAN)Oracle
- alter database datafile offline drop 與 alter tablespace drop datafile 區別Database
- asm報錯一例-support 報錯rename failedASMAI
- Renaming a Datafile in the Primary DatabaseDatabase
- 收縮datafile for oracle -- 轉Oracle
- Rename or Move a datafile In Oracle 19c RAC-20220117Oracle
- 用RMAN遷移檔案到ASM或從ASM遷出ASM
- Oracle OCP 1Z0 053 Q505(RMAN DATAFILE BACKUP COPIES)Oracle