Another RMAN-06023 Error
Hi all !
I'm quite new to RMAN and facing some problem here. DB is 10gR2 and filesystem has crashed a couple of weeks ago.
I'm trying to restore from backupset, but facing some trouble on restore database :
RMAN> restore controlfile from '/swapcom/flash_recovery_area/SWAPCOM/backupset/backupset/2007_08_02/o1_mf_ncsn1_TAG20070802T172400_3c3yckh7_.bkp';
Starting restore at 30-AUG-07
using channel ORA_DISK_1
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
output filename=/export/swapcom/oracle/oradata/swapcom/swapcom/control01.ctl
output filename=/export/swapcom/oracle/oradata/swapcom/swapcom/control02.ctl
output filename=/export/swapcom/oracle/oradata/swapcom/swapcom/control03.ctl
Finished restore at 30-AUG-07
RMAN> restore spfile from '/swapcom/flash_recovery_area/SWAPCOM/backupset/backupset/2007_08_02/o1_mf_ncsn1_TAG20070802T172400_3c3yckh7_.bkp';
Starting restore at 30-AUG-07
using channel ORA_DISK_1
channel ORA_DISK_1: autobackup found: /swapcom/flash_recovery_area/SWAPCOM/backupset/backupset/2007_08_02/o1_mf_ncsn1_TAG20070802T172400_3c3yckh7_.bkp
channel ORA_DISK_1: SPFILE restore from autobackup complete
Finished restore at 30-AUG-07
RMAN> startup mount
database is already started
database mounted
released channel: ORA_DISK_1
RMAN> restore database;
Starting restore at 30-AUG-07
Starting implicit crosscheck backup at 30-AUG-07
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=157 devtype=DISK
Crosschecked 62 objects
Finished implicit crosscheck backup at 30-AUG-07
Starting implicit crosscheck copy at 30-AUG-07
using channel ORA_DISK_1
Crosschecked 8 objects
Finished implicit crosscheck copy at 30-AUG-07
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/30/2007 15:24:59
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
Any guidance would be highly appreciated. Thx in advance.
Forgot to mention I have of course been searching on this forum and tried many things but am getting kinda confused...
Similar Messages
-
Duplicate database command fails with RMAN-06023
Hello,
I am trying to test out the duplicate database command in RMAN and am running into some issues.
I did a backup of my test database, copied the backup files to a second server, and now I'm trying to run the duplicate command and I get RMAN-06023 errors for all of my datafiles.
I did crosschecks on my backupsets and they showed as available. They are in the same location on the new server, with the same permissions. There are no recent archived logs, as this is a very quiet environment.
My commands and output (edited slightly) were as follows:
RMAN> run {
2> allocate channel d1 device type disk;
3> allocate channel d2 device type disk;
4> backup database;
5> }
allocated channel: d1
channel d1: sid=32 devtype=DISK
allocated channel: d2
channel d2: sid=36 devtype=DISK
Starting backup at 03-JUL-07
channel d1: starting full datafile backupset
channel d1: specifying datafile(s) in backupset
channel d2: starting full datafile backupset
channel d2: specifying datafile(s) in backupset
input datafile fno=00012 name=/database/oradata/source/matrix_ts01.dbf
input datafile fno=00004 name=/database/oraindex/source/ind_ts01.dbf
input datafile fno=00006 name=/database/oradata/source/users_ts01.dbf
input datafile fno=00003 name=/database/oradata/source/drsys01.dbf
input datafile fno=00007 name=/database/oradata/source/ORACLEORADATATST2CWMLITE01.DBF
input datafile fno=00009 name=/database/oradata/source/ORACLEORADATATST2ODM01.DBF
input datafile fno=00005 name=/database/oradata/source/tools_ts01.dbf
channel d2: starting piece 1 at 03-JUL-07
including current SPFILE in backupset
including current controlfile in backupset
input datafile fno=00011 name=/database/oradata/source/ORACLEORADATADATA.DBF
input datafile fno=00001 name=/database/oradata/source/system_ts01.dbf
input datafile fno=00002 name=/database/oradata/source/undo_ts01.dbf
input datafile fno=00008 name=/database/oradata/source/ORACLEORADATATST2EXAMPLE01.DBF
input datafile fno=00010 name=/database/oradata/source/ORACLEORADATATST2XDB01.DBF
channel d1: starting piece 1 at 03-JUL-07
channel d2: finished piece 1 at 03-JUL-07
piece handle=/database/oracle/product/9.2.0/dbs/0ciltjgn_1_1 comment=NONE
channel d2: backup set complete, elapsed time: 00:08:17
channel d1: finished piece 1 at 03-JUL-07
piece handle=/database/oracle/product/9.2.0/dbs/0biltjgn_1_1 comment=NONE
channel d1: backup set complete, elapsed time: 00:09:22
Finished backup at 03-JUL-07
released channel: d1
released channel: d2
** at this point I copied the files listed above to same directory on destination server **
RMAN> connect auxiliary sys/[email protected]
connected to auxiliary database: destination (not mounted)
RMAN> run {
2> allocate auxiliary channel aux1 device type disk;
3> allocate auxiliary channel aux2 device type disk;
4> duplicate target database to destination nofilenamecheck;
5> }
llocated channel: aux1
channel aux1: sid=10 devtype=DISK
allocated channel: aux2
channel aux2: sid=13 devtype=DISK
Starting Duplicate Db at 03-JUL-07
printing stored script: Memory Script
set until scn 4873550;
set newname for datafile 1 to
"/database/oradata/destination/system_ts01.dbf";
set newname for datafile 2 to
"/database/oradata/destination/undo_ts01.dbf";
set newname for datafile 3 to
"/database/oradata/destination/drsys01.dbf";
set newname for datafile 4 to
"/database/oraindex/destination/ind_ts01.dbf";
set newname for datafile 5 to
"/database/oradata/destination/tools_ts01.dbf";
set newname for datafile 6 to
"/database/oradata/destination/users_ts01.dbf";
set newname for datafile 7 to
"/database/oradata/destination/ORACLEORADATATST2CWMLITE01.DBF";
set newname for datafile 8 to
"/database/oradata/destination/ORACLEORADATATST2EXAMPLE01.DBF";
set newname for datafile 9 to
"/database/oradata/destination/ORACLEORADATATST2ODM01.DBF";
set newname for datafile 10 to
"/database/oradata/destination/ORACLEORADATATST2XDB01.DBF";
set newname for datafile 11 to
"/database/oradata/destination/ORACLEORADATADATA.DBF";
set newname for datafile 12 to
"/database/oradata/destination/matrix_ts01.dbf";
restore
check readonly
clone database
executing script: Memory Script
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
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 03-JUL-07
released channel: aux1
released channel: aux2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 07/03/2007 14:35:13
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 12 found to restore
RMAN-06023: no backup or copy of datafile 11 found to restore
RMAN-06023: no backup or copy of datafile 10 found to restore
RMAN-06023: no backup or copy of datafile 9 found to restore
RMAN-06023: no backup or copy of datafile 8 found to restore
RMAN-06023: no backup or copy of datafile 7 found to restore
RMAN-06023: no backup or copy of datafile 6 found to restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
Thanks for any help,Hi,
Where is you RMAN catalog? I think you forgot to connect to it.
To duplicate a database check that folowing applies:
1-the auxiliary instance is mounted
2-the listener for the auxiliary db is up
3-the backup pieces that RMAN is going to restore ARE AVAILABLE on the
secondary/auxilary server with SAME NAME the have on the primary server (you can use NFS to avoid the copy of the pieces from primary to auxuliary box)
Remember to be conected to both: target and auxiliary db.
I have extracted the folowing lines from an RMAN script I used to create an standby database with the DUPLICATE command (the RMAN catalog was in the primary db controlfile, and the command was run on the primary server:
$ rman target / nocatalog auxiliary sys/pwd@standbycard log=crCARD.log
RMAN> duplicate target database for standby nofilenamecheck dorecover;
I hope this helps
Gustavo Restuccia -
RMAN-06023: no backup or copy of datafile 3 found to restore
Hello,
i have searched the whole forum, but i didnt get anything.
i have rman backupset (x64), and i am trying to restore it to another machine, (same characteristic) but i got the error below.
help please.... :(
RMAN> run
2> {
3> ALLOCATE CHANNEL C1 DEVICE TYPE DISK;
4> RESTORE DATABASE;
5> }
using target database control file instead of recovery catalog
allocated channel: C1
channel C1: SID=170 device type=DISK
Starting restore at 03-MAY-10
released channel: C1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 05/03/2010 11:16:00
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
RMAN>Hello,
i am using 10 g and my backup set, is that enough?
RMAN> list backup;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
79 Full 12.85G DISK 00:26:51 12-JUN-09
BP Key: 79 Status: EXPIRED Compressed: NO Tag: BACKUP_BISE1DB_000_06
1209042215
Piece Name: F:\RMAN_BACKUP\2NKHDHB1_1_1
List of Datafiles in backup set 79
File LV Type Ckp SCN Ckp Time Name
1 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\SYSTEM01.DBF
2 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\UNDOTBS01.DB
F
3 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\SYSAUX01.DBF
4 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\USERS01.DBF
5 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\EXAMPLE01.DB
F
7 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_DIME
NSIONS_01.DBF
8 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_FACT
S_01_REORG0_REORG0.DBF
9 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_INDE
XES_01.DBF
10 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_STAG
ING_01_REORG0.DBF
11 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_DIME
NSIONS_01.DBF
12 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_FACT
S_01_REORG0_REORG0.DBF
13 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_INDE
XES_01.DBF
15 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_STAG
ING_01_REORG0.DBF
16 Full 4254271191 12-JUN-09 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_STAG
ING_02_REORG0.DBF
BS Key Type LV Size Device Type Elapsed Time Completion Time
80 Full 7.17M DISK 00:00:04 12-JUN-09
BP Key: 80 Status: EXPIRED Compressed: NO Tag: BACKUP_BISE1DB_000_06
1209042215
Piece Name: F:\RMAN_BACKUP\2OKHDITH_1_1
SPFILE Included: Modification time: 12-JUN-09
Control File Included: Ckp SCN: 4254271191 Ckp time: 12-JUN-09
BS Key Type LV Size Device Type Elapsed Time Completion Time
81 Full 13.29G DISK 00:33:30 22-APR-10
BP Key: 81 Status: EXPIRED Compressed: NO Tag: BACKUP_BISE1DB_000_04
2210052403
Piece Name: F:\RMAN_BACKUP\2PLBPCV8_1_1
List of Datafiles in backup set 81
File LV Type Ckp SCN Ckp Time Name
1 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\SYSTEM01.DBF
2 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\UNDOTBS01.DB
F
3 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\SYSAUX01.DBF
4 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\USERS01.DBF
5 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\EXAMPLE01.DB
F
7 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_DIME
NSIONS_01.DBF
8 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_FACT
S_01_REORG0_REORG0.DBF
9 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_INDE
XES_01.DBF
10 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_STAG
ING_01_REORG0.DBF
11 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_DIME
NSIONS_01.DBF
12 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_FACT
S_01_REORG0_REORG0.DBF
13 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_INDE
XES_01.DBF
15 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_TST_STAG
ING_01_REORG0.DBF
16 Full 5783997201 22-APR-10 D:\ORACLE\BISE1\ORADATA\BISE1DB\DWH_PRD_STAG
ING_02_REORG0.DBF
RMAN> -
How to put all RMAN-files in one backupset?? (so preventing RMAN-06023)
((Please see also this thread: Re: Restoring Database causes ORA-19612
How can I manage that ALL files, ALL pieces, Controlfile, SPfile etc. etc. is available in ONE backup-file.
When I do "Backup Database" and I copy the created files to another location: restoring the database keeps asking for older backuppieces.
(Rman-error: RMAN-06023: no backup or copy of datafile 1 found to restore"
When i type on the target:
RMAN> list backup of datafile 1;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
12 Full 70.03G DISK 00:44:49 02-APR-12
BP Key: 12 Status: EXPIRED Compressed: NO Tag: TAG20120402T213111
Piece Name: G:\RMANBACKUP\0KN7EQSV_1_1
List of Datafiles in backup set 12
File LV Type Ckp SCN Ckp Time Name
1 Full 2945781693 02-APR-12 D:\ORACLEDATA\CISORA1\SYSTEM01.DBF
RMAN>
I see that the Missing file is in a backupset of 1 day ago. That's NOT what i want. I want EVERY DAY a FULL backupset.
please advise how to achive.
thanks
Edited by: AvRossem on 3-apr-2012 5:36AvRossem wrote:
((Please see also this thread: Re: Restoring Database causes ORA-19612
How can I manage that ALL files, ALL pieces, Controlfile, SPfile etc. etc. is available in ONE backup-file.
When I do "Backup Database" and I copy the created files to another location: restoring the database keeps asking for older backuppieces.
(Rman-error: RMAN-06023: no backup or copy of datafile 1 found to restore"
When i type on the target:
RMAN> list backup of datafile 1;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
12 Full 70.03G DISK 00:44:49 02-APR-12
BP Key: 12 Status: EXPIRED Compressed: NO Tag: TAG20120402T213111
Piece Name: G:\RMANBACKUP\0KN7EQSV_1_1
List of Datafiles in backup set 12
File LV Type Ckp SCN Ckp Time Name
1 Full 2945781693 02-APR-12 D:\ORACLEDATA\CISORA1\SYSTEM01.DBF
RMAN>
I see that the Missing file is in a backupset of 1 day ago. That's NOT what i want. I want EVERY DAY a FULL backupset.
please advise how to achive.
thanks
Hi,
How can I manage that ALL files, ALL pieces, Controlfile, SPfile etc. etc. is available in ONE backup-file.The short awnser is: You cannot do that.
RMAN divides some files types in different backupset.
This is a rule:
Datafiles use your own Backupset
Controlfile and SPFILE use your own Backupset
ARCHIVELOG use your own Backupset
For each BACKUPSET you can have many Backuppiece (i.e files on disk). As rule you always have relationship of one (Backupset) to one or more (Backuppiece).
So, respecting the rule above you can do following:
You can use the option FILESPERSET to keep all datafiles in same backuppiece. (In my case below 200 datafiles will be in same backuppiece)
{code}
RMAN> backup database tag='my_backup' filesperset 200 include current controlfile ;
Starting backup at 03-APR-12
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/dbrcv/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/dbrcv/sysaux01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/dbrcv/undotbs01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/dbrcv/users01.dbf
channel ORA_DISK_1: starting piece 1 at 03-APR-12
channel ORA_DISK_1: finished piece 1 at 03-APR-12
piece handle=/u01/app/oracle/fast_recovery_area/DBRCV/backupset/2012_04_03/o1_mf_nnndf_MY_BACKUP_7qppmnn7_.bkp tag=MY_BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 03-APR-12
channel ORA_DISK_1: finished piece 1 at 03-APR-12
piece handle=/u01/app/oracle/fast_recovery_area/DBRCV/backupset/2012_04_03/o1_mf_ncsnf_MY_BACKUP_7qppo4ls_.bkp tag=MY_BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 03-APR-12
RMAN> backup archivelog all filesperset 200 ;
Starting backup at 03-APR-12
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=16 RECID=1 STAMP=779332254
input archived log thread=1 sequence=17 RECID=2 STAMP=779374813
input archived log thread=1 sequence=18 RECID=3 STAMP=779393222
input archived log thread=1 sequence=19 RECID=4 STAMP=779436085
input archived log thread=1 sequence=20 RECID=5 STAMP=779472067
input archived log thread=1 sequence=21 RECID=6 STAMP=779511653
input archived log thread=1 sequence=22 RECID=7 STAMP=779580131
input archived log thread=1 sequence=23 RECID=8 STAMP=779648029
input archived log thread=1 sequence=24 RECID=9 STAMP=779649107
input archived log thread=1 sequence=25 RECID=10 STAMP=779649189
input archived log thread=1 sequence=26 RECID=11 STAMP=779649436
channel ORA_DISK_1: starting piece 1 at 03-APR-12
channel ORA_DISK_1: finished piece 1 at 03-APR-12
piece handle=/u01/app/oracle/fast_recovery_area/DBRCV/backupset/2012_04_03/o1_mf_annnn_TAG20120403T171718_7qppphtb_.bkp tag=TAG20120403T171718 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:35
Finished backup at 03-APR-12
{code}
Now I have 3 files:
{code}
RMAN > List BACKUSET;
BS Key Type LV Size Device Type Elapsed Time Completion Time
447 Full 314.02M DISK 00:00:37 03-APR-12
BP Key: 450 Status: AVAILABLE Compressed: NO Tag: MY_BACKUP
Piece Name: /u01/app/oracle/fast_recovery_area/DBRCV/backupset/2012_04_03/o1_mf_nnndf_MY_BACKUP_7qppmnn7_.bkp
List of Datafiles in backup set 447
File LV Type Ckp SCN Ckp Time Name
1 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/system01.dbf
2 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/sysaux01.dbf
3 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/undotbs01.dbf
4 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/users01.dbf
BS Key Type LV Size Device Type Elapsed Time Completion Time
448 Full 9.36M DISK 00:00:04 03-APR-12
BP Key: 451 Status: AVAILABLE Compressed: NO Tag: MY_BACKUP
Piece Name: /u01/app/oracle/fast_recovery_area/DBRCV/backupset/2012_04_03/o1_mf_ncsnf_MY_BACKUP_7qppo4ls_.bkp
SPFILE Included: Modification time: 03-APR-12
SPFILE db_unique_name: DBRCV
Control File Included: Ckp SCN: 444147 Ckp time: 03-APR-12
BS Key Size Device Type Elapsed Time Completion Time
492 300.38M DISK 00:00:26 03-APR-12
BP Key: 495 Status: AVAILABLE Compressed: NO Tag: TAG20120403T171718
Piece Name: /u01/app/oracle/fast_recovery_area/DBRCV/backupset/2012_04_03/o1_mf_annnn_TAG20120403T171718_7qppphtb_.bkp
List of Archived Logs in backup set 492
Thrd Seq Low SCN Low Time Next SCN Next Time
1 16 234488 30-MAR-12 261258 31-MAR-12
1 17 261258 31-MAR-12 286957 31-MAR-12
1 18 286957 31-MAR-12 303448 31-MAR-12
1 19 303448 31-MAR-12 329357 01-APR-12
1 20 329357 01-APR-12 351967 01-APR-12
1 21 351967 01-APR-12 375454 02-APR-12
1 22 375454 02-APR-12 409423 02-APR-12
1 23 409423 02-APR-12 443037 03-APR-12
1 24 443037 03-APR-12 443868 03-APR-12
1 25 443868 03-APR-12 443928 03-APR-12
1 26 443928 03-APR-12 444188 03-APR-12
{code}
See it:
BackupSet :
447 = Datafiles
448 = Controfile and SPFILE
492 = Archivelogs
Now I want create a copy of these backupset to offsite purpose:
{code}
RMAN> backup backupset 447,448,492 tag='my_backup_offsite' format '/u01/app/offsite/%U';
Starting backup at 03-APR-12
using channel ORA_DISK_1
channel ORA_DISK_1: input backup set: count=17, stamp=779649348, piece=1
channel ORA_DISK_1: starting piece 1 at 03-APR-12
channel ORA_DISK_1: backup piece /u01/app/offsite/0hn7h0a4_1_2
piece handle=/u01/app/offsite/0hn7h0a4_1_3 comment=NONE
channel ORA_DISK_1: finished piece 1 at 03-APR-12
channel ORA_DISK_1: backup piece complete, elapsed time: 00:00:25
channel ORA_DISK_1: input backup set: count=18, stamp=779649393, piece=1
channel ORA_DISK_1: starting piece 1 at 03-APR-12
channel ORA_DISK_1: backup piece /u01/app/offsite/0in7h0bh_1_2
piece handle=/u01/app/offsite/0in7h0bh_1_3 comment=NONE
channel ORA_DISK_1: finished piece 1 at 03-APR-12
channel ORA_DISK_1: backup piece complete, elapsed time: 00:00:03
channel ORA_DISK_1: input backup set: count=19, stamp=779649439, piece=1
channel ORA_DISK_1: starting piece 1 at 03-APR-12
channel ORA_DISK_1: backup piece /u01/app/offsite/0jn7h0cv_1_2
piece handle=/u01/app/offsite/0jn7h0cv_1_3 comment=NONE
channel ORA_DISK_1: finished piece 1 at 03-APR-12
channel ORA_DISK_1: backup piece complete, elapsed time: 00:00:45
Finished backup at 03-APR-12
RMAN> list backupset tag='my_backup_offsite';
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
447 Full 314.02M DISK 00:00:37 03-APR-12
BP Key: 624 Status: AVAILABLE Compressed: NO Tag: MY_BACKUP_OFFSITE
Piece Name: /u01/app/offsite/0hn7h0a4_1_3
List of Datafiles in backup set 447
File LV Type Ckp SCN Ckp Time Name
1 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/system01.dbf
2 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/sysaux01.dbf
3 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/undotbs01.dbf
4 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/users01.dbf
BS Key Type LV Size Device Type Elapsed Time Completion Time
448 Full 9.36M DISK 00:00:04 03-APR-12
BP Key: 625 Status: AVAILABLE Compressed: NO Tag: MY_BACKUP_OFFSITE
Piece Name: /u01/app/offsite/0in7h0bh_1_3
SPFILE Included: Modification time: 03-APR-12
SPFILE db_unique_name: DBRCV
Control File Included: Ckp SCN: 444147 Ckp time: 03-APR-12
BS Key Size Device Type Elapsed Time Completion Time
492 300.38M DISK 00:00:26 03-APR-12
BP Key: 626 Status: AVAILABLE Compressed: NO Tag: MY_BACKUP_OFFSITE
Piece Name: /u01/app/offsite/0jn7h0cv_1_3
List of Archived Logs in backup set 492
Thrd Seq Low SCN Low Time Next SCN Next Time
1 16 234488 30-MAR-12 261258 31-MAR-12
1 17 261258 31-MAR-12 286957 31-MAR-12
1 18 286957 31-MAR-12 303448 31-MAR-12
1 19 303448 31-MAR-12 329357 01-APR-12
1 20 329357 01-APR-12 351967 01-APR-12
1 21 351967 01-APR-12 375454 02-APR-12
1 22 375454 02-APR-12 409423 02-APR-12
1 23 409423 02-APR-12 443037 03-APR-12
1 24 443037 03-APR-12 443868 03-APR-12
1 25 443868 03-APR-12 443928 03-APR-12
1 26 443928 03-APR-12 444188 03-APR-12
RMAN>
{code}
When you perform restore you can use the tag='my_backup_offsite'.
This files belong a same policy of "configure retention policy ... " of RMAN. So, this files will be obsolete when it is out the policy.
Hope this helps,
Levi Pereira -
RMAN Restore Error - media recovery requesting unknown log: thread 1 seq 7
Im using RMAN to copy a database to another server. The new server is IDENTICAL to the old one. By identical I mean it has the same sever name, ip address, operating system, Oracle version and directory structure.
The new server already has the instance created, (same name as the old server instance, paths etc)
The backup files have been manually restored to the new server, same locations as they were on the old one. ( RMAN did an automatic controlfile backup and also the archivelogs on the old server ).
Ive restored the control file on the new server from the RMAN backup pieces.
Ive catalogued the RMAN backup pieces on the new server.
I know the last sequence available in the archivelogs backup by running on the new server :
list backup of archivelog all;
List of Backup Sets
===================
BS Key Size Device Type Elapsed Time Completion Time
5 14.43M DISK 00:00:03 11-MAY-11
BP Key: 9 Status: AVAILABLE Compressed: NO Tag: TAG20110511T163502
Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\BACKUPSET\
011_05_11\O1_MF_ANNNN_TAG20110511T163502_6WOC5833_.BKP
List of Archived Logs in backup set 5
Thrd Seq Low SCN Low Time Next SCN Next Time
1 2 550217 10-MAY-11 556559 11-MAY-11
1 3 556559 11-MAY-11 559776 11-MAY-11
1 4 559776 11-MAY-11 560093 11-MAY-11
1 5 560093 11-MAY-11 560794 11-MAY-11
BS Key Size Device Type Elapsed Time Completion Time
7 15.50K DISK 00:00:01 11-MAY-11
BP Key: 10 Status: AVAILABLE Compressed: NO Tag: TAG20110511T163653
Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\BACKUPSET\
011_05_11\O1_MF_ANNNN_TAG20110511T163653_6WOC8PMP_.BKP
List of Archived Logs in backup set 7
Thrd Seq Low SCN Low Time Next SCN Next Time
1 6 560794 11-MAY-11 560851 11-MAY-11
So far its all going swimmingly well.
Now I want to restore the datafiles and recover. So I ran :
RMAN run { restore database; recover database; alter database open resetlogs; }
This gave me the output below which goes great but I get a final error, I think the error is because its looking for an archive log thats not in the backup set, but it should be. However, I think SCN 560851 is for a log that hadnt been created yet on the old server when the backup was ran ?
How do I address resolving the error ? Its worth pointing out log, "archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\ARCHIVELOG
\2011_05_11\O1_MF_1_6_6WOK1X4W_.ARC recid=10 stamp=750881741" isnt on the old server either which is why its not in the backup set.
I can do a alter database open reset logs but Id prefer to know why its failing.
Any help would be much appreciated.
RMAN> run { restore database; recover database; alter database open resetlogs; }
Starting restore at 11-MAY-11
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\SAT\SYSTEM01.DBF
restoring datafile 00002 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\SAT\UNDOTBS01.DBF
restoring datafile 00003 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\SAT\SYSAUX01.DBF
restoring datafile 00004 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\SAT\USERS01.DBF
channel ORA_DISK_1: reading from backup piece C:\ORACLE\PRODUCT\10.2.0\FLASH_REC
OVERY_AREA\SAT\BACKUPSET\2011_05_11\O1_MF_NNNDF_TAG20110511T163507_6WOC5CM7_.BKP
channel ORA_DISK_1: restored backup piece 1
piece handle=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\BACKUPSET\2011_05_
11\O1_MF_NNNDF_TAG20110511T163507_6WOC5CM7_.BKP tag=TAG20110511T163507
channel ORA_DISK_1: restore complete, elapsed time: 00:00:55
Finished restore at 11-MAY-11
Starting recover at 11-MAY-11
using channel ORA_DISK_1
starting media recovery
channel ORA_DISK_1: starting archive log restore to default destination
channel ORA_DISK_1: restoring archive log
archive log thread=1 sequence=6
channel ORA_DISK_1: reading from backup piece C:\ORACLE\PRODUCT\10.2.0\FLASH_REC
OVERY_AREA\SAT\BACKUPSET\2011_05_11\O1_MF_ANNNN_TAG20110511T163653_6WOC8PMP_.BKP
channel ORA_DISK_1: restored backup piece 1
piece handle=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\BACKUPSET\2011_05_
11\O1_MF_ANNNN_TAG20110511T163653_6WOC8PMP_.BKP tag=TAG20110511T163653
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\ARCHIVELOG
\2011_05_11\O1_MF_1_6_6WOK1X4W_.ARC thread=1 sequence=6
channel default: deleting archive log(s)
archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\ARCHIVELOG
\2011_05_11\O1_MF_1_6_6WOK1X4W_.ARC recid=10 stamp=750881741
unable to find archive log
archive log thread=1 sequence=7
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 05/11/2011 18:15:42
RMAN-06054: media recovery requesting unknown log: thread 1 seq 7 lowscn 560851
RMAN>
Edited by: user12173666 on 11-May-2011 10:28You need to do incomplete recovery i.e. to ask RMAN to restore/recover to some specific point in time. This is usually done with some UNTIL clause or SET UNTIL statement. Example in your case:
SET UNTIL SEQUENCE 7;See http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta065.htm#RCMRF160. -
Restore spfile from rman backup ---- error.
Hi,
I am trying to execute recovery on new machine ...
I have done the following steps..
I have one database as ora10g2 as peroduction database on one machine as hosta
I have created a catalog on another machine cora10g2 (hostb)
I have taken a full backup from hosta as per following ...
the following command execute from hosta machine.
$ rman target sys/<passwd>@ora10g2 catalog rman/rman@cora10g2 ...
Backup completed ...
Now I am trying to restore this backup on hostb machine where i have already rman catlog database ..
I have done the following setting ...on host b
set oracle_sid=DUP
and execute following command ...
rman target / catalog rman/rman@cora10g2
RMAN> set dbid 2760732370
executing command: SET DBID
database name is "BAAN10G2" and DBID is 2760732370
RMAN>
RMAN>
RMAN> startup force nomount ;
startup failed: ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/oracle/dbs/baan10g2/dbs/initbaan10g2.ora'
starting Oracle instance without parameter file for retrival of spfile
Oracle instance started
Total System Global Area 159383552 bytes
Fixed Size 1977112 bytes
Variable Size 67114216 bytes
Database Buffers 83886080 bytes
Redo Buffers 6406144 bytes
RMAN>
RMAN>
RMAN>
RMAN> show all ;
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/rman/backup/control/cntrl_%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 4 BACKUP TYPE TO BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/baanora3/rman/ora10g2/bkup_db_%d_s%s_P%p_t%t' MAXPIECESIZE 1024;
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
RMAN>
RMAN>
RMAN> list backup of spfile ;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
2420 Full 7.33M DISK 00:00:01 14-JUN-07
BP Key: 2426 Status: AVAILABLE Compressed: NO Tag: TAG20070614T182935
Piece Name: /rman/backup/control/cntrl_c-2760732370-20070614-00
SPFILE Included: Modification time: 14-JUN-07
BS Key Type LV Size Device Type Elapsed Time Completion Time
2509 Full 7.33M DISK 00:00:01 15-JUN-07
BP Key: 2515 Status: AVAILABLE Compressed: NO Tag: TAG20070615T130416
Piece Name: /rman/backup/control/cntrl_c-2760732370-20070615-00
SPFILE Included: Modification time: 15-JUN-07
BS Key Type LV Size Device Type Elapsed Time Completion Time
2694 Full 7.33M DISK 00:00:01 15-JUN-07
BP Key: 2739 Status: AVAILABLE Compressed: NO Tag: TAG20070615T131703
Piece Name: /rman/backup/control/cntrl_c-2760732370-20070615-01
SPFILE Included: Modification time: 15-JUN-07
BS Key Type LV Size Device Type Elapsed Time Completion Time
2760 Full 80.00K DISK 00:00:01 15-JUN-07
BP Key: 2763 Status: AVAILABLE Compressed: NO Tag: TAG20070615T163437
Piece Name: /rman/spfile/spfile.ora
SPFILE Included: Modification time: 15-JUN-07
BS Key Type LV Size Device Type Elapsed Time Completion Time
2769 Full 7.33M DISK 00:00:02 15-JUN-07
BP Key: 2771 Status: AVAILABLE Compressed: NO Tag: TAG20070615T163441
Piece Name: /rman/backup/control/cntrl_c-2760732370-20070615-02
SPFILE Included: Modification time: 15-JUN-07
RMAN>
RMAN>
RMAN> restore spfile from autobackup ;
Starting restore at 19-JUN-07
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=36 devtype=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid=35 devtype=DISK
allocated channel: ORA_DISK_3
channel ORA_DISK_3: sid=34 devtype=DISK
allocated channel: ORA_DISK_4
channel ORA_DISK_4: sid=33 devtype=DISK
channel ORA_DISK_1: looking for autobackup on day: 20070619
channel ORA_DISK_1: looking for autobackup on day: 20070618
channel ORA_DISK_1: looking for autobackup on day: 20070617
channel ORA_DISK_1: looking for autobackup on day: 20070616
channel ORA_DISK_1: looking for autobackup on day: 20070615
channel ORA_DISK_1: looking for autobackup on day: 20070614
channel ORA_DISK_1: looking for autobackup on day: 20070613
channel ORA_DISK_1: no autobackup in 7 days found
channel ORA_DISK_2: looking for autobackup on day: 20070619
channel ORA_DISK_2: looking for autobackup on day: 20070618
channel ORA_DISK_2: looking for autobackup on day: 20070617
channel ORA_DISK_2: looking for autobackup on day: 20070616
channel ORA_DISK_2: looking for autobackup on day: 20070615
channel ORA_DISK_2: looking for autobackup on day: 20070614
channel ORA_DISK_2: looking for autobackup on day: 20070613
channel ORA_DISK_2: no autobackup in 7 days found
channel ORA_DISK_3: looking for autobackup on day: 20070619
channel ORA_DISK_3: looking for autobackup on day: 20070618
channel ORA_DISK_3: looking for autobackup on day: 20070617
channel ORA_DISK_3: looking for autobackup on day: 20070616
channel ORA_DISK_3: looking for autobackup on day: 20070615
channel ORA_DISK_3: looking for autobackup on day: 20070614
channel ORA_DISK_3: looking for autobackup on day: 20070613
channel ORA_DISK_3: no autobackup in 7 days found
channel ORA_DISK_4: looking for autobackup on day: 20070619
channel ORA_DISK_4: looking for autobackup on day: 20070618
channel ORA_DISK_4: looking for autobackup on day: 20070617
channel ORA_DISK_4: looking for autobackup on day: 20070616
channel ORA_DISK_4: looking for autobackup on day: 20070615
channel ORA_DISK_4: looking for autobackup on day: 20070614
channel ORA_DISK_4: looking for autobackup on day: 20070613
channel ORA_DISK_4: no autobackup in 7 days found
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 06/19/2007 18:00:13
RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
RMAN>
I am not able to restore spfile from rman backup ;;;Hi,
I would like to know few things
1. How are you setting the db_name ? you can set db_id at RMAN, how are you setting the db_name ?
2. Do you have any default init file at default location ? if yes, is the db_name parameter set correctly in that file ?
Since spfile is yet to be restored, you must set the db_name parameter correctly before you start spfile restore.This can be done with init file at default location which can even contain just one paremeter i.e db_name. -
Hello,
We use Commvault for our backup software. I can successfully clone one application's PROD instance on server1 to TEST on server2.
However, for another application, attempting the same process of cloning the app's PROD instance on server1 to TEST on server2, I'm getting RMAN errors.
The prod database is ISLP and test database is ISLT. I've set the parameters:
o alter system set db_file_name_convert = '/u02/oradata/ISLP', '/u02/oradata/ISLT'
o alter system set log_file_name_convert= '/u01/oradata/ISLP', '/data/oracle/ISLT'
Again the destination is on a second server.
The error message I receive is:
Oracle instance shut down
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 05/09/2013 12:48:55
RMAN-05501: aborting duplication of target database
RMAN-05001: auxiliary file name /u02/oradata/ISLP/redo_ISLP_2b.log conflicts with a file used by the target database
RMAN-05001: auxiliary file name /u02/oradata/ISLP/redo_ISLP_1b.log conflicts with a file used by the target database
RMAN>
Recovery Manager complete.
I don't understand why RMAN keeps trying to create new redo log files in a directory that is not specified by the log_file_name_convert parameter. I also don't understand why this exact same process works for cloning one applications database but not this application. I would appreciate any help. Thank you. Here is the RMAN script being executed by Commvault.
Rman Script:
[run {
set newname for datafile '/u02/oradata/ISLP/infosilem_ISLP_01.dbf' to '/u02/oradata/ISLT/infosilem_ISLP_01.dbf';
set newname for datafile '/u02/oradata/ISLP/sysaux_ISLP_01.dbf' to '/u02/oradata/ISLT/sysaux_ISLP_01.dbf';
set newname for datafile '/u02/oradata/ISLP/system_ISLP_01.dbf' to '/u02/oradata/ISLT/system_ISLP_01.dbf';
set newname for datafile '/u02/oradata/ISLP/tools_ISLP_01.dbf' to '/u02/oradata/ISLT/tools_ISLP_01.dbf';
set newname for datafile '/u02/oradata/ISLP/undo_ISLP_01.dbf' to '/u02/oradata/ISLT/undo_ISLP_01.dbf';
set newname for datafile '/u02/oradata/ISLP/users_ISLP_01.dbf' to '/u02/oradata/ISLT/users_ISLP_01.dbf';
allocate auxiliary channel ch1 type 'sbt_tape'
PARMS="SBT_LIBRARY=/opt/galaxy/Base64/libobk.so,BLKSIZE=262144,ENV=(CV_mmsApiVsn=2,CV_channelPar=ch1,ThreadCommandLine= RESTORE -jm 142 -a 2:0 -cl 137 -ins 150 -at 22 -j 700481 -jt 700481:3:1 -bal 0 -rcp 0 -ms 1 -p 2 -cn s-dbint -vm Instance001)"
TRACE 0;
set until time = "TO_DATE('05/08/2013 09:00:00','MM/DD/YYYY HH24:MI:SS')" ;
duplicate target database to 'ISLT'
exit;
]You haven't defined a log_file_name_convert for /u02/oradata/ISLP/
Possibly, the database has multiplexed redo log files, one member each in /u01/oradata/ISLP and one member each in /u02/oradata/ISLP.
Hemant K Chitale -
RMAN-06023: no backup or copy of datafile 5 found to restore ??
Hi,
Am on
Apps 12.0.4
DB 10gR2
Am trying to recover a datafile: got below error ?
Hex dump of (file 5, block 11701) in trace file /u01/app/oracle/admin/ora10g/udump/ora10g_ora_6482.trc
Corrupt block relative dba: 0x01402db5 (file 5, block 11701)
Bad check value found during backing up datafile
Data in bad block:
type: 0 format: 2 rdba: 0x01402db5
last change scn: 0×0000.00000000 seq: 0×1 flg: 0×05
spare1: 0×0 spare2: 0×0 spare3: 0×0
consistency value in tail: 0×00000001
check value in block header: 0x8bf5
computed block checksum: 0×2
Reread of blocknum=11701, file=/u01/app/oracle/oradata/ora10g/example01.dbf. found same corrupt data
RMAN> blockrecover datafile 5 block 11701;
Starting blockrecover at 23-AUG-11
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=139 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of blockrecover command at 10/23/2011 19:40:13
RMAN-06026: some targets not found – aborting restore
RMAN-06023: no backup or copy of datafile 5 found to restore
i dont have a backup of this datafile
Thanks
Edited by: NewAppsDBA on Oct 24, 2011 6:23 AMRMAN-03002: failure of blockrecover command at 10/23/2011 19:40:13
RMAN-06026: some targets not found – aborting restore
RMAN-06023: no backup or copy of datafile 5 found to restoreSearch MOS for those errors and go through the docs.
Thanks,
Hussein -
Problem about RMAN-06023: no backup or copy of datafile 5 found to restore
here is the error info when i duplicate database use rman
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 08/19/2011 09:33:39
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
and following my operate steps
==================
auxiliary instance configure
1, create password file
$ orapwd file=/opt/app/oracle/product/10.2.0/db_1/dbs/orapwslavedb password=Myss123456 entries=30
2,edit tnsname.ora on auxilary so i can connect primary db and auxiliary
$ vi tnsname.ora (tnsping test pass)
PRIDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.40.214)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = pridb)
3,create pfile for auxiliary instance
$ vi initslavedb.ora
*.DB_BLOCK_SIZE=8192
*.DB_NAME=slavedb
*.CONTROL_FILES='/opt/app/oracle/oradata/slavedb/control01.ctl','/opt/app/oracl
e/oradata/slavedb/control02.ctl','/opt/app/oracle/oradata/slavedb/control03.ctl'
*.DB_FILE_NAME_CONVERT='/opt/app/oracle/oradata/primaryd','/opt/app/oracle/oradata/slavedb'
*.LOG_FILE_NAME_CONVERT='/opt/app/oracle/oradata/primaryd','/opt/app/oracle/oradata/slavedb'
4,start auxiliary instance nomount and create spfile,then shutdown it,and startup to nomount status again
5,backup target database
RMAN> backup database;
6, create directory on slavedb,and transforer target backupset and archlog to salvedb
$ mkdir -p /opt/app/oracle/flash_recovery_area/PRIDB/backupset/2011_08_19
$ mkdir -p /opt/app/oracle/flash_recovery_area/PRIDB/archivelog/2011_08_19
7,run duplicate commandline on auxiliary
[oracle@localhost admin]$ rman target sys/Myss123456@pridb auxiliary /
Recovery Manager: Release 10.2.0.1.0 - Production on Fri Aug 19 10:46:05 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: PRIDB (DBID=969477968, not open)
connected to auxiliary database: SLAVEDB (not mounted)
RMAN> duplicate target database to 'slavedb'
2> nofilenamecheck;
Starting Duplicate Db at 19-AUG-2011 10:46:15
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=35 devtype=DISK
contents of Memory Script:
set until scn 490864;
set newname for datafile 1 to
"/opt/app/oracle/oradata/slavedb/system01.dbf";
set newname for datafile 2 to
"/opt/app/oracle/oradata/slavedb/undotbs01.dbf";
set newname for datafile 3 to
"/opt/app/oracle/oradata/slavedb/sysaux01.dbf";
set newname for datafile 4 to
"/opt/app/oracle/oradata/slavedb/users01.dbf";
set newname for datafile 5 to
"/opt/app/oracle/oradata/slavedb/example01.dbf";
restore
check readonly
clone database
executing Memory Script
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 19-AUG-2011 10:46:16
using channel ORA_AUX_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 08/19/2011 10:46:16
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
anyone can help?use format command with backup.
eg:-
backup as compressed backupset database format '/u01/db/backup/%d_%I_%s_%T';
if it is archivelog mode then
backup as compressed backupset database format '/u01/db/backup/%d_%I_%s_%T' plus archivelog format '/u01/db/backup/%d_%I_%s_%T';
then copy the backup to the auxiliary instance server.
then try again the duplicate command. -
Another RMAN duplicate problem - RAC database to single instance
Hi,
I have a problem with the RMAN duplicate procedure and was hoping someone can help.
I would like to create a duplicate of our production RAC database on a separate, stand-alone, database server on another site. This duplicate will be used for intensive querying by another business unit who I don't want to have access to our production database.
My procedure goes like this:
1. Create a disk (not ASM) based backup of the datafiles and any archived redo logs:
"run {
allocate channel d1 type disk;
backup format '/u02/stage/df_t%t_s%s_p%p' database plus archivelog delete input;
release channel d1;
2. Tar and scp these files to the same location on the stand-alone database server.
3. In the meantime, work has been happening on the production database and further archived redo logs have been generated. I don't really care about these logs for the purposes of the duplicate however, I just want to duplicate to the point of the recent backup. To do this, I run the following SQL to determine the sequence number that I should be duplicating up to:
"select max(sequence#), thread# from v$archived_log where deleted='YES' group by thread#;"
4. Duplicate the production database to the stand-alone database (all the SQL Net stuff is working).
"run {
set until sequence (value returned by above SQL statement);
duplicate target database to XXX;
However, my problem arises because I don't know how to handle the fact that there are two threads. I understand that each thread relates to one of the RAC instances, I just don't know which one to specify for the duplicate. We have a database service which the client application connects through, and that service runs on on or other of the instances. Should I just care about the logs from the instance where the service is currently running?
Am I even approaching this is the correct way?
I look forward to any help that people may be able to offer.
Regards,
PhilHi Werner,
Thanks again for your help, there is still something wrong though. "list backup of archivelog all;" shows:
BS Key Size Device Type Elapsed Time Completion Time
3784 202.34M DISK 00:00:08 28-OCT-09
BP Key: 3784 Status: AVAILABLE Compressed: NO Tag: TAG20091028T111718
Piece Name: /u02/stage/df_t701435838_s3820_p1
List of Archived Logs in backup set 3784
Thrd Seq Low SCN Low Time Next SCN Next Time
1 9746 569095777 28-OCT-09 569150229 28-OCT-09
1 9747 569150229 28-OCT-09 569187892 28-OCT-09
1 9748 569187892 28-OCT-09 569231956 28-OCT-09
1 9749 569231956 28-OCT-09 569259816 28-OCT-09
2 7931 569095774 28-OCT-09 569187902 28-OCT-09
2 7932 569187902 28-OCT-09 569259814 28-OCT-09
BS Key Size Device Type Elapsed Time Completion Time
3787 1.04M DISK 00:00:02 28-OCT-09
BP Key: 3787 Status: AVAILABLE Compressed: NO Tag: TAG20091028T112222
Piece Name: /u02/stage/df_t701436142_s3823_p1
List of Archived Logs in backup set 3787
Thrd Seq Low SCN Low Time Next SCN Next Time
1 9750 569259816 28-OCT-09 569261110 28-OCT-09
2 7933 569259814 28-OCT-09 569261108 28-OCT-09
You can see that the highest sequence number is 9750 of thread 1, and that the Low and Next SCNs are 569259816 and 56926111. However, when I look at the output of the RMAN duplicate command:
contents of Memory Script:
set until scn 569505448;
recover
clone database
delete archivelog
executing Memory Script
executing command: SET until clause
Starting recover at 28-OCT-09
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: sid=39 devtype=DISK
starting media recovery
Oracle Error:
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 4 needs more recovery to be consistent
ORA-01110: data file 4: '/u02/sca-standby/data/users.260.623418479'
RMAN-03002: failure of Duplicate Db command at 10/28/2009 16:12:55
RMAN-03015: error occurred in stored script Memory Script
RMAN-06053: unable to perform media recovery because of missing log
RMAN-06025: no backup of log thread 2 seq 7936 lowscn 569411744 found to restore
RMAN-06025: no backup of log thread 2 seq 7935 lowscn 569321987 found to restore
RMAN-06025: no backup of log thread 2 seq 7934 lowscn 569261108 found to restore
RMAN-06025: no backup of log thread 1 seq 9758 lowscn 569471890 found to restore
RMAN-06025: no backup of log thread 1 seq 9757 lowscn 569440076 found to restore
RMAN-06025: no backup of log thread 1 seq 9756 lowscn 569411439 found to restore
RMAN-06025: no backup of log thread 1 seq 9755 lowscn 569378529 found to restore
RMAN-06025: no backup of log thread 1 seq 9754 lowscn 569358970 found to restore
RMAN-06025: no backup of log thread 1 seq 9753 lowscn 569321882 found to restore
RMAN-06025: no backup of log thread 1 seq 9752 lowscn 569284238 found to restore
RMAN-06025: no backup of log thread 1 seq 9751 lowscn 569261110 found to restore
you can see that something is setting the recovery SCN to 569505448 which higher even then any of the archived logs mentioned above. If I select current_scn from the production database, this gives me 569528258 which is closer to the value which RMAN is expecting to recover to than any of the archived redo logs.
Can you think what might be causing RMAN to try to recover to this value? and why does it appear to be ignoring the SET UNTIL SEQUENCE command?
Cheers,
Phil -
Hello,
I need help to fix the following issue with RMAN Backup;
ORA-19506: failed to create sequential file, name="Datafile6_DatabasePRD", parms=""
ORA-27028: skgfqcre: sbtbackup returned error
ORA-19511: Error received from media manager layer, error text:
The backup file already exists: Datafile6_DatabasePRD (100:110:2)The database is 11.2.0.2 on HP-UX.
The backup script is;
BACKUP DATAFILECOPY FROM TAG 'INCREMENTAL' FORMAT 'Datafile%f_Database%d';Error logs:
channel t6_tape_backup: starting piece 1 at 13-JAN-13
RMAN-03009: failure of backup command on t1_tape_backup channel at 01/13/2013 11:12:51
ORA-19506: failed to create sequential file, name="Datafile6_DatabasePRD", parms=""
ORA-27028: skgfqcre: sbtbackup returned error
ORA-19511: Error received from media manager layer, error text:
The backup file already exists: Datafile6_DatabasePRD (100:110:2)
channel t1_tape_backup disabled, job failed on it will be run on another channel
RMAN-03009: failure of backup command on t2_tape_backup channel at 01/13/2013 11:12:51
ORA-19506: failed to create sequential file, name="Datafile4_DatabasePRD", parms=""
ORA-27028: skgfqcre: sbtbackup returned error
ORA-19511: Error received from media manager layer, error text:
The backup file already exists: Datafile4_DatabasePRD (100:110:2)
channel t2_tape_backup disabled, job failed on it will be run on another channel
RMAN-03009: failure of backup command on t3_tape_backup channel at 01/13/2013 11:12:51
ORA-19506: failed to create sequential file, name="Datafile1_DatabasePRD", parms=""
ORA-27028: skgfqcre: sbtbackup returned error
ORA-19511: Error received from media manager layer, error text:
The backup file already exists: Datafile1_DatabasePRD (100:110:2)
channel t3_tape_backup disabled, job failed on it will be run on another channel
RMAN-03009: failure of backup command on t5_tape_backup channel at 01/13/2013 11:12:51
ORA-19506: failed to create sequential file, name="Datafile2_DatabasePRD", parms=""
ORA-27028: skgfqcre: sbtbackup returned error
ORA-19511: Error received from media manager layer, error text:
The backup file already exists: Datafile2_DatabasePRD (100:110:2)
channel t5_tape_backup disabled, job failed on it will be run on another channel
RMAN-03009: failure of backup command on t6_tape_backup channel at 01/13/2013 11:12:51
ORA-19506: failed to create sequential file, name="Datafile5_DatabasePRD", parms=""
ORA-27028: skgfqcre: sbtbackup returned error
ORA-19511: Error received from media manager layer, error text:
The backup file already exists: Datafile5_DatabasePRD (100:110:2)
channel t6_tape_backup disabled, job failed on it will be run on another channel
channel t7_tape_backup: starting compressed full datafile backup set
channel t7_tape_backup: including datafile copy of datafile 00006 in backup set
input file name=+FLASH_DG/PRDstby/datafile/wpslog.3510.803139043
channel t7_tape_backup: starting piece 1 at 13-JAN-13
channel t8_tape_backup: starting compressed full datafile backup set
channel t8_tape_backup: including datafile copy of datafile 00004 in backup set
input file name=+FLASH_DG/PRDstby/datafile/wps.3509.803139043
channel t8_tape_backup: starting piece 1 at 13-JAN-13
RMAN-03009: failure of backup command on t4_tape_backup channel at 01/13/2013 11:12:51
ORA-19506: failed to create sequential file, name="Datafile3_DatabasePRD", parms=""
ORA-27028: skgfqcre: sbtbackup returned error
ORA-19511: Error received from media manager layer, error text:
The backup file already exists: Datafile3_DatabasePRD (100:110:2)
channel t4_tape_backup disabled, job failed on it will be run on another channel
RMAN-03009: failure of backup command on t7_tape_backup channel at 01/13/2013 11:12:52
ORA-19506: failed to create sequential file, name="Datafile6_DatabasePRD", parms=""
ORA-27028: skgfqcre: sbtbackup returned error
ORA-19511: Error received from media manager layer, error text:
The backup file already exists: Datafile6_DatabasePRD (100:110:2)
channel t7_tape_backup disabled, job failed on it will be run on another channel
released channel: t1_tape_backup
released channel: t2_tape_backup
released channel: t3_tape_backup
released channel: t4_tape_backup
released channel: t5_tape_backup
released channel: t6_tape_backup
released channel: t7_tape_backup
released channel: t8_tape_backup
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03015: error occurred in stored script weekly_backup
RMAN-03009: failure of backup command on t8_tape_backup channel at 01/13/2013 11:12:52
ORA-19506: failed to create sequential file, name="Datafile4_DatabasePRD", parms=""
ORA-27028: skgfqcre: sbtbackup returned error
ORA-19511: Error received from media manager layer, error text:
The backup file already exists: Datafile4_DatabasePRD (100:110:2)JohnWatson wrote:
Your format string needs to include a variable that will generate unique file names, such as %U.Thank you. You mean this will be the correct syntax?
BACKUP DATAFILECOPY FROM TAG 'INCREMENTAL' FORMAT 'Datafile%f_Database%d%U'; -
RMAN-06023: no backup or copy of datafile
Hi,
on 10g R2 on AIX, I want to recover my DB at the time of 26 of march. The backup files are available but I receive :
RMAN> Run {
2> SET UNTIL TIME "to_date('26-03-2011 00:00:00','DD-MM-YYYY HH24:MI:SS')";
3> allocate channel t1 type disk;
4> restore database;
5> recover database;
6> sql "alter database open";
7> }
8>
executing command: SET until clause
allocated channel: t1
channel t1: sid=155 devtype=DISK
Starting restore at 01-APR-11
released channel: t1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 04/01/2011 11:13:42
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 216 found to restore
RMAN-06023: no backup or copy of datafile 215 found to restore
RMAN-06023: no backup or copy of datafile 214 found to restoreWhy RMAN can't find them ?
How to verify ?
Thank for help.Hi,
Can you please make sure the restore mechanism you are following is correct or not?
Mechanics of Restore Operations
RMAN automates the procedure for restoring files. You do not need to go into the operating system, locate the backup that you want to use, and manually copy files into the appropriate directories. When you issue a RESTORE command, RMAN directs a server session to restore the correct backups to either:
* The default location, overwriting the files with the same name currently there
* A new location, which you can specify with the SET NEWNAME command
To restore a datafile, either mount the database or keep it open and take the datafile to be restored offline. When RMAN performs a restore, it creates the restored files as datafile image copies and records them in the repository.
refer the link for more information
http://download.oracle.com/docs/cd/B12037_01/server.101/b10734/rcmconc2.htm
Best regards,
Rafi.
http://rafioracledba.blogspot.com/ -
hi,
I am backup 10g rac with rman,but there is some error when backup:
input datafile fno=00006 name=+DG1/orcl/datafile/undotbs3.265.623622323
channel c3: starting piece 1 at 13-JUN-07
RMAN-03009: failure of backup command on c1 channel at 06/13/2007 08:40:50
ORA-19504: failed to create file "/oracle/rman/db_ORCL_20070613_0fik5ji0_1_1_L0"
ORA-27040: file create error, unable to create file
Linux Error: 2: No such file or directory
channel c1 disabled, job failed on it will be run on another channel
RMAN-03009: failure of backup command on c3 channel at 06/13/2007 08:40:51
ORA-19504: failed to create file "/oracle/rman/db_ORCL_20070613_0hik5jna_1_1_L0"
ORA-27040: file create error, unable to create file
Linux Error: 2: No such file or directory
channel c3 disabled, job failed on it will be run on another channel
released channel: c1
released channel: c2
released channel: c3
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of release command at 06/13/2007 08:49:22
RMAN-06012: channel: c1 not allocatedHi all I have the same problem. We have a 2 node rac with ASM. The archives goes to ASM. I would like to backup the archives from ASM to a filesystem. But i was given a filesystem that is only mounted on one node and it is not accessbile to the other node. When i run the following rman command i get the error on one of the channel that connect to node 2.
My question:
Can i use on channel that is connecting to node1 to backup all the archivelogs generated by node1 and node2 aswell since both the nodes have access to archive logs.
Please assist.
connect target /
connect catalog rmanrep/[email protected]
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/opt/oracle/archive/orcl/rman/cf_%d_%T_%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 2;
CONFIGURE CHANNEL 1 DEVICE TYPE DISK CONNECT 'SYS/oass@orcl1;
CONFIGURE CHANNEL 2 DEVICE TYPE DISK CONNECT 'SYS/oass@orcl2';
BACKUP CURRENT CONTROLFILE;
backup archivelog all format '/opt/oracle/archive/orcl/arch_bkup/%d_AL_%T_%u_s%s_p%p' delete input;
EXIT;
RMAN-03009: failure of backup command on ORA_DISK_2 channel at 03/17/2009 21:00:25
ORA-19504: failed to create file "/opt/oracle/archive/orcl/arch_bkup/SPTDEV_AL_20090317_2kka60j6_s84_p1"
ORA-27040: file create error, unable to create file
Linux-x86_64 Error: 2: No such file or directory
channel ORA_DISK_2 disabled, job failed on it will be run on another channel
Thanks
Kart -
RMAN-06023: no backup or copy of datafile n found to restore
Hi,
on 11g R2 , Win 2008, I try to duplicate by RMAN NOCATALOG.
In init.ora of auxiliary I have :
init.ora
db_file_name_convert=('m:\base\OLDDB\data','m:\base\NEWDB\data')
log_file_name_convert=('m:\base\OLDDB\log', 'm:\base\NEWDB\log') 1- when duplicating RMAN displays :
set newname for datafile 109 to
"M:\BASES\OLDDB\DATA\EOIUAPP.DBF";; but for me reverse is expected since M:\BASES\OLDDB\DATA\EOIUAPP.DBF is the ancient/old name.
2-RMAN displays :
channel ORA_AUX_DISK_1: restoring datafile 00041 to M:\BASES\OLDDB\DATA\EOIUAPP.DBF But again the datafile should be restored to 'm:\base\NEWDB\data'.
And also:
channel ORA_AUX_DISK_1: reading from backup piece \\server\RMAN$\BACKUP\OLDDB\RMAN\FULL\DF_OLDDB_20120909_196_1
channel ORA_AUX_DISK_1: ORA-19870: error while restoring backup piece \\server\RMAN$\BACKUP\OLDDB\RMAN\FULL\DF_OLDDB_20120909_196_1
ORA-19504: failed to create file "M:\BASES\OLDDB\DATA\PSIMAGE.DBF";
ORA-27040: file create error, unable to create file
OSD-04002: can not open file
O/S-Error: (OS 3) file path not found. Finally :
RMAN-06023: no backup or copy of datafile n found to restore For all files.
Thanks for help.Hello
setfilename has "BASES" but logfile convert has "base"
M:\BASESand
db_file_name_convert=('m:\base\OLDDB\data','m:\base\NEWDB\data') Best Regards
mseberg
Edited by: mseberg on Sep 20, 2012 7:41 AM -
RMAN-06023: no backup or copy of datafile 12 found to restore
Hi
I'm getting the above error when trying to create a duplicate database on the same server.
Steps
1) Create backup.
CONFIGURE CONTROLFILE AUTOBACKUP ON;
backup as copy
incremental level 0
spfile
database
include current controlfile;
2) Restore / Duplicate
Have database orcl2 which is on the same server as ORCL1. Performing a no catalog recovery.
I get the following error.
executing Memory Script
executing command: SET until clause
Starting restore at 14-MAR-11
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=555 device type=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 03/14/2011 16:02:24
RMAN-01005: not all datafiles have backups that can be recovered to scn 666967
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 12 found to restore
RMAN-06023: no backup or copy of datafile 11 found to restore
RMAN-06023: no backup or copy of datafile 10 found to restore
RMAN-06023: no backup or copy of datafile 9 found to restore
RMAN-06023: no backup or copy of datafile 8 found to restore
RMAN-06023: no backup or copy of datafile 7 found to restore
RMAN-06023: no backup or copy of datafile 6 found to restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
All the datafiles are not found. Not sure how this is possible as I just did the backup.
Command for Duplication :
DUPLICATE TARGET DATABASE TO ORCL2
DB_FILE_NAME_CONVERT '\ORCL1','\ORCL2'
SPFILE
PARAMETER_VALUE_CONVERT '\orcl1','\orcl2'
SET LOG_FILE_NAME_CONVERT '\orcl1','\orcl2'
Additional Information
RMAN> list backup
2> ;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
13 Full 16.77M DISK 00:00:01 14-MAR-11
BP Key: 13 Status: AVAILABLE Compressed: NO Tag: TAG20110314T155530
Piece Name: D:\ORACLE\FAST_RECOVERY_AREA\ORCL1\AUTOBACKUP\2011_03_14\O1_
MF_S_745775730_6QWWOM7G_.BKP
SPFILE Included: Modification time: 14-MAR-11
SPFILE db_unique_name: ORCL1
Control File Included: Ckp SCN: 731378 Ckp time: 14-MAR-11
RMAN>
Any help would be appreciated.
Thanks.ORADBA , thank you for your help.
Did as you suggested but still getting the same error
RMAN> DUPLICATE TARGET DATABASE TO ORCL2
2> DB_FILE_NAME_CONVERT '\ORCL1','\ORCL2'
3> SPFILE
4> PARAMETER_VALUE_CONVERT '\orcl1','\orcl2'
5> SET LOG_FILE_NAME_CONVERT '\orcl1','\orcl2'
6> until scn = 666967;
Starting Duplicate Db at 14-MAR-11
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=537 device type=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 03/14/2011 18:12:47
RMAN-06136: ORACLE error from auxiliary database: ORA-01565: error in identifyin
g file 'C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFILEORCL2.ORA'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
RMAN> exit
Recovery Manager complete.
C:\Documents and Settings\Administrator>rman target sys/mariorun@orcl1 nocatalog
Recovery Manager: Release 11.1.0.7.0 - Production on Mon Mar 14 18:13:20 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: ORCL1 (DBID=1129792691)
using target database control file instead of recovery catalog
RMAN> connect auxiliary sys/mariorun@orcl2
connected to auxiliary database: ORCL2 (not mounted)
RMAN>
RMAN> DUPLICATE TARGET DATABASE TO ORCL2
2> DB_FILE_NAME_CONVERT '\ORCL1','\ORCL2'
3> SPFILE
4> PARAMETER_VALUE_CONVERT '\orcl1','\orcl2'
5> SET LOG_FILE_NAME_CONVERT '\orcl1','\orcl2'
6> until scn = 666967;
Starting Duplicate Db at 14-MAR-11
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=97 device type=DISK
contents of Memory Script:
set until scn 666967;
restore clone spfile to 'C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFILEORCL2.ORA';
sql clone "alter system set spfile= ''C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFIL
EORCL2.ORA''";
executing Memory Script
executing command: SET until clause
Starting restore at 14-MAR-11
using channel ORA_AUX_DISK_1
WARNING: A restore time was estimated based on the supplied UNTIL SCN
channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: restoring SPFILE
output file name=C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFILEORCL2.ORA
channel ORA_AUX_DISK_1: reading from backup piece D:\ORACLE\FAST_RECOVERY_AREA\O
RCL1\AUTOBACKUP\2011_03_14\O1_MF_S_745775730_6QWWOM7G_.BKP
channel ORA_AUX_DISK_1: piece handle=D:\ORACLE\FAST_RECOVERY_AREA\ORCL1\AUTOBACK
UP\2011_03_14\O1_MF_S_745775730_6QWWOM7G_.BKP tag=TAG20110314T155530
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
Finished restore at 14-MAR-11
sql statement: alter system set spfile= ''C:\ORACLE\ORA11G\PRODUCT\DATABASE\SPFI
LEORCL2.ORA''
contents of Memory Script:
sql clone "alter system set db_name =
''ORCL2'' comment=
''duplicate'' scope=spfile";
sql clone "alter system set audit_file_dest =
''c:\oracle\ora11g\admin\orcl2\adump'' comment=
'''' scope=spfile";
sql clone "alter system set control_files =
''c:\oracle\ora11g\oradata\orcl2\control01.ctl'', ''c:\oracle\ora11g\oradata\or
cl2\control02.ctl'', ''c:\oracle\ora11g\oradata\orcl2\control03.ctl'' comment=
'''' scope=spfile";
sql clone "alter system set LOG_FILE_NAME_CONVERT =
''\orcl1'', ''\orcl2'' comment=
'''' scope=spfile";
shutdown clone immediate;
startup clone nomount ;
executing Memory Script
sql statement: alter system set db_name = ''ORCL2'' comment= ''duplicate'' sco
pe=spfile
sql statement: alter system set audit_file_dest = ''c:\oracle\ora11g\admin\orc
l2\adump'' comment= '''' scope=spfile
sql statement: alter system set control_files = ''c:\oracle\ora11g\oradata\orc
l2\control01.ctl'', ''c:\oracle\ora11g\oradata\orcl2\control02.ctl'', ''c:\oracl
e\ora11g\oradata\orcl2\control03.ctl'' comment= '''' scope=spfile
sql statement: alter system set LOG_FILE_NAME_CONVERT = ''\orcl1'', ''\orcl2''
comment= '''' scope=spfile
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 267825152 bytes
Fixed Size 1346712 bytes
Variable Size 100664168 bytes
Database Buffers 163577856 bytes
Redo Buffers 2236416 bytes
contents of Memory Script:
set until scn 666967;
set newname for datafile 1 to
"D:\ORACLE\ORADATA\ORCL2\SYSTEM01.DBF";
set newname for datafile 2 to
"D:\ORACLE\ORADATA\ORCL2\SYSAUX01.DBF";
set newname for datafile 3 to
"D:\ORACLE\ORADATA\ORCL2\UNDOTBS01.DBF";
set newname for datafile 4 to
"D:\ORACLE\ORADATA\ORCL2\IM_DATA_01.DAT";
set newname for datafile 5 to
"D:\ORACLE\ORADATA\ORCL2\IM_IDX_01.DAT";
set newname for datafile 6 to
"D:\ORACLE\ORADATA\ORCL2\IM_INV_DATA_01.DAT";
set newname for datafile 7 to
"D:\ORACLE\ORADATA\ORCL2\IM_INV_DATA_02.DAT";
set newname for datafile 8 to
"D:\ORACLE\ORADATA\ORCL2\IM_INV_IDX_01.DAT";
set newname for datafile 9 to
"D:\ORACLE\ORADATA\ORCL2\IM_INV_IDX_02.DAT";
set newname for datafile 10 to
"D:\ORACLE\ORADATA\ORCL2\IM_PROC_LOG_01.DAT";
set newname for datafile 11 to
"D:\ORACLE\ORADATA\ORCL2\IM_PROC_NOLOG_01.DAT";
set newname for datafile 12 to
"D:\ORACLE\ORADATA\ORCL2\USERS01.DBF";
restore
clone database
executing Memory Script
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
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 14-MAR-11
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=555 device type=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 03/14/2011 18:13:59
RMAN-01005: not all datafiles have backups that can be recovered to scn 666967
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 12 found to restore
RMAN-06023: no backup or copy of datafile 11 found to restore
RMAN-06023: no backup or copy of datafile 10 found to restore
RMAN-06023: no backup or copy of datafile 9 found to restore
RMAN-06023: no backup or copy of datafile 8 found to restore
RMAN-06023: no backup or copy of datafile 7 found to restore
RMAN-06023: no backup or copy of datafile 6 found to restore
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
Any suggestions are appreciated.
Maybe you are looking for
-
Registering a partner application with SSO SDK
Good day Since 2 days, I am struggling for the issue of registering a Servlet application as a partner application using the SSO Login Server. As per the suggested note id 182701.1 in metalink , I implement the following steps : - Step A : Create the
-
Help: consuming an external web service with user name token
Hello Together! I need to consume an external web service secured with WS-UserNameToken. The way, how did I do it: 1. I generated a web service consumer (proxy) in SE80 from the wsdl file 2. I created logical port for the consumer in SOAMANAGER 3. I
-
When rendered, still images appear in low quality
Hello everyone. I'm facing an interesting dilemna with Adobe Premiere Elements 8. It usually works fine for me, and with time I have learned to fix most of the details that usually bother unexperienced users such as me. What happens is that I'm impor
-
Conditional execution of syndication server
I have a requirement for conditional execution of syndication server. Is it possible to automate syndication server to run based on a predefined search and Map. I know we can do using syndication client but can we do the same using syndication serve
-
Hi All, I am trying to know the most used queries in our BI system by trying to find out how many times the query has been executed. we recently upgraded our BI system and I could find the number of times query has been executed by opening this repor