oracle 10g r2 数据库的克隆--rman 的duplicate 输出
c:\oracle\product\10.2.0\client_1\bin>rman target sys/password@dgp
恢复管理器: release 10.2.0.1.0 - production on 星期二 1月 31 00:59:06 2012
copyright (c) 1982, 2005, oracle. all rights reserved.
连接到目标数据库: dg (dbid=1686618574)
rman> connect auxiliary sys/password@dgs
已连接到辅助数据库: dgc (未装载)
rman> duplicate target database to dgc;
启动 duplicate db 于 31-1月 -12
使用目标数据库控制文件替代恢复目录
分配的通道: ora_aux_disk_1
通道 ora_aux_disk_1: sid=155 devtype=disk
内存脚本的内容:
{
set until scn 526998;
set newname for datafile 1 to
/u01/app/oracle/oradata/dgc/system01.dbf;
set newname for datafile 2 to
/u01/app/oracle/oradata/dgc/undotbs01.dbf;
set newname for datafile 3 to
/u01/app/oracle/oradata/dgc/sysaux01.dbf;
set newname for datafile 4 to
/u01/app/oracle/oradata/dgc/users01.dbf;
restore
check readonly
clone database
;
}
正在执行内存脚本
正在执行命令: set until clause
正在执行命令: set newname
正在执行命令: set newname
正在执行命令: set newname
正在执行命令: set newname
启动 restore 于 31-1月 -12
使用通道 ora_aux_disk_1
通道 ora_aux_disk_1: 正在开始恢复数据文件备份集
通道 ora_aux_disk_1: 正在指定从备份集恢复的数据文件
正将数据文件00001恢复到/u01/app/oracle/oradata/dgc/system01.dbf
正将数据文件00002恢复到/u01/app/oracle/oradata/dgc/undotbs01.dbf
正将数据文件00003恢复到/u01/app/oracle/oradata/dgc/sysaux01.dbf
正将数据文件00004恢复到/u01/app/oracle/oradata/dgc/users01.dbf
通道 ora_aux_disk_1: 正在读取备份段 /home/oracle/all_dg_2.bak
通道 ora_aux_disk_1: 已恢复备份段 1
段句柄 = /home/oracle/all_dg_2.bak 标记 = tag20120125t110557
通道 ora_aux_disk_1: 恢复完成, 用时: 00:00:54
完成 restore 于 31-1月 -12
sql 语句: create controlfile reuse set database dgc resetlogs archivelog
maxlogfiles 16
maxlogmembers 3
maxdatafiles 100
maxinstances 8
maxloghistory 292
logfile
group 1 ( '/u01/app/oracle/oradata/dgc/redo01.log' ) size 50 m reuse,
group 2 ( '/u01/app/oracle/oradata/dgc/redo02.log' ) size 50 m reuse,
group 3 ( '/u01/app/oracle/oradata/dgc/redo03.log' ) size 50 m reuse
datafile
'/u01/app/oracle/oradata/dgc/system01.dbf'
character set zhs16gbk
内存脚本的内容:
{
switch clone datafile all;
}
正在执行内存脚本
,