天天看點

oracle11g rac轉換單機,【RMAN】oracle11g單機資料通過RMAN恢複至RAC

RMAN> run{

3> set newname for datafile

'/oracle/oradata/XYSOUL/datafile/o1_mf_system_9jhz3xx6_.dbf' to

'+DATA/oradata/xysoul/system01.dbf';

4> set newname for datafile

'/oracle/oradata/XYSOUL/datafile/o1_mf_sysaux_9jhz4vkj_.dbf' to

'+DATA/oradata/xysoul/sysaux01.dbf';

5> set newname for datafile

'/oracle/oradata/XYSOUL/datafile/o1_mf_undotbs1_9jhz5gsj_.dbf' to

'+DATA/oradata/xysoul/undotbs1_01.dbf';

6> set newname for datafile

'/oracle/oradata/XYSOUL/datafile/o1_mf_users_9jhz6fw2_.dbf' to

'+DATA/oradata/xysoul/user01.dbf';

7> set newname for datafile

'/oracle/oradata/XYSOUL/datafile/xysoul01.dbf' to

'+DATA/oradata/xysoul/xysoul01.dbf';

8> restore database;

9> switch datafile all;

10> }

executing command: SET until

clause

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

Starting restore at 2014-02-24

16:53:13

using target database control file

instead of recovery catalog

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=27 device

type=DISK

channel ORA_DISK_1: starting

datafile backup set restore

channel ORA_DISK_1: specifying

datafile(s) to restore from backup set

channel ORA_DISK_1: restoring

datafile 00001 to +DATA/oradata/xysoul/system01.dbf

channel ORA_DISK_1: restoring

datafile 00002 to +DATA/oradata/xysoul/sysaux01.dbf

channel ORA_DISK_1: restoring

datafile 00003 to +DATA/oradata/xysoul/undotbs1_01.dbf

channel ORA_DISK_1: restoring

datafile 00004 to +DATA/oradata/xysoul/user01.dbf

channel ORA_DISK_1: restoring

datafile 00005 to +DATA/oradata/xysoul/xysoul01.dbf

channel ORA_DISK_1: reading from

backup piece /oracle/backup/full_02p1e2cu_1_1.bak

channel ORA_DISK_1: piece

handle=/oracle/backup/full_02p1e2cu_1_1.bak tag=TAG20140224T121629

channel ORA_DISK_1: restored

backup piece 1

channel ORA_DISK_1: restore

complete, elapsed time: 00:02:45

Finished restore at 2014-02-24

16:55:59

datafile 1 switched to datafile

copy

input datafile copy RECID=6

STAMP=840387360 file name=+DATA/oradata/xysoul/system01.dbf

datafile 2 switched to datafile

copy

input datafile copy RECID=7

STAMP=840387360 file name=+DATA/oradata/xysoul/sysaux01.dbf

datafile 3 switched to datafile

copy

input datafile copy RECID=8

STAMP=840387360 file name=+DATA/oradata/xysoul/undotbs1_01.dbf

datafile 4 switched to datafile

copy

input datafile copy RECID=9

STAMP=840387360 file name=+DATA/oradata/xysoul/user01.dbf

datafile 5 switched to datafile

copy

input datafile copy RECID=10 STAMP=840387360 file

name=+DATA/oradata/xysoul/xysoul01.dbf