rman set newname switch 用法
前提是已經有個backup tablespace tools 備份了
set newname 的作用是恢復到一個新的路徑
switch 做切換把新路徑檔案寫到控制檔案中
恢復到一個新的路徑
C:\Documents and Settings\Paul Yi>rman target / catalog paultest/paultest@dev
Recovery Manager: Release 9.2.0.4.0 - Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
connected to target database: PAUL (DBID=1605165889)
connected to recovery catalog database
RMAN> run{
2> allocate channel c1 type disk;
3> set newname for datafile 4 to 'd:\oracle\oradata\paul\tools01.dbf';
4> restore datafile 4;
5> switch datafile 4;
6> recover datafile 4;
7> sql 'alter tablespace tools online';
8> release channel c1;
9> }
starting full resync of recovery catalog
full resync complete
allocated channel: c1
channel c1: sid=13 devtype=DISK
executing command: SET NEWNAME
Starting restore at 20-DEC-07
channel c1: starting datafile backupset restore
channel c1: specifying datafile(s) to restore from backup set
restoring datafile 00004 to D:\ORACLE\ORADATA\PAUL\TOOLS01.DBF
channel c1: restored backup piece 1
piece handle=D:\BACKUP\21J42O1U_1_1 tag=TAG20071220T105806 params=NULL
channel c1: restore complete
Finished restore at 20-DEC-07
datafile 4 switched to datafile copy
input datafilecopy recid=17 stamp=641819216 filename=D:\ORACLE\ORADATA\PAUL\T
S01.DBF
starting full resync of recovery catalog
full resync complete
Starting recover at 20-DEC-07
starting media recovery
media recovery complete
Finished recover at 20-DEC-07
sql statement: alter tablespace tools online
starting full resync of recovery catalog
full resync complete
released channel: c1
RMAN>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-928/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RMAN SET NEWNAME
- RMAN : set newname for命令的一點研究
- 關於rman中set newname的探討
- oracle10g_rman_syntac testing_set newname_switch tempfile_datafile_all_tagOracle
- SET NEWNAME FOR
- [20160720]rman set newname for datafile
- oracle rman 異機還原測試--set newnameOracle
- 解決set newname 極慢的問題
- 【備份恢復】set newname切換日誌
- RMAN中SET命令的常見用法的小結 (ZT)
- SET NEWNAME 切換檔案並恢復影像副本
- java中switch的用法Java
- [20201103]set newname for datafile.txt
- Java 列舉 switch的用法Java
- STL:set用法總結
- 【C++ STL】Set用法C++
- Oracle set unused的用法Oracle
- rman備份恢復命令之switch
- STL中set用法詳解
- Python中set的用法Python
- Oracle set unused的用法.sqlOracleSQL
- shell中set指令的用法
- RMAN說,我能備份(16)--RMAN中的SET命令
- 【RMAN】RMAN-20020: DATABASE INCARNATION NOT SETDatabase
- C++ set的一些用法C++
- 整理jquery中的switch用法及注意問題jQuery
- rman恢復 使用switch映像副本進行恢復
- Rman 中的delete input的用法delete
- set autotrace的用法和含意及區別
- RMAN的crosscheck和obsolete的用法ROS
- 監控和優化RMAN之SET COMMAND ID優化
- c#物件導向中的get和set的用法C#物件
- Oracle OCP 1Z0-053 Q128(Rman Image Copy Switch)Oracle
- Swift學習筆記(二十八)——Switch-Case的高階用法Swift筆記
- Oracle OCP 1Z0 053 Q94(RMAN SET COMMAND ID)Oracle
- java中使用switch-case的用法及注意事項超全總結Java
- MyBatis系列(七):MyBatis動態Sql之choose,where,set標籤的用法MyBatisSQL
- Python 進階之路 (四) 先立Flag, 社群最全的Set用法集錦Python