内存脚本的内容:
{
set newname for datafile 146 to
"/u01/app/oracle/oradata/CDB2/F09FFE3883E934FCE0537885A8C0DA67/datafile/o1_mf_system_jc1g8v8o_.dbf";
set newname for datafile 147 to
"/u01/app/oracle/oradata/CDB2/F09FFE3883E934FCE0537885A8C0DA67/datafile/o1_mf_sysaux_i01g8v8v_.dbf";
set newname for datafile 148 to
"/u01/app/oracle/oradata/CDB2/F09FFE3883E934FCE0537885A8C0DA67/datafile/o1_mf_undotbs1_c51g8v96_.dbf";
}
正在执行内存脚本
正在执行命令: SET NEWNAME
正在执行命令: SET NEWNAME
正在执行命令: SET NEWNAME
当前日志已存档
内存脚本的内容:
{
set archivelog destination to '/tmp';
restore clone force from service '192.168.133.120:1521/cdb1'
foreign archivelog from scn 6154073;
}
正在执行内存脚本
Recovery Manager: Release 19.0.0.0.0 - Production on Sun Dec 25 12:37:27 2022
Version 19.16.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
connected to target database: CDB1 (DBID=1093694741)
connected to auxiliary database: CDB3 (DBID=821688448)
RMAN> duplicate pluggable database pdb1 as pdb2 to cdb3 from active database;
Starting Duplicate PDB at 25-DEC-22
using channel ORA_AUX_DISK_1
current log archived
duplicating Online logs to Oracle Managed File (OMF) location
duplicating Datafiles to Oracle Managed File (OMF) location
Using previous duplicated file /home/oracle/CDB3/F09FFE3883E934FCE0537885A8C0DA67/datafile/o1_mf_system_up1g8uc1_.dbf for datafile 146 with checkpoint SCN of 6151331
Using previous duplicated file /home/oracle/CDB3/F09FFE3883E934FCE0537885A8C0DA67/datafile/o1_mf_sysaux_gq1g8uc4_.dbf for datafile 147 with checkpoint SCN of 6151333
Using previous duplicated file /home/oracle/CDB3/F09FFE3883E934FCE0537885A8C0DA67/datafile/o1_mf_undotbs1_7p1g8uc8_.dbf for datafile 148 with checkpoint SCN of 6151336
current log archived
contents of Memory Script:
{
set newname for datafile 146 to
"/home/oracle/CDB3/F09FFE3883E934FCE0537885A8C0DA67/datafile/o1_mf_system_up1g8uc1_.dbf";
set newname for datafile 147 to
"/home/oracle/CDB3/F09FFE3883E934FCE0537885A8C0DA67/datafile/o1_mf_sysaux_gq1g8uc4_.dbf";
set newname for datafile 148 to
"/home/oracle/CDB3/F09FFE3883E934FCE0537885A8C0DA67/datafile/o1_mf_undotbs1_7p1g8uc8_.dbf";
}
executing Memory Script
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
contents of Memory Script:
{
set archivelog destination to '/home/oracle';
restore clone force from service '192.168.133.120:1521/cdb1'
foreign archivelog from scn 6151331;
}
executing Memory Script
executing command: SET ARCHIVELOG DESTINATION
Starting restore at 25-DEC-22
using channel ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=111
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=112
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=113
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=114
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=115
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=116
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=117
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=118
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=119
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:02
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=120
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=121
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=122
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=123
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=124
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=125
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=126
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=127
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=128
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=129
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=130
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=131
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=132
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:02
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=133
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_AUX_DISK_1: starting archived log restore to user-specified destination
archived log destination=/home/oracle
channel ORA_AUX_DISK_1: using network backup set from service 192.168.133.120:1521/cdb1
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=134
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
Finished restore at 25-DEC-22
Performing import of metadata...
Finished Duplicate PDB at 25-DEC-22