Solution for RMAN-05541: no archived logs found in target database in Oracle
In the previous blog, we performed Steps to Clone Oracle Database from Windows to Oracle Linux Click here to read more. The only difference, in this case, we are taking a cold RMAN backup, and since this is a cold rman backup we don’t need archivelogs with the database backup. But duplication database rman command expect the archivelogs backup as well along with consistent rman backup. Due to this, we are getting an error “RMAN-05541: no archived logs found in target database” while executing a duplicate database. In this blog, we will see how we can fix this error.
Below are the high-level steps we will follow.
1. Take cold or consistent Rman backup
2. Transfer backups to Target Server
3. Start Target DB in nomount state
4. Initiate restore command in Target Server
5. Initiate restore command with NOREDO option in Target Server
Step 1. Take cold or consistent RMAN backup: Shut down your Source DB and startup in mount state to take consistent or cold rman backup.
[oracle@test-machine01 ~]$ sqlplus sys as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Wed Aug 17 17:28:52 2022
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> shut immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL>
SQL> startup mount
ORACLE instance started.
Total System Global Area 1.0456E+10 bytes
Fixed Size 2262368 bytes
Variable Size 2248149664 bytes
Database Buffers 8187281408 bytes
Redo Buffers 17948672 bytes
Database mounted.
SQL> exit
[oracle@test-machine01 ~]$
[oracle@test-machine01 rman_backup]$ rman target /
Recovery Manager: Release 11.2.0.4.0 - Production on Mon Aug 15 12:09:54 2022
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: UCAS (DBID=2026517590, not open)
RMAN>
RMAN>
run {
allocate channel ch1 device type disk;
allocate channel ch2 device type disk;
allocate channel ch3 device type disk;
backup
tag 'FULL BACKUP'
as compressed backupset database format '/u01/rman_backup/backup_db_%d_S_%s_P_%p_T_%t' force;
backup
tag 'CONTROL FILE BACKUP'
as compressed backupset current controlfile format '/u01/rman_backup/ctl_db_%d_S_%s_P_%p_T_%t';
release channel ch1;
release channel ch2;
release channel ch3;
}RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14>
allocated channel: ch1
channel ch1: SID=197 device type=DISK
allocated channel: ch2
channel ch2: SID=391 device type=DISK
allocated channel: ch3
channel ch3: SID=580 device type=DISK
Starting backup at 15-AUG-22
channel ch1: starting compressed full datafile backup set
channel ch1: specifying datafile(s) in backup set
input datafile file number=00005 name=/data01/oradata_2/UCAS_01.DBF
input datafile file number=00011 name=/data02/oradata_2/UCAS_DATA_02.DBF
input datafile file number=00012 name=/data02/oradata_2/UCAS_INDEX_02.DBF
input datafile file number=00008 name=/data02/oradata_2/GGS_DATA_01.DBF
channel ch1: starting piece 1 at 15-AUG-22
channel ch2: starting compressed full datafile backup set
channel ch2: specifying datafile(s) in backup set
input datafile file number=00003 name=/data01/oradata_2/UNDOTBS01.DBF
input datafile file number=00009 name=/data02/oradata_2/TELEX_01.DBF
input datafile file number=00006 name=/data01/oradata_2/UCAS_DATA_01.DBF
input datafile file number=00007 name=/data01/oradata_2/UCAS_INDEX_01.DBF
channel ch2: starting piece 1 at 15-AUG-22
channel ch3: starting compressed full datafile backup set
channel ch3: specifying datafile(s) in backup set
input datafile file number=00010 name=/data02/oradata_2/UCAS_02.DBF
input datafile file number=00002 name=/data01/oradata_2/SYSAUX01.DBF
input datafile file number=00001 name=/data01/oradata_2/SYSTEM01.DBF
input datafile file number=00004 name=/data01/oradata_2/USERS01.DBF
channel ch3: starting piece 1 at 15-AUG-22
channel ch2: finished piece 1 at 15-AUG-22
piece handle=/u01/rman_backup/backup_db_UCAS_S_755_P_1_T_1112789456 tag=FULL BACKUP comment=NONE
channel ch2: backup set complete, elapsed time: 00:03:25
channel ch3: finished piece 1 at 15-AUG-22
piece handle=/u01/rman_backup/backup_db_UCAS_S_756_P_1_T_1112789456 tag=FULL BACKUP comment=NONE
channel ch3: backup set complete, elapsed time: 00:04:25
channel ch1: finished piece 1 at 15-AUG-22
piece handle=/u01/rman_backup/backup_db_UCAS_S_754_P_1_T_1112789456 tag=FULL BACKUP comment=NONE
channel ch1: backup set complete, elapsed time: 00:06:35
Finished backup at 15-AUG-22
Starting backup at 15-AUG-22
channel ch1: starting compressed full datafile backup set
channel ch1: specifying datafile(s) in backup set
including current control file in backup set
channel ch1: starting piece 1 at 15-AUG-22
channel ch1: finished piece 1 at 15-AUG-22
piece handle=/u01/rman_backup/ctl_db_UCAS_S_757_P_1_T_1112789852 tag=CONTROL FILE BACKUP comment=NONE
channel ch1: backup set complete, elapsed time: 00:00:01
Finished backup at 15-AUG-22
Starting Control File and SPFILE Autobackup at 15-AUG-22
piece handle=/backup/fast_recovery_area/UCASDR2/autobackup/2022_08_15/o1_mf_s_1112711928_khn3sh39_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 15-AUG-22
released channel: ch1
released channel: ch2
released channel: ch3
RMAN>
RMAN> exit
Step 2. Transfer backups to Target Server: We are using pscp.exe utility to transfer backup files from Linux to Window Server.
C:\Users\jkhan\Downloads>
C:\Users\jkhan\Downloads>pscp.exe oracle@test-machine01:/u01/rman_backup/* .
oracle@meducas2db1's password:
ctl_db_UCAS_S_752_P_1_T_1 | 1232 kB | 1232.0 kB/s | ETA: 00:00:00 | 100%
backup_db_UCAS_S_754_P_1_ | 2764360 kB | 32143.7 kB/s | ETA: 00:00:00 | 100%
backup_db_UCAS_S_755_P_1_ | 1563800 kB | 31914.3 kB/s | ETA: 00:00:00 | 100%
backup_db_UCAS_S_756_P_1_ | 1757992 kB | 29796.5 kB/s | ETA: 00:00:00 | 100%
ctl_db_UCAS_S_757_P_1_T_1 | 1232 kB | 1232.0 kB/s | ETA: 00:00:00 | 100%
C:\Users\jkhan\Downloads>
C:\Users\jkhan\Downloads>
Step 3. Start Target DB in nomount state: Start DB in nomount state.
C:\Users\jkhan>sqlplus sys as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Mon Aug 15 16:00:51 2022
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
SQL> startup nomount
ORACLE instance started.
Total System Global Area 1.0255E+10 bytes
Fixed Size 2290120 bytes
Variable Size 1845497400 bytes
Database Buffers 8388608000 bytes
Redo Buffers 18817024 bytes
SQL>
Step 4. Initiate restore command in Target Server: Connect to the target database using rman auxiliary command and execute below duplicate database command. Please note we have kept our source rman backups in directory “F:\rman_backup\“. After some time rman command will fail with error “RMAN-05541: no archived logs found in target database“.
C:\Users\jkhan>
C:\Users\jkhan>
C:\Users\jkhan>rman auxiliary /
Recovery Manager: Release 11.2.0.4.0 - Production on Mon Aug 15 15:50:32 2022
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to auxiliary database: UCAS (not mounted)
RMAN> run{
2> allocate auxiliary channel prmy1 type disk;
3> allocate auxiliary channel prmy2 type disk;
4> allocate auxiliary channel prmy3 type disk;
5> DUPLICATE DATABASE TO UCAS BACKUP LOCATION 'F:\rman_backup\' NOFILENAMECHECK;
6> }
allocated channel: prmy1
channel prmy1: SID=201 device type=DISK
allocated channel: prmy2
channel prmy2: SID=209 device type=DISK
allocated channel: prmy3
channel prmy3: SID=217 device type=DISK
Starting Duplicate Db at 15-AUG-22
contents of Memory Script:
{
sql clone "create spfile from memory";
}
executing Memory Script
sql statement: create spfile from memory
contents of Memory Script:
{
shutdown clone immediate;
startup clone nomount;
}
executing Memory Script
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 10255212544 bytes
Fixed Size 2290120 bytes
Variable Size 1879051832 bytes
Database Buffers 8355053568 bytes
Redo Buffers 18817024 bytes
allocated channel: prmy1
channel prmy1: SID=193 device type=DISK
allocated channel: prmy2
channel prmy2: SID=201 device type=DISK
allocated channel: prmy3
channel prmy3: SID=209 device type=DISK
contents of Memory Script:
{
sql clone "alter system set db_name =
''UCAS'' comment=
''Modified by RMAN duplicate'' scope=spfile";
shutdown clone immediate;
startup clone force nomount
restore clone primary controlfile from 'F:\RMAN_BACKUP\ctl_db_UCAS_S_757_P_1_T_1112789852';
alter clone database mount;
}
executing Memory Script
sql statement: alter system set db_name = ''UCAS'' comment= ''Modified by RMAN duplicate'' scope=spfile
Oracle instance shut down
Oracle instance started
Total System Global Area 10255212544 bytes
Fixed Size 2290120 bytes
Variable Size 1879051832 bytes
Database Buffers 8355053568 bytes
Redo Buffers 18817024 bytes
allocated channel: prmy1
channel prmy1: SID=193 device type=DISK
allocated channel: prmy2
channel prmy2: SID=201 device type=DISK
allocated channel: prmy3
channel prmy3: SID=209 device type=DISK
Starting restore at 15-AUG-22
channel prmy2: skipped, AUTOBACKUP already found
channel prmy3: skipped, AUTOBACKUP already found
channel prmy1: restoring control file
channel prmy1: restore complete, elapsed time: 00:00:08
output file name=G:\UCAS\ORADATA_2\CONTROL01.CTL
output file name=H:\UCAS\ORADATA_2\CONTROL02.CTL
Finished restore at 15-AUG-22
database mounted
released channel: prmy1
released channel: prmy2
released channel: prmy3
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 08/15/2022 15:54:02
RMAN-05501: aborting duplication of target database
RMAN-05541: no archived logs found in target database
RMAN>
RMAN>
Step 5. Initiate restore command with NOREDO option in Target Server: Shut down your target DB again and start in nomount state and then execute same duplicate database command with noredo option. With this option, RMAN will not look for archivelog backups.
C:\Users\jkhan>
C:\Users\jkhan>rman auxiliary /
Recovery Manager: Release 11.2.0.4.0 - Production on Mon Aug 15 16:03:55 2022
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to auxiliary database: UCAS (not mounted)
RMAN> run{
2> allocate auxiliary channel prmy1 type disk;
3> allocate auxiliary channel prmy2 type disk;
4> allocate auxiliary channel prmy3 type disk;
5> DUPLICATE DATABASE TO UCAS BACKUP LOCATION 'F:\rman_backup\' NOFILENAMECHECK NOREDO;
6> }
allocated channel: prmy1
channel prmy1: SID=201 device type=DISK
allocated channel: prmy2
channel prmy2: SID=209 device type=DISK
allocated channel: prmy3
channel prmy3: SID=217 device type=DISK
Starting Duplicate Db at 15-AUG-22
contents of Memory Script:
{
sql clone "create spfile from memory";
}
executing Memory Script
sql statement: create spfile from memory
contents of Memory Script:
{
shutdown clone immediate;
startup clone nomount;
}
executing Memory Script
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 10255212544 bytes
Fixed Size 2290120 bytes
Variable Size 1879051832 bytes
Database Buffers 8355053568 bytes
Redo Buffers 18817024 bytes
allocated channel: prmy1
channel prmy1: SID=193 device type=DISK
allocated channel: prmy2
channel prmy2: SID=201 device type=DISK
allocated channel: prmy3
channel prmy3: SID=209 device type=DISK
contents of Memory Script:
{
sql clone "alter system set db_name =
''UCAS'' comment=
''Modified by RMAN duplicate'' scope=spfile";
shutdown clone immediate;
startup clone force nomount
restore clone primary controlfile from 'F:\RMAN_BACKUP\ctl_db_UCAS_S_757_P_1_T_1112789852';
alter clone database mount;
}
executing Memory Script
sql statement: alter system set db_name = ''UCAS'' comment= ''Modified by RMAN duplicate'' scope=spfile
Oracle instance shut down
Oracle instance started
Total System Global Area 10255212544 bytes
Fixed Size 2290120 bytes
Variable Size 1879051832 bytes
Database Buffers 8355053568 bytes
Redo Buffers 18817024 bytes
allocated channel: prmy1
channel prmy1: SID=193 device type=DISK
allocated channel: prmy2
channel prmy2: SID=201 device type=DISK
allocated channel: prmy3
channel prmy3: SID=209 device type=DISK
Starting restore at 15-AUG-22
channel prmy2: skipped, AUTOBACKUP already found
channel prmy3: skipped, AUTOBACKUP already found
channel prmy1: restoring control file
channel prmy1: restore complete, elapsed time: 00:00:08
output file name=G:\UCAS\ORADATA_2\CONTROL01.CTL
output file name=H:\UCAS\ORADATA_2\CONTROL02.CTL
Finished restore at 15-AUG-22
database mounted
contents of Memory Script:
{
set newname for datafile 1 to
"G:\UCAS\ORADATA_2\SYSTEM01.DBF";
set newname for datafile 2 to
"G:\UCAS\ORADATA_2\SYSAUX01.DBF";
set newname for datafile 3 to
"G:\UCAS\ORADATA_2\UNDOTBS01.DBF";
set newname for datafile 4 to
"G:\UCAS\ORADATA_2\USERS01.DBF";
set newname for datafile 5 to
"G:\UCAS\ORADATA_2\UCAS_01.DBF";
set newname for datafile 6 to
"G:\UCAS\ORADATA_2\UCAS_DATA_01.DBF";
set newname for datafile 7 to
"G:\UCAS\ORADATA_2\UCAS_INDEX_01.DBF";
set newname for datafile 8 to
"H:\UCAS\ORADATA_2\GGS_DATA_01.DBF";
set newname for datafile 9 to
"H:\UCAS\ORADATA_2\TELEX_01.DBF";
set newname for datafile 10 to
"H:\UCAS\ORADATA_2\UCAS_02.DBF";
set newname for datafile 11 to
"H:\UCAS\ORADATA_2\UCAS_DATA_02.DBF";
set newname for datafile 12 to
"H:\UCAS\ORADATA_2\UCAS_INDEX_02.DBF";
restore
clone database
;
}
executing Memory Script
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 15-AUG-22
channel prmy1: starting datafile backup set restore
channel prmy1: specifying datafile(s) to restore from backup set
channel prmy1: restoring datafile 00001 to G:\UCAS\ORADATA_2\SYSTEM01.DBF
channel prmy1: restoring datafile 00002 to G:\UCAS\ORADATA_2\SYSAUX01.DBF
channel prmy1: restoring datafile 00004 to G:\UCAS\ORADATA_2\USERS01.DBF
channel prmy1: restoring datafile 00010 to H:\UCAS\ORADATA_2\UCAS_02.DBF
channel prmy1: reading from backup piece F:\RMAN_BACKUP\BACKUP_DB_UCAS_S_756_P_1_T_1112789456
channel prmy2: starting datafile backup set restore
channel prmy2: specifying datafile(s) to restore from backup set
channel prmy2: restoring datafile 00003 to G:\UCAS\ORADATA_2\UNDOTBS01.DBF
channel prmy2: restoring datafile 00006 to G:\UCAS\ORADATA_2\UCAS_DATA_01.DBF
channel prmy2: restoring datafile 00007 to G:\UCAS\ORADATA_2\UCAS_INDEX_01.DBF
channel prmy2: restoring datafile 00009 to H:\UCAS\ORADATA_2\TELEX_01.DBF
channel prmy2: reading from backup piece F:\RMAN_BACKUP\BACKUP_DB_UCAS_S_755_P_1_T_1112789456
channel prmy3: starting datafile backup set restore
channel prmy3: specifying datafile(s) to restore from backup set
channel prmy3: restoring datafile 00005 to G:\UCAS\ORADATA_2\UCAS_01.DBF
channel prmy3: restoring datafile 00008 to H:\UCAS\ORADATA_2\GGS_DATA_01.DBF
channel prmy3: restoring datafile 00011 to H:\UCAS\ORADATA_2\UCAS_DATA_02.DBF
channel prmy3: restoring datafile 00012 to H:\UCAS\ORADATA_2\UCAS_INDEX_02.DBF
channel prmy3: reading from backup piece F:\RMAN_BACKUP\BACKUP_DB_UCAS_S_754_P_1_T_1112789456
channel prmy2: piece handle=F:\RMAN_BACKUP\BACKUP_DB_UCAS_S_755_P_1_T_1112789456 tag=FULL BACKUP
channel prmy2: restored backup piece 1
channel prmy2: restore complete, elapsed time: 00:04:35
channel prmy1: piece handle=F:\RMAN_BACKUP\BACKUP_DB_UCAS_S_756_P_1_T_1112789456 tag=FULL BACKUP
channel prmy1: restored backup piece 1
channel prmy1: restore complete, elapsed time: 00:05:25
channel prmy3: piece handle=F:\RMAN_BACKUP\BACKUP_DB_UCAS_S_754_P_1_T_1112789456 tag=FULL BACKUP
channel prmy3: restored backup piece 1
channel prmy3: restore complete, elapsed time: 00:07:36
Finished restore at 15-AUG-22
contents of Memory Script:
{
switch clone datafile all;
}
executing Memory Script
datafile 1 switched to datafile copy
input datafile copy RECID=13 STAMP=1112804046 file name=G:\UCAS\ORADATA_2\SYSTEM01.DBF
datafile 2 switched to datafile copy
input datafile copy RECID=14 STAMP=1112804046 file name=G:\UCAS\ORADATA_2\SYSAUX01.DBF
datafile 3 switched to datafile copy
input datafile copy RECID=15 STAMP=1112804046 file name=G:\UCAS\ORADATA_2\UNDOTBS01.DBF
datafile 4 switched to datafile copy
input datafile copy RECID=16 STAMP=1112804046 file name=G:\UCAS\ORADATA_2\USERS01.DBF
datafile 5 switched to datafile copy
input datafile copy RECID=17 STAMP=1112804046 file name=G:\UCAS\ORADATA_2\UCAS_01.DBF
datafile 6 switched to datafile copy
input datafile copy RECID=18 STAMP=1112804046 file name=G:\UCAS\ORADATA_2\UCAS_DATA_01.DBF
datafile 7 switched to datafile copy
input datafile copy RECID=19 STAMP=1112804046 file name=G:\UCAS\ORADATA_2\UCAS_INDEX_01.DBF
datafile 8 switched to datafile copy
input datafile copy RECID=20 STAMP=1112804046 file name=H:\UCAS\ORADATA_2\GGS_DATA_01.DBF
datafile 9 switched to datafile copy
input datafile copy RECID=21 STAMP=1112804046 file name=H:\UCAS\ORADATA_2\TELEX_01.DBF
datafile 10 switched to datafile copy
input datafile copy RECID=22 STAMP=1112804046 file name=H:\UCAS\ORADATA_2\UCAS_02.DBF
datafile 11 switched to datafile copy
input datafile copy RECID=23 STAMP=1112804046 file name=H:\UCAS\ORADATA_2\UCAS_DATA_02.DBF
datafile 12 switched to datafile copy
input datafile copy RECID=24 STAMP=1112804046 file name=H:\UCAS\ORADATA_2\UCAS_INDEX_02.DBF
contents of Memory Script:
{
recover
clone database
noredo
delete archivelog
;
}
executing Memory Script
Starting recover at 15-AUG-22
Finished recover at 15-AUG-22
Oracle instance started
Total System Global Area 10255212544 bytes
Fixed Size 2290120 bytes
Variable Size 1879051832 bytes
Database Buffers 8355053568 bytes
Redo Buffers 18817024 bytes
contents of Memory Script:
{
sql clone "alter system set db_name =
''UCAS'' comment=
''Reset to original value by RMAN'' scope=spfile";
shutdown clone immediate;
startup clone nomount;
}
executing Memory Script
sql statement: alter system set db_name = ''UCAS'' comment= ''Reset to original value by RMAN'' scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 10255212544 bytes
Fixed Size 2290120 bytes
Variable Size 1879051832 bytes
Database Buffers 8355053568 bytes
Redo Buffers 18817024 bytes
allocated channel: prmy1
channel prmy1: SID=193 device type=DISK
allocated channel: prmy2
channel prmy2: SID=201 device type=DISK
allocated channel: prmy3
channel prmy3: SID=209 device type=DISK
sql statement: CREATE CONTROLFILE REUSE SET DATABASE "UCAS" RESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 1168
LOGFILE
GROUP 4 ( 'G:\UCAS\ORADATA_1\REDO04.LOG' ) SIZE 500 M REUSE,
GROUP 5 ( 'G:\UCAS\ORADATA_1\REDO05.LOG' ) SIZE 500 M REUSE,
GROUP 6 ( 'H:\UCAS\ORADATA_1\REDO06.LOG' ) SIZE 500 M REUSE,
GROUP 7 ( 'H:\UCAS\ORADATA_1\REDO07.LOG' ) SIZE 500 M REUSE
DATAFILE
'G:\UCAS\ORADATA_2\SYSTEM01.DBF'
CHARACTER SET AL32UTF8
contents of Memory Script:
{
set newname for tempfile 1 to
"H:\UCAS\ORADATA_2\TEMP01.DBF";
switch clone tempfile all;
catalog clone datafilecopy "G:\UCAS\ORADATA_2\SYSAUX01.DBF",
"G:\UCAS\ORADATA_2\UNDOTBS01.DBF",
"G:\UCAS\ORADATA_2\USERS01.DBF",
"G:\UCAS\ORADATA_2\UCAS_01.DBF",
"G:\UCAS\ORADATA_2\UCAS_DATA_01.DBF",
"G:\UCAS\ORADATA_2\UCAS_INDEX_01.DBF",
"H:\UCAS\ORADATA_2\GGS_DATA_01.DBF",
"H:\UCAS\ORADATA_2\TELEX_01.DBF",
"H:\UCAS\ORADATA_2\UCAS_02.DBF",
"H:\UCAS\ORADATA_2\UCAS_DATA_02.DBF",
"H:\UCAS\ORADATA_2\UCAS_INDEX_02.DBF";
switch clone datafile all;
}
executing Memory Script
executing command: SET NEWNAME
renamed tempfile 1 to H:\UCAS\ORADATA_2\TEMP01.DBF in control file
cataloged datafile copy
datafile copy file name=G:\UCAS\ORADATA_2\SYSAUX01.DBF RECID=1 STAMP=1112804154
cataloged datafile copy
datafile copy file name=G:\UCAS\ORADATA_2\UNDOTBS01.DBF RECID=2 STAMP=1112804154
cataloged datafile copy
datafile copy file name=G:\UCAS\ORADATA_2\USERS01.DBF RECID=3 STAMP=1112804154
cataloged datafile copy
datafile copy file name=G:\UCAS\ORADATA_2\UCAS_01.DBF RECID=4 STAMP=1112804154
cataloged datafile copy
datafile copy file name=G:\UCAS\ORADATA_2\UCAS_DATA_01.DBF RECID=5 STAMP=1112804154
cataloged datafile copy
datafile copy file name=G:\UCAS\ORADATA_2\UCAS_INDEX_01.DBF RECID=6 STAMP=1112804154
cataloged datafile copy
datafile copy file name=H:\UCAS\ORADATA_2\GGS_DATA_01.DBF RECID=7 STAMP=1112804154
cataloged datafile copy
datafile copy file name=H:\UCAS\ORADATA_2\TELEX_01.DBF RECID=8 STAMP=1112804154
cataloged datafile copy
datafile copy file name=H:\UCAS\ORADATA_2\UCAS_02.DBF RECID=9 STAMP=1112804154
cataloged datafile copy
datafile copy file name=H:\UCAS\ORADATA_2\UCAS_DATA_02.DBF RECID=10 STAMP=1112804154
cataloged datafile copy
datafile copy file name=H:\UCAS\ORADATA_2\UCAS_INDEX_02.DBF RECID=11 STAMP=1112804154
datafile 2 switched to datafile copy
input datafile copy RECID=1 STAMP=1112804154 file name=G:\UCAS\ORADATA_2\SYSAUX01.DBF
datafile 3 switched to datafile copy
input datafile copy RECID=2 STAMP=1112804154 file name=G:\UCAS\ORADATA_2\UNDOTBS01.DBF
datafile 4 switched to datafile copy
input datafile copy RECID=3 STAMP=1112804154 file name=G:\UCAS\ORADATA_2\USERS01.DBF
datafile 5 switched to datafile copy
input datafile copy RECID=4 STAMP=1112804154 file name=G:\UCAS\ORADATA_2\UCAS_01.DBF
datafile 6 switched to datafile copy
input datafile copy RECID=5 STAMP=1112804154 file name=G:\UCAS\ORADATA_2\UCAS_DATA_01.DBF
datafile 7 switched to datafile copy
input datafile copy RECID=6 STAMP=1112804154 file name=G:\UCAS\ORADATA_2\UCAS_INDEX_01.DBF
datafile 8 switched to datafile copy
input datafile copy RECID=7 STAMP=1112804154 file name=H:\UCAS\ORADATA_2\GGS_DATA_01.DBF
datafile 9 switched to datafile copy
input datafile copy RECID=8 STAMP=1112804154 file name=H:\UCAS\ORADATA_2\TELEX_01.DBF
datafile 10 switched to datafile copy
input datafile copy RECID=9 STAMP=1112804154 file name=H:\UCAS\ORADATA_2\UCAS_02.DBF
datafile 11 switched to datafile copy
input datafile copy RECID=10 STAMP=1112804154 file name=H:\UCAS\ORADATA_2\UCAS_DATA_02.DBF
datafile 12 switched to datafile copy
input datafile copy RECID=11 STAMP=1112804154 file name=H:\UCAS\ORADATA_2\UCAS_INDEX_02.DBF
Reenabling controlfile options for auxiliary database
Executing: alter database add supplemental log data
contents of Memory Script:
{
Alter clone database open resetlogs;
}
executing Memory Script
database opened
Finished Duplicate Db at 15-AUG-22
released channel: prmy1
released channel: prmy2
released channel: prmy3
RMAN>
This document is just for learning purposes and always validate in the LAB environment first before applying in the LIVE environment.
Hope so you like this article!
Please share your valuable feedback/comments/subscribe and follow us below and don’t forget to click on the bell icon to get the most recent update. Click here to understand more about our pursuit.
Related Articles
- Solution for ORA-01516: nonexistent log file, data file, or temporary file in Oracle
- Solution for RMAN-05541: no archived logs found in target database in Oracle
- Steps to Clone Oracle Database from Windows to Oracle Linux
- Clone PDB to another CDB using RMAN Active Duplicate in Oracle on New Host
- RMAN Incremental Level 1 Differential and Cumulative Database Backup Scripts in Oracle
Thank you so much for the “NOREDO” hint! Saved me in the late night hour ready to go mad. 😉