Difference in o/p in CROSSCHECK & RESTORE ARCHIVELOG VALIDATE
hi,
i m planning to restore and recovery from a backup(full hot Level 0) taken between '24.05.2012 11:41:00' AND '24.05.2012 12:03:07'; But when i run the crosscheck and restore archivelog validate there seems to be an extra archivelog backup piece reported in restore archivelog validate command.
Also there was 2 backups taken on same day but different time
LEVEL 0 ======> between '24.05.2012 11:41:00' AND '24.05.2012 12:03:07'
LEVEL 1 CUMMULATIVE =======> between '24.05.2012 12:29:46' AND '24.05.2012 12:35:59'
below the difference in o/p when i run the crosscheck and restore archivelog validate
CROSSCHECK BACKUP OF ARCHIVELOG ALL command :
RMAN> ALLOCATE CHANNEL FOR MAINTENANCE DEVICE TYPE sbt;
allocated channel: ORA_MAINT_SBT_TAPE_1
channel ORA_MAINT_SBT_TAPE_1: sid=1859 devtype=SBT_TAPE
channel ORA_MAINT_SBT_TAPE_1: Veritas NetBackup for Oracle - Release 7.0 (2010010419)
RMAN> sql "alter session set nls_date_format = ''dd.mm.yyyy hh24:mi:ss''";
sql statement: alter session set nls_date_format = ''dd.mm.yyyy hh24:mi:ss''
RMAN> CROSSCHECK BACKUP OF ARCHIVELOG ALL DEVICE TYPE sbt completed between '24.05.2012 11:41:00' AND '24.05.2012 12:03:07';
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=PRTUXDB_al_0dnbphae_1_1 RECID=10 STAMP=784123214
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=PRTUXDB_al_0cnbphae_1_1 RECID=11 STAMP=784123214
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=PRTUXDB_al_0fnbphae_1_1 RECID=12 STAMP=784123214
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=PRTUXDB_al_0enbphae_1_1 RECID=13 STAMP=784123214
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=PRTUXDB_al_0bnbphae_1_1 RECID=14 STAMP=784123214
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=PRTUXDB_al_0anbphae_1_1 RECID=15 STAMP=784123214
Crosschecked 6 objectsRestore archive log validate command :
[oratux@DMXCK5 ~]$ rman target / nocatalog
Recovery Manager: Release 11.2.0.3.0 - Production on Fri May 25 08:16:08 2012
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: PRTUXDB (DBID=329945109)
using target database control file instead of recovery catalog
RMAN> run {
allocate channel t1 type 'SBT_TAPE';
restore archivelog UNTIL TIME "TO_DATE('24.05.2012 12:03:07','dd.mm.yyyy hh24:mi:ss')" validate;
release channel t1;
2> 3> 4> 5>
allocated channel: t1
channel t1: SID=35 device type=SBT_TAPE
channel t1: Veritas NetBackup for Oracle - Release 7.0 (2010010419)
Starting restore at 25-MAY-12
channel t1: starting validation of archived log backup set
channel t1: reading from backup piece PRTUXDB_al_0dnbphae_1_1
channel t1: piece handle=PRTUXDB_al_0dnbphae_1_1 tag=PRIMARY_HOT_DB_BK_LEVEL0
channel t1: restored backup piece 1
channel t1: validation complete, elapsed time: 00:01:15
channel t1: starting validation of archived log backup set
channel t1: reading from backup piece PRTUXDB_al_0cnbphae_1_1
channel t1: piece handle=PRTUXDB_al_0cnbphae_1_1 tag=PRIMARY_HOT_DB_BK_LEVEL0
channel t1: restored backup piece 1
channel t1: validation complete, elapsed time: 00:01:15
channel t1: starting validation of archived log backup set
channel t1: reading from backup piece PRTUXDB_al_0fnbphae_1_1
channel t1: piece handle=PRTUXDB_al_0fnbphae_1_1 tag=PRIMARY_HOT_DB_BK_LEVEL0
channel t1: restored backup piece 1
channel t1: validation complete, elapsed time: 00:01:15
channel t1: starting validation of archived log backup set
channel t1: reading from backup piece PRTUXDB_al_0enbphae_1_1
channel t1: piece handle=PRTUXDB_al_0enbphae_1_1 tag=PRIMARY_HOT_DB_BK_LEVEL0
channel t1: restored backup piece 1
channel t1: validation complete, elapsed time: 00:01:15
channel t1: starting validation of archived log backup set
channel t1: reading from backup piece PRTUXDB_al_0bnbphae_1_1
channel t1: piece handle=PRTUXDB_al_0bnbphae_1_1 tag=PRIMARY_HOT_DB_BK_LEVEL0
channel t1: restored backup piece 1
channel t1: validation complete, elapsed time: 00:01:25
channel t1: starting validation of archived log backup set
channel t1: reading from backup piece PRTUXDB_al_0anbphae_1_1
channel t1: piece handle=PRTUXDB_al_0anbphae_1_1 tag=PRIMARY_HOT_DB_BK_LEVEL0
channel t1: restored backup piece 1
channel t1: validation complete, elapsed time: 00:01:15
channel t1: starting validation of archived log backup set
channel t1: reading from backup piece PRTUXDB_al_0qnbpj8c_1_1
channel t1: piece handle=PRTUXDB_al_0qnbpj8c_1_1 tag=HOT_DB_BK_LEVEL1
channel t1: restored backup piece 1
channel t1: validation complete, elapsed time: 00:01:05
Finished restore at 25-MAY-12
released channel: t1As you can see one extra archivelog backup piece is reported and that too from HOT_DB_BK_LEVEL1(LEVEL 1 CUMMULATIVE BACKUP) which was between '24.05.2012 12:29:46' AND '24.05.2012 12:35:59'.
I m afraid if i execute the real restore command it will apply this extra archivelog from LEVEL 1 CUMMULATIVE BACKUP
Yes that is true,but my question is when i run crosscheck i have all the required archivelogs availiable (6 archivelogs) but when i execute restore archivelog validate why it give (6+1) archivelogs why not only those 6 from LEVEL 0 hot backup
i have clearly specified UNTIL TIME "TO_DATE('24.05.2012 12:03:07','dd.mm.yyyy hh24:mi:ss')" in restore archivelog validate but still it also give me extra archive log backup piece from LEVEL 1 backup taken way after TO_DATE('24.05.2012 12:03:07','dd.mm.yyyy hh24:mi:ss').
Similar Messages
-
RESTORE ARCHIVELOG ALL VALIDATE; - returns log file names
Environment:
Oracle 11.2.0.3 EE on Solaris 10.5
RMAN using control file as repository.
My archive logs are going to /arch/<SID>. During a time of unforeseen high activity the directory was filling up and some of the files had to be move to a different mount point. I have since done several Level 0 incremental backups including (plus) archivelogs.
My RMAN archivelog deletion setting is: CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 1 TIMES TO DISK;
I have since begun to run more frequent archive log backups to keep the mount point cleaner.
Since I have several successful Level 0 backups including archivelogs, I manually deleted the archived logs on the secondary mount point.
I registered the logs in the secondary mount point using REGISTER ARCHIVELOG START IN '/xxxx';
I then ran a CROSSCHECK ARCHIVELOG ALL; to update the control file repository.
When I query the V$ARCHIVED_LOG view I see many entries for my deleted log files with a STATUS = 'X' (Expired) and a BACKUP_COUNT = 0.
I ran DELETE EXPIRED ARCHIVELOG ALL;
Now when I query the V$ARCHIVED_LOG view I see many entries with blank name column for the SEQUENCE# in my list and with a STATUS = 'D' (Deleted) and a BACKUP_COUNT = 0.
When I run a RESTORE ARCHIVELOG ALL VALIDATE; it returns a long list of my deleted files with:
RMAN-06025: no backup of archived log ... to restore
OK, enough background. My question is how do I get RMAN to not look for my deleted files since I have several good backups?
I realize my deletion policy says the files have to be backed up once to disk, which according to the V$ARCHIVED_LOG view they are not, but I was hoping since I ran the CROSSCHECK RMAN would not even be concerned with them.
Many thanks for any advice!!
-garyThanks for the help! Square brackets! Doh!
I changed the SQL just a bit. I have only one (1) thread and the primary database was running for several months before the standby was implemented so there are over 3500 sequence#'s in the V$ARCHIVED_LOG view for the Primary (DEST=1) that are not in the Standby (DEST=2).
Here's the SQL I ran, using the SQUARE brackets! :-)
SELECT SEQUENCE#
FROM V$ARCHIVED_LOG
WHERE DEST_ID=1
MINUS
SELECT SEQUENCE#
FROM V$ARCHIVED_LOG
WHERE DEST_ID=2It appears to me the Standby is accepting and applying the archived logs from the Primary based on looking at the most recent archived log sequence#'s.
I'm just trying to get rid of the entries in the RESTORE ARCHIVELOG VALIDATE; command output.
I don't have an RMAN Repository but am using the control files at the moment.
Any other suggestions are very welcomed!!
Thanks again!
-gary -
Rman errors on restore archivelog
Hi all,
I am running scripts to back up database every day , but after while 7 days it start to give me errors like:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 12/16/2003 04:06:04
RMAN-06026: some targets not found - aborting restore
RMAN-06025: no backup of log thread 1 seq 43 scn 3924903 found to restore ...........
that is script:
$ORACLE_HOME/bin/rman target / << EOF
configure retention policy to redundancy 3;
configure retention policy to recovery window of 3 days;
configure backup optimization on;
configure controlfile autobackup off;
configure default device type to Disk;
configure device type Disk parallelism 1;
configure datafile backup copies for device type Disk to 1;
configure channel device type Disk format '/backup/%d_datafile_%s_%p.bak';
configure maxsetsize to unlimited;
configure snapshot controlfile name to '/backup/prod_snapcf.f';
set controlfile autobackup format for device type Disk to '/backup/prod_controlfile_%F';
show all;
run {
allocate channel ch1 type Disk maxpiecesize = 1900M;
backup full database noexclude
include current controlfile
format '/backup/%d_datafile_%s_%p.bak'
tag 'prod_datafile_daily';
run {
allocate channel ch1 type Disk maxpiecesize = 1900M;
backup archivelog all
delete all input
format '/backup/%d_archivelog_%s_%p.bak'
tag 'prod_archivelog_daily';
run {
allocate channel ch1 type Disk maxpiecesize = 1900M;
backup format '/backup/%d_controlfile_%s.bak' current controlfile;
crosscheck backup;
restore controlfile to '/backup' validate;
restore tablespace SYSTEM validate;
restore archivelog all validate;
list backup of database;
report unrecoverable;
report schema;
report need backup;
report obsolete;
delete noprompt expired backup of database;
delete noprompt expired backup of controlfile;
quit
I can resetlogs and that error disapeire
Does anybody know that wrong with that script?
ThanksReally the error is very strange realizing that if functions well for about 6 days or something like that.
this is a notable line in the error.
some targets not found - aborting restore
I recommend you to check very well your targets path
to be restore. I think that is the cause of the failure.
Joel P�rez -
Restore archivelogs from backupset
STEP-1
RMAN> backup archivelog all;
Starting backup at 13-MAR-13
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=6 recid=61 stamp=809960486
channel ORA_DISK_1: starting piece 1 at 13-MAR-13
channel ORA_DISK_1: finished piece 1 at 13-MAR-13
piece handle=F:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2013_03_13\O1_MF_ANNNN_TAG20130313T130126_8N0BTHKN_.BKP tag=TAG20130313T130126 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
Finished backup at 13-MAR-13
STEP-2
RMAN> list archivelog all;
List of Archived Log Copies
Key Thrd Seq S Low Time Name
61 1 6 A 13-MAR-13 F:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_03_13\O1_MF_1_6_8N0BTFLF_.ARC
STEP -3
RMAN> delete archivelog all;
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=142 devtype=DISK
List of Archived Log Copies
Key Thrd Seq S Low Time Name
61 1 6 A 13-MAR-13 F:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_03_13\O1_MF_1_6_8N0BTFLF_.ARC
Do you really want to delete the above objects (enter YES or NO)? yes
RMAN-06207: WARNING: 1 objects could not be deleted for DISK channel(s) due
RMAN-06208: to mismatched status. Use CROSSCHECK command to fix status
RMAN-06210: List of Mismatched objects
RMAN-06211: ==========================
RMAN-06212: Object Type Filename/Handle
RMAN-06213: --------------- ---------------------------------------------------
RMAN-06214: Archivelog F:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_03_13\O1_MF_1_6_8N0BTFLF_.ARC
STEP-4
RMAN> crosscheck archivelog all;
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=142 devtype=DISK
validation failed for archived log
archive log filename=F:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_03_13\O1_MF_1_6_8N0BTFLF_.ARC recid=61 stamp=809960486
Crosschecked 1 objects
RMAN>
what i done after step 1 , is i delete (or moved ) archivelog from its original destination.
NOW, as i have a backup of archivelog in backupset , how do i restore archivelogs from there??
10.2.0
win 7 prof
Thanks
Edited by: O0O0O0O0O on Mar 13, 2013 1:10 PMSalman Qureshi wrote:
Hi,
what i done after step 1 , is i delete (or moved ) archivelog from its original destination.No, you took backup in sirts step. You deleted your archived redo logs in 3rd stepNO, After 1st step i deleted /moved archivelog , thats why @ 3rd step its giving error that Oracle Cant Find Archivelog to delete ( i guess it dsnt matter )
NOW, as i have a backup of archivelog in backupset , how do i restore archivelogs from there??Following should help you in restoration of archive redo logs. Simplest way is to use "restore archivelog all" to restore all archived redo logs from your backups which are available.
when i do this , its giving error
RMAN> restore archivelog all;
Starting restore at 13-MAR-13
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 03/13/2013 13:25:48
RMAN-06026: some targets not found - aborting restore
RMAN-06025: no backup of log thread 1 seq 5 lowscn 2065032 found to restore
RMAN-06025: no backup of log thread 1 seq 4 lowscn 2061724 found to restore
RMAN-06025: no backup of log thread 1 seq 3 lowscn 2038915 found to restore
RMAN-06025: no backup of log thread 1 seq 2 lowscn 2015492 found to restore
RMAN-06025: no backup of log thread 1 seq 1 lowscn 1990741 found to restore
RMAN-06025: no backup of log thread 1 seq 19 lowscn 1986423 found to restore
RMAN-06025: no backup of log thread 1 seq 18 lowscn 1959113 found to restore
RMAN-06025: no backup of log thread 1 seq 17 lowscn 736604 found to restore
RMAN-06025: no backup of log thread 1 seq 16 lowscn 694859 found to restore
RMAN-06025: no backup of log thread 1 seq 15 lowscn 654358 found to restore
RMAN-06025: no backup of log thread 1 seq 14 lowscn 631019 found to restore
RMAN-06025: no backup of log thread 1 seq 13 lowscn 630977 found to restore
RMAN-06025: no backup of log thread 1 seq 12 lowscn 628120 found to restore
RMAN-06025: no backup of log thread 1 seq 11 lowscn 627821 found to restore
RMAN-06025: no backup of log thread 1 seq 10 lowscn 624694 found to restore
RMAN-06025: no backup of log thread 1 seq 9 lowscn 624184 found to restore
RMAN-06025: no backup of log thread 1 seq 8 lowscn 620379 found to restore
RMAN-06025: no backup of log thread 1 seq 7 lowscn 619730 found to restore
RMAN-06025: no backup of log thread 1 seq 6 lowscn 619728 found to restore
RMAN-06025: no backup of log thread 1 seq 5 lowscn 619725 found to restore
RMAN-06025: no backup of log thread 1 seq 4 lowscn 619722 found to restore
RMAN-06025: no backup of log thread 1 seq 3 lowscn 617154 found to restore
RMAN-06025: no backup of log thread 1 seq 2 lowscn 608546 found to restore
RMAN>
Edited by: O0O0O0O0O on Mar 13, 2013 1:28 PM -
Hi all,
I'm working on a 10.2.0 version. I need to restore my last archivelog backup.
Exist any way to restore all available archives?
Regards,
dbajugHi Belman,
crosscheck archivelog all ;
Double job : the restore will do that implicitly.
Quick scenario (10.2.0.5 , Suse 11 x86) :
RMAN> restore archivelog from time 'sysdate - 1/24';
Démarrage de restore dans 20/09/10
utilisation du canal ORA_DISK_1
journal d'archivage, thread 1 séquence 76 déjà sur disque en tant que fichier /u02/save/P102/archivelog/P102_1_76_729703138.arc
restauration non exécutée; fichiers de consultation seule, hors ligne ou déjà restaurés
Fin de restore dans 20/09/10
oracle@dellsp:/tmp> mv /u02/save/P102/archivelog/P102_1_76_729703138.arc /u02/save/P102/archivelog/P102_1_76_729703138.arc.old
RMAN> restore archivelog from time 'sysdate - 1/24';
Démarrage de restore dans 20/09/10
utilisation du canal ORA_DISK_1
canal ORA_DISK_1 : démarrage de la restauration du journal d'archivage vers la destination par défaut
canal ORA_DISK_1 : restauration du journal d'archivage
journal d'archivage thread=1 séquence=76
canal ORA_DISK_1 : lecture de l'élément de sauvegarde /u02/save/P102/backupset/2010_09_20/o1_mf_annnn_TAG20100920T214401_69hgd2h2_.bkp
canal ORA_DISK_1 : restauration de l'élément de sauvegarde 1
élément descripteur=/u02/save/P102/backupset/2010_09_20/o1_mf_annnn_TAG20100920T214401_69hgd2h2_.bkp balise=TAG20100920T214401
canal ORA_DISK_1 : restauration terminée, temps écoulé : 00:00:01
Fin de restore dans 20/09/10
oracle@dellsp:/tmp> ls /u02/save/P102/archivelog/P102_1_76_729703138.arc
/u02/save/P102/archivelog/P102_1_76_729703138.arcBest regards
Phil -
How to restore archivelogs on RAC ?
Hello !
I need to restore archivelogs for 2 hours: to_date('04/08/2010 23:00:00','dd/mm/yyyy HH24:mi:ss')" until time "to_date('05/08/2010 01:00:00','dd/mm/yyyy hh24:mi:ss'). I have this files on tape:
RMAN> list backup of archivelog from time "to_date('04/08/2010 23:00:00','dd/mm/yyyy HH24:mi:ss')" until time "to_date('05/08/2010 01:00:00','dd/mm/yyyy hh24:mi:ss')";
List of Backup Sets
===================
BS Key Size
1359667 19.00M
List of Archived Logs in backup set 1359667
Thrd Seq Low SCN Low Time Next SCN Next Time
3 24686 68236434950 04/08/2010 22:54:47 68243156430 04/08/2010 23:46:12
Backup Set Copy #1 of backup set 1359667
Device Type Elapsed Time Completion Time Compressed Tag
SBT_TAPE 00:03:50 04/08/2010 23:51:06 NO TAG20100804T234715
List of Backup Pieces for backup set 1359667 Copy #1
BP Key Pc# Status Media Piece Name
1359674 1 AVAILABLE NN0876L3 /ORACLE:SVPRD1B:REDO:153543_726191236_1/
Backup Set Copy #2 of backup set 1359667
Device Type Elapsed Time Completion Time Compressed Tag
SBT_TAPE 00:03:50 04/08/2010 23:51:06 NO TAG20100804T234715
List of Backup Pieces for backup set 1359667 Copy #2
BP Key Pc# Status Media Piece Name
1359675 1 AVAILABLE NN0261L3 /ORACLE:SVPRD1B:REDO:153543_726191236_2/
BS Key Size
1359668 19.96G
List of Archived Logs in backup set 1359668
Thrd Seq Low SCN Low Time Next SCN Next Time
1 33810 68236430016 04/08/2010 22:54:44 68240656570 04/08/2010 23:25:13
Backup Set Copy #1 of backup set 1359668
Device Type Elapsed Time Completion Time Compressed Tag
SBT_TAPE 00:22:24 05/08/2010 00:09:39 NO TAG20100804T234715
List of Backup Pieces for backup set 1359668 Copy #1
BP Key Pc# Status Media Piece Name
1359676 1 AVAILABLE NN0876L3 /ORACLE:SVPRD1B:REDO:153541_726191236_1/
Backup Set Copy #2 of backup set 1359668
Device Type Elapsed Time Completion Time Compressed Tag
SBT_TAPE 00:22:24 05/08/2010 00:09:39 NO TAG20100804T234715
List of Backup Pieces for backup set 1359668 Copy #2
BP Key Pc# Status Media Piece Name
1359677 1 AVAILABLE NN0261L3 /ORACLE:SVPRD1B:REDO:153541_726191236_2/
BS Key Size
1359669 2.56G
List of Archived Logs in backup set 1359669
Thrd Seq Low SCN Low Time Next SCN Next Time
1 33811 68240656570 04/08/2010 23:25:13 68243156997 04/08/2010 23:46:13
Backup Set Copy #1 of backup set 1359669
Device Type Elapsed Time Completion Time Compressed Tag
SBT_TAPE 00:02:38 05/08/2010 00:12:20 NO TAG20100804T234715
List of Backup Pieces for backup set 1359669 Copy #1
BP Key Pc# Status Media Piece Name
1359678 1 AVAILABLE NN0876L3 /ORACLE:SVPRD1B:REDO:153544_726192582_1/
Backup Set Copy #2 of backup set 1359669
Device Type Elapsed Time Completion Time Compressed Tag
SBT_TAPE 00:02:38 05/08/2010 00:12:20 NO TAG20100804T234715
List of Backup Pieces for backup set 1359669 Copy #2
BP Key Pc# Status Media Piece Name
1359679 1 AVAILABLE NN0261L3 /ORACLE:SVPRD1B:REDO:153544_726192582_2/
BS Key Size
1359670 19.95G
List of Archived Logs in backup set 1359670
Thrd Seq Low SCN Low Time Next SCN Next Time
2 33578 68236472935 04/08/2010 22:55:03 68240747010 04/08/2010 23:26:01
Backup Set Copy #1 of backup set 1359670
Device Type Elapsed Time Completion Time Compressed Tag
SBT_TAPE 00:26:38 05/08/2010 00:13:54 NO TAG20100804T234715
List of Backup Pieces for backup set 1359670 Copy #1
BP Key Pc# Status Media Piece Name
1359680 1 AVAILABLE NN0876L3 /ORACLE:SVPRD1B:REDO:153542_726191236_1/
Backup Set Copy #2 of backup set 1359670
Device Type Elapsed Time Completion Time Compressed Tag
SBT_TAPE 00:26:38 05/08/2010 00:13:54 NO TAG20100804T234715
List of Backup Pieces for backup set 1359670 Copy #2
BP Key Pc# Status Media Piece Name
1359681 1 AVAILABLE NN0261L3 /ORACLE:SVPRD1B:REDO:153542_726191236_2/
BS Key Size
1359671 2.48G
List of Archived Logs in backup set 1359671
Thrd Seq Low SCN Low Time Next SCN Next Time
2 33579 68240747010 04/08/2010 23:26:01 68243160092 04/08/2010 23:46:14
Backup Set Copy #1 of backup set 1359671
Device Type Elapsed Time Completion Time Compressed Tag
SBT_TAPE 00:02:46 05/08/2010 00:16:48 NO TAG20100804T234715
List of Backup Pieces for backup set 1359671 Copy #1
BP Key Pc# Status Media Piece Name
1359682 1 AVAILABLE NN0876L3 /ORACLE:SVPRD1B:REDO:153545_726192843_1/
Backup Set Copy #2 of backup set 1359671
Device Type Elapsed Time Completion Time Compressed Tag
SBT_TAPE 00:02:46 05/08/2010 00:16:48 NO TAG20100804T234715
List of Backup Pieces for backup set 1359671 Copy #2
BP Key Pc# Status Media Piece Name
1359683 1 AVAILABLE NN0261L3 /ORACLE:SVPRD1B:REDO:153545_726192843_2/
BS Key Size
1359733 17.25M
List of Archived Logs in backup set 1359733
Thrd Seq Low SCN Low Time Next SCN Next Time
3 24687 68243156430 04/08/2010 23:46:12 68260260710 05/08/2010 01:41:22
Backup Set Copy #1 of backup set 1359733
Device Type Elapsed Time Completion Time Compressed Tag
SBT_TAPE 00:02:48 05/08/2010 01:51:01 NO TAG20100805T014812
List of Backup Pieces for backup set 1359733 Copy #1
BP Key Pc# Status Media Piece Name
1359743 1 AVAILABLE NN0821L3 /ORACLE:SVPRD1B:REDO:153560_726198493_1/
Backup Set Copy #2 of backup set 1359733
Device Type Elapsed Time Completion Time Compressed Tag
SBT_TAPE 00:02:48 05/08/2010 01:51:01 NO TAG20100805T014812
List of Backup Pieces for backup set 1359733 Copy #2
BP Key Pc# Status Media Piece Name
1359744 1 AVAILABLE NN0833L3 /ORACLE:SVPRD1B:REDO:153560_726198493_2/
BS Key Size
1359739 9.97G
List of Archived Logs in backup set 1359739
Thrd Seq Low SCN Low Time Next SCN Next Time
1 33812 68243156997 04/08/2010 23:46:13 68253559461 05/08/2010 00:55:07
1 33813 68253559461 05/08/2010 00:55:07 68260254831 05/08/2010 01:41:19
Backup Set Copy #1 of backup set 1359739
Device Type Elapsed Time Completion Time Compressed Tag
SBT_TAPE 00:11:44 05/08/2010 01:59:57 NO TAG20100805T014812
List of Backup Pieces for backup set 1359739 Copy #1
BP Key Pc# Status Media Piece Name
1359750 1 AVAILABLE NN0821L3 /ORACLE:SVPRD1B:REDO:153558_726198493_1/
Backup Set Copy #2 of backup set 1359739
Device Type Elapsed Time Completion Time Compressed Tag
SBT_TAPE 00:11:44 05/08/2010 01:59:57 NO TAG20100805T014812
List of Backup Pieces for backup set 1359739 Copy #2
BP Key Pc# Status Media Piece Name
1359751 1 AVAILABLE NN0833L3 /ORACLE:SVPRD1B:REDO:153558_726198493_2/
BS Key Size
1359740 9.84G
List of Archived Logs in backup set 1359740
Thrd Seq Low SCN Low Time Next SCN Next Time
2 33580 68243160092 04/08/2010 23:46:14 68253672744 05/08/2010 00:56:10
2 33581 68253672744 05/08/2010 00:56:10 68260864567 05/08/2010 01:46:16
Backup Set Copy #1 of backup set 1359740
Device Type Elapsed Time Completion Time Compressed Tag
SBT_TAPE 00:12:20 05/08/2010 02:00:33 NO TAG20100805T014812
List of Backup Pieces for backup set 1359740 Copy #1
BP Key Pc# Status Media Piece Name
1359752 1 AVAILABLE NN0821L3 /ORACLE:SVPRD1B:REDO:153559_726198493_1/
Backup Set Copy #2 of backup set 1359740
Device Type Elapsed Time Completion Time Compressed Tag
SBT_TAPE 00:12:20 05/08/2010 02:00:33 NO TAG20100805T014812
List of Backup Pieces for backup set 1359740 Copy #2
BP Key Pc# Status Media Piece Name
1359753 1 AVAILABLE NN0833L3 /ORACLE:SVPRD1B:REDO:153559_726198493_2/but when I am trying to restore them I receive an error:
RMAN> run {
allocate channel t1 type 'sbt_tape';
2> set archivelog destination to '/oracle/archive/svprd1b1/20100817_arch_rest';
restore (archivelog from time "to_date('04/08/2010 23:00:00','dd/mm/yyyy HH24:mi:ss')" until time "to_date('05/08/2010 01:00:00','dd/mm/yyyy hh24:mi:ss')" );
release channel t1;
3> 4> 5> 6>
allocated channel: t1
channel t1: sid=1725 instance=SVPRD1B1 devtype=SBT_TAPE
channel t1: NMO v4.2.0.0
executing command: SET ARCHIVELOG DESTINATION
Starting restore at 23/08/2010 13:05:15
channel t1: starting archive log restore to user-specified destination
archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
channel t1: restoring archive log
archive log thread=3 sequence=24686
channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153543_726191236_1/
ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153543_726191236_2/
ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153543_726191236_2/", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
A backup or restore session is already in progress. (100:17:0)
channel t1: starting archive log restore to user-specified destination
archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
channel t1: restoring archive log
archive log thread=1 sequence=33810
channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153541_726191236_1/
ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153541_726191236_2/
ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153541_726191236_2/", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
A backup or restore session is already in progress. (100:17:0)
channel t1: starting archive log restore to user-specified destination
archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
channel t1: restoring archive log
archive log thread=1 sequence=33811
channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153544_726192582_1/
ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153544_726192582_2/
ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153544_726192582_2/", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
A backup or restore session is already in progress. (100:17:0)
channel t1: starting archive log restore to user-specified destination
archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
channel t1: restoring archive log
archive log thread=2 sequence=33578
channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153542_726191236_1/
ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153542_726191236_2/
ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153542_726191236_2/", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
A backup or restore session is already in progress. (100:17:0)
channel t1: starting archive log restore to user-specified destination
archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
channel t1: restoring archive log
archive log thread=2 sequence=33579
channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153545_726192843_1/
ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153545_726192843_2/
ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153545_726192843_2/", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
A backup or restore session is already in progress. (100:17:0)
channel t1: starting archive log restore to user-specified destination
archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
channel t1: restoring archive log
archive log thread=3 sequence=24687
channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153560_726198493_1/
ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153560_726198493_2/
ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153560_726198493_2/", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
A backup or restore session is already in progress. (100:17:0)
channel t1: starting archive log restore to user-specified destination
archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
channel t1: restoring archive log
archive log thread=1 sequence=33812
channel t1: restoring archive log
archive log thread=1 sequence=33813
channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153558_726198493_1/
ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153558_726198493_2/
ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153558_726198493_2/", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
A backup or restore session is already in progress. (100:17:0)
channel t1: starting archive log restore to user-specified destination
archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
channel t1: restoring archive log
archive log thread=2 sequence=33580
channel t1: restoring archive log
archive log thread=2 sequence=33581
channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153559_726198493_1/
ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153559_726198493_2/
ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153559_726198493_2/", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
A backup or restore session is already in progress. (100:17:0)
failover to previous backup
channel t1: starting archive log restore to user-specified destination
archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
channel t1: restoring archive log
archive log thread=3 sequence=24686
channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153543_726191236_2/
ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153543_726191236_2/
ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153543_726191236_2/", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
A backup or restore session is already in progress. (100:17:0)
channel t1: starting archive log restore to user-specified destination
archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
channel t1: restoring archive log
archive log thread=1 sequence=33810
channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153541_726191236_2/
ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153541_726191236_2/
ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153541_726191236_2/", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
A backup or restore session is already in progress. (100:17:0)
channel t1: starting archive log restore to user-specified destination
archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
channel t1: restoring archive log
archive log thread=1 sequence=33811
channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153544_726192582_2/
ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153544_726192582_2/
ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153544_726192582_2/", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
A backup or restore session is already in progress. (100:17:0)
channel t1: starting archive log restore to user-specified destination
archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
channel t1: restoring archive log
archive log thread=2 sequence=33578
channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153542_726191236_2/
ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153542_726191236_2/
ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153542_726191236_2/", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
A backup or restore session is already in progress. (100:17:0)
channel t1: starting archive log restore to user-specified destination
archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
channel t1: restoring archive log
archive log thread=2 sequence=33579
channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153545_726192843_2/
ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153545_726192843_2/
ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153545_726192843_2/", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
A backup or restore session is already in progress. (100:17:0)
channel t1: starting archive log restore to user-specified destination
archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
channel t1: restoring archive log
archive log thread=3 sequence=24687
channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153560_726198493_2/
ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153560_726198493_2/
ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153560_726198493_2/", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
A backup or restore session is already in progress. (100:17:0)
channel t1: starting archive log restore to user-specified destination
archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
channel t1: restoring archive log
archive log thread=1 sequence=33812
channel t1: restoring archive log
archive log thread=1 sequence=33813
channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153558_726198493_2/
ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153558_726198493_2/
ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153558_726198493_2/", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
A backup or restore session is already in progress. (100:17:0)
channel t1: starting archive log restore to user-specified destination
archive log destination=/oracle/archive/svprd1b1/20100817_arch_rest
channel t1: restoring archive log
archive log thread=2 sequence=33580
channel t1: restoring archive log
archive log thread=2 sequence=33581
channel t1: reading from backup piece /ORACLE:SVPRD1B:REDO:153559_726198493_2/
ORA-19870: error reading backup piece /ORACLE:SVPRD1B:REDO:153559_726198493_2/
ORA-19507: failed to retrieve sequential file, handle="/ORACLE:SVPRD1B:REDO:153559_726198493_2/", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
A backup or restore session is already in progress. (100:17:0)
failover to previous backup
released channel: t1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/23/2010 13:08:50
RMAN-06026: some targets not found - aborting restore
RMAN-06025: no backup of log thread 3 seq 24687 lowscn 68243156430 found to restore
RMAN-06025: no backup of log thread 3 seq 24686 lowscn 68236434950 found to restore
RMAN-06025: no backup of log thread 2 seq 33581 lowscn 68253672744 found to restore
RMAN-06025: no backup of log thread 2 seq 33580 lowscn 68243160092 found to restore
RMAN-06025: no backup of log thread 2 seq 33579 lowscn 68240747010 found to restore
RMAN-06025: no backup of log thread 2 seq 33578 lowscn 68236472935 found to restore
RMAN-06025: no backup of log thread 1 seq 33813 lowscn 68253559461 found to restore
RMAN-06025: no backup of log thread 1 seq 33812 lowscn 68243156997 found to restore
RMAN-06025: no backup of log thread 1 seq 33811 lowscn 68240656570 found to restore
RMAN-06025: no backup of log thread 1 seq 33810 lowscn 68236430016 found to restoreWhat am I doing wrong ?
Database 10.2.0.4 @HP-UX 11.23 Itanium
Thanks in advance.The error "A backup or restore session is already in progress. (100:17:0)" comes from the MML -- the Tape Management software. It prevents you from running a RESTORE.
Hemant K Chitale -
Hi,
on 10gR2 Win 2003 Server
yesterday I restored some archived logs in a new folder from RMAN backups like this :
RUN
SET ARCHIVELOG DESTINATION TO 'D:\base\MABASE\Newarch';
restore archivelog FROM sequence 439 until sequence 458 ;
}This morning I had the following error :
RMAN-06059: expected archived log not found 'D:\base\MABASE\Newarch'\ARC00439_0679858367.001I can not understand. Why RMAN look for in a wrong directory after having restored some Archived logs?
Should I have rolled back in my script and wrot it like this :
RUN
SET ARCHIVELOG DESTINATION TO 'D:\base\MABASE\Newarch';
restore archivelog FROM sequence 439 until sequence 458 ;
SET ARCHIVELOG DESTINATION TO 'D:\base\MABASE\arch';
}Thank you.Hi,
Manually copy the archives to the new destination path..and after that set it in RMAN
RUN
SET ARCHIVELOG DESTINATION TO 'D:\base\MABASE\Newarch';( Guess this is the new path where the archvies has to be copied manually)
restore archivelog FROM sequence 439 until sequence 458 ;
thanks,
basakr.l -
Rman restore archivelogs files only, but in other machine.
Hello,
i need to restore archivelog files in another machine for use with logminer without use my actual +FRA for space reason and withouy use "set destination to"
How i can do it?
thanks and regardsHello,
in the new machine i have a clone database with a init.ora file that use db_recovery_dest to new path (not +FRA) in a filesystem.
When run a rman script this connect to target(production database) , rman catalog, and auxiliary (my clone database).
I restore a clone controlfile, so mount the clone database, then restore logfile from sequence = xxxx until sequence = XXX , BUT the archivelogfile was restored in target database (production database) inside the +FRA
This is my logfile of rman script.
Regards.
Iniciando restore en 19/06/12
canal t1: iniciando restauración del juego de copias de seguridad de archivos de datos
canal t1: restaurando archivo de control
archivo de salida=/RECOVERABD/controlXXXX.ora
canal t1: leyendo desde la parte de copia de seguridad c-3574442397-20120619-01
canal t1: parte 1 de la copia de seguridad restaurada
manejador de parte=c-3574442397-20120619-01 etiqueta=TAG20120619T063218
canal t1: restauración terminada, tiempo transcurrido: 00:00:16
restore terminado en 19/06/12
sentencia sql: alter database mount clone database
canal asignado: t4
canal t4: sid=2276 instancia=paire1 devtype=SBT_TAPE
canal t4: NMO v5.0.0.0
Iniciando restore en 19/06/12
canal t4: iniciando la recuperación de archive log al destino por defecto <--- default +FRA !!
canal t4: restaurando archive log
thread de archive log=1 secuencia=132141
canal t4: leyendo desde la parte de copia de seguridad B134414_ARCH.bak
canal t4: parte 1 de la copia de seguridad restaurada
manejador de parte=B134414_ARCH.bak etiqueta=TAG20120618T140157
canal t4: restauración terminada, tiempo transcurrido: 00:00:56
restore terminado en 19/06/12 -
RMAN Error - restore database validate
Hi all
I am trying to validate a full database backup taken on tape using 'restore database validate' command but for some reason this command spits out multi-page long PL/SQL code (below truncated output). I have searched all over for a solution but can't seem to figure out the problem.
Any assistance will be appreciated.
RMAN> allocate channel for maintenance type SBT_TAPE parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
2> crosscheck backup;
3> restore database validate;
4> release channel;
5> exit;
allocated channel: ORA_MAINT_SBT_TAPE_1
channel ORA_MAINT_SBT_TAPE_1: SID=82 device type=SBT_TAPE
channel ORA_MAINT_SBT_TAPE_1: Data Protection for Oracle: version 5.4.1.0
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=c-822607628-20101006-02 RECID=66 STAMP=731711718
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=DB_20101007_77_2dlpsj84_1_1.dbf RECID=67 STAMP=731794692
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=CF_20101008_116_3klpt5iv_1_1.ctl RECID=106 STAMP=731813472
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=c-822607628-20101008-01 RECID=107 STAMP=731813518
Crosschecked 42 objects
Starting restore at 08-OCT-10
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=110 device type=DISK
DBGANY: CMD type=IRESTORE cmdid=1 status=NOT STARTED
DBGANY: 1 STEPstepid=1 cmdid=1 status=NOT STARTED devtype=SBT_TAPE bs.stamp=731812991 step_size=0 Bytes
DBGANY: 1 TEXTNOD = -- rsdf_start
DBGANY: 2 TEXTNOD = declare
DBGANY: 3 TEXTNOD = /* restoreStatus */
DBGANY: 4 TEXTNOD = state binary_integer;
DBGANY: 5 TEXTNOD = pieces_done binary_integer;
DBGANY: 6 TEXTNOD = files binary_integer;
DBGANY: 7 TEXTNOD = datafiles boolean;
DBGANY: 8 TEXTNOD = incremental boolean;
DBGANY: 9 TEXTNOD = device boolean;
DBGANY: 10 TEXTNOD = /* restorebackuppiece */
DBGANY: 11 TEXTNOD = done boolean;
DBGANY: 12 TEXTNOD = currcf boolean;
DBGANY: 266 TEXTNOD = sys.dbms_backup_restore.restoreCancel(FALSE);
DBGANY: 267 TEXTNOD = exception
DBGANY: 268 TEXTNOD = when others then
DBGANY: 269 TEXTNOD = krmicd.writeMsg(1005,
DBGANY: 270 TEXTNOD = 'c. dbms_backup_restore.restoreCancel() failed');
DBGANY: 271 TEXTNOD = end;
DBGANY: 272 TEXTNOD = sys.dbms_backup_restore.setRmanStatusRowId(rsid=>0, rsts=>0);
DBGANY: 273 TEXTNOD = end;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00601: fatal error in recovery manager
RMAN-03004: fatal error during execution of command
RMAN-00600: internal error, arguments [6000] [] [] [] []Hi Sybrand
So here's the deal:
1) 'backup validate database;' is run before RMAN backup to check for any logical or physical corruption in datafiles or archivelogs.
If the backup validation discovers corrupt blocks, then RMAN updates the V$DATABASE_BLOCK_CORRUPTION view with rows describing the corruptions.
2)
a- 'restore database validate;' is run after RMAN backup to check for any logical or physical corruption in backupsets.
b- 'validate backupset <n>;' is also run after RMAN backup to check for any logical or physical corruption in backupsets. The difference being you have to run it for each individual backupset as opposed to the previous option (2a), which loops through all existing backupsets.
I believe for now only option 2b is available for use in my case.
Cheers. -
Restore database validate ERROR
I configure RMAN yesterday with the following parameters:
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u02/rman/prod1/%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 2;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 2;
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 2;
CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/backup/prod1/backup_db/%U' MAXPIECESIZE 2000M;
CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT '/backup/prod1/backup_db/%U' MAXPIECESIZE 2000M;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/backup/rman/prod1/scontrolfile.ctl';
CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/backup/prod1/backup_db/%U' MAXPIECESIZE 2000M;
I performed a full backup after this and was trying to verify it this morning. But I am getting the following errors:
RMAN-00558: error encountered while parsing input commands
RMAN-01005: syntax error: found "equal": expecting one of: "double-quoted-string
, identifier, newline, ;, single-quoted-string"
RMAN-01007: at line 1 column 16 file: standard input
RMAN> connect target /
connected to target database: PROD (DBID=444452)
RMAN> restore database validate;
Starting restore at 11-SEP-07
using target database controlfile instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=950 devtype=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid=1136 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 09/11/2007 09:59:44
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 258 found to restore
RMAN-06023: no backup or copy of datafile 257 found to restore
I listed RMAN back and my full backup is showing. Please help your sister out.RMAN> connect target /
connected to target database: PROD (DBID=35109652)
using target database controlfile instead of recovery catalog
RMAN> report schema;
Report of database schema
File K-bytes Tablespace RB segs Datafile Name
1 523264 SYSTEM *** /dev/rprod_sys_000
2 1047552 UNDO *** /dev/rprod_und_001
3 130048 MISC *** /dev/rprod_msc_000
4 4193280 D_R_SMALL *** /dev/rdprod_0000001
5 3872768 I_R_SMALL *** /dev/riprod_0000001
6 916480 I_R_LARGE *** /dev/riprod_0000002
7 637952 D_R_LARGE *** /dev/rdprod_0000002
RMAN> backup database;
#This was successful/completed although I don’t have the output.
RMAN> list backup;
List of Backup Sets
===================
BS Key Type LV Size
1 Full 3G
List of Datafiles in backup set 1
File LV Type Ckp SCN Ckp Time Name
19 Full 2241992994123 10-SEP-07 /dev/rlprod_0000001
25 Full 2241992994123 10-SEP-07 /dev/rdprod_0000010
30 Full 2241992994123 10-SEP-07 /dev/riprod_0000012
31 Full 2241992994123 10-SEP-07 /dev/riprod_0000013
36 Full 2241992994123 10-SEP-07 /dev/riprod_0000015
Backup Set Copy #1 of backup set 1
Device Type Elapsed Time Completion Time Compressed Tag
DISK 00:07:20 10-SEP-07 NO TAG20070910T225622
List of Backup Pieces for backup set 1 Copy #1
BP Key Pc# Status Piece Name
1 1 AVAILABLE /backup/prod1/backup_db/0girkfgo_1_1
3 2 AVAILABLE /backup/prod1/backup_db/0girkfgo_2_1
Backup Set Copy #2 of backup set 1
Device Type Elapsed Time Completion Time Compressed Tag
DISK 00:07:20 10-SEP-07 NO TAG20070910T225622
List of Backup Pieces for backup set 1 Copy #2
BP Key Pc# Status Piece Name
2 1 AVAILABLE /backup/prod1/backup_db/0girkfgo_1_2
4 2 AVAILABLE /backup/prod1/backup_db/0girkfgo_2_2
BS Key Type LV Size
2 Full 3G
List of Datafiles in backup set 2
File LV Type Ckp SCN Ckp Time Name
4 Full 2241992994124 10-SEP-07 /dev/rdprod_0000001
8 Full 2241992994124 10-SEP-07 /dev/riprod_0000003
12 Full 2241992994124 10-SEP-07 /dev/rdprod_0000005
17 Full 2241992994124 10-SEP-07 /dev/rdprod_0000007
24 Full 2241992994124 10-SEP-07 /dev/rdprod_0000009
27 Full 2241992994124 10-SEP-07 /dev/riprod_0000011
Backup Set Copy #1 of backup set 2
Device Type Elapsed Time Completion Time Compressed Tag
DISK 00:07:37 10-SEP-07 NO TAG20070910T225622
List of Backup Pieces for backup set 2 Copy #1
BP Key Pc# Status Piece Name
5 1 AVAILABLE /backup/prod1/backup_db/0hirkfgp_1_1
7 2 AVAILABLE /backup/prod1/backup_db/0hirkfgp_2_1
Backup Set Copy #2 of backup set 2
Device Type Elapsed Time Completion Time Compressed Tag
DISK 00:07:37 10-SEP-07 NO TAG20070910T225622
List of Backup Pieces for backup set 2 Copy #2
BP Key Pc# Status Piece Name
6 1 AVAILABLE /backup/prod1/backup_db/0hirkfgp_1_2
8 2 AVAILABLE /backup/prod1/backup_db/0hirkfgp_2_2
RMAN> validate backupset 1;
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=950 devtype=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid=949 devtype=DISK
channel ORA_DISK_1: starting validation of datafile backupset
channel ORA_DISK_1: restored backup piece 1
piece handle=/backup/prod1/backup_db/0girkfgo_1_1 tag=TAG20070910T225622
channel ORA_DISK_1: restored backup piece 2
piece handle=/backup/prod1/backup_db/0girkfgo_2_1 tag=TAG20070910T225622
channel ORA_DISK_1: validation complete
The problem is that I can’t perform: restore database validate; or test. -
RMAN restore database validate
All,
I cannot seem to find anything in the Oracle documentation what the RMAN restore database validate checks for? Does it check for physical and logical corruption or do I need to validate the backup using logical statement to check for this?
I would appreciate it if somebody could point me in the right direction.
This is for Oracle 9iR2
Many thanksuser647138 wrote:
Many thanks for all your help. Much appreciated :)Handle: user647138
Status Level: Newbie
Registered: Jul 15, 2008
Total Posts: 10
Total Questions: 5 (4 unresolved)
why dont you mark the thread as answered/helpful?
Many thanks for all your help. Much appreciated :) is it?
Posters, please mind these common-sense rules when participating here:
- When asking a question, provide all the details that someone would need to answer it. Consulting documentation first is highly recommended.
- When answering a question, please be courteous and respectful; there are different levels of experience represented here. A poorly worded question is better ignored than flamed - or better yet, help the poster ask a better question.
- It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
- See more tips in the FAQ
Thanks for doing your part to make this community as valuable as possible for everyone!
- OTN -
Restore database validate command
Hey Guys..
Is there a way to attempt to run the "restore database validate" command specifying a different location for the backup?
Lets say i have a backup in the following location: C:\SimpleBackup
How can i run the restore validate command to that location instead of the default flash recovery?We always use the :
set newname for datafile 1 to '/opt/dbsid/db01/system.dbf';
set newname for datafil 2 to '/opt/dbsid/db01/temp01.dbf';
to restore backup files to another location.
Is that useable here ?
Edit: I just re-read the question. Is the c:\simplebackup a destination to put restored files to, or is it the location of the rman archive ?
if the first is true, then the above can't be used.
Edited by: orafrf on Mar 16, 2009 4:37 PM -
Restore archivelog on standby failed
When I tried to restore an archivelog on the physical standby, it failed with the following error:
ORA-19870: error reading backup piece 3ekc9vsh_1_1
ORA-19507: failed to retrieve sequential file, handle="3ekc9vsh_1_1", parms=""
ORA-27029: skgfrtrv: sbtrestore returned error
ORA-19511: Error received from media manager layer, error text:
Backup file <3ekc9vsh_1_1> not found in NetBackup catalog
failover to previous backup
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 04/13/2009 10:12:00
RMAN-06026: some targets not found - aborting restore
RMAN-06025: no backup of log thread 1 seq 2941 lowscn 7414699310630 found to restore
However, I checked on the primary, it shows the archivelog was backed up:
SEQUENCE# THREAD# ARC COMPLETIO
2941 1 YES 12-APR-09
Why is that and what can I do?
Thanks in acvance!Check out this doc....it will show you how to recover your standby using an incremental RMAN backup with SCN based reference. Willl be faster than rebuilding your standby:
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#sthref955 -
Restore archivelog without target and no catalog
Hello,
I am trying to restore one archivelog without the target and no catalog from a backup piece.
My goal it is to apply this archive to my duplicate database to able to do a resetlog.
But since now I did not find the right way.
Any ideal
Thanks in advanceI don't think you can you use the RESTORE command to restore an archived redo log: RESTORE command work only on control file, database, tablespace or datafile level. To request to RMAN to apply an archived redo log, you should try to use the UNTIL clause
that is used by the RECOVER command or the SET UNTIL statement.
What is your Oracle version ?
What are the RMAN statements you have used and the errors that prevent you to do a RESETLOGS ?
Edited by: P. Forstmann on Sep 5, 2008 5:08 PM -
Difference between archive logs and flashback zipped archivelogs?
Can someone explain to me the difference between the archive logs in the E:\oracle\product\11.1.0\db_1\RDBMS\ and the zipped archive logs in the E:\oracle\flash_recovery_area\sid\ARCHIVELOG\<date>?
They appear to be written at the same time and to be an exact copy of each other. Couldn't you use the flashback archivelog as a backup if the archivelog under the oracle_home was corrupted?
Thanks for taking this question!
KathieObviously you have multiplexed archivelog destinations (check 'show parameter log_archive_dest' in sqlplus). By default one destination is defined as log_archive_dest_10='LOCATION=USE_DB_RECOVERY_FILE_DEST',that's the Flashback Recovery Area. 'Someone' defined a second destination.
It's the purpose of multiple destinations to be protected against failures of one destination.
Werner
Maybe you are looking for
-
Wish List for Future Releases of FME
First, I want to sincerely thank the Adobe team responsible for FME. Great job! Great application! We use FMS for 24/7 live cams and live TV streams. We have some suggestions for what might help FME be a more flexible tool for us and others in our si
-
Duplicate Items in Open With Menu
Whenever I right / command click to get the 'open with' dialog the list has duplicates of most applications in the list. This happened after I upgraded to Leopard. Any ideas how to fix it?
-
Hi All im following this guide to install FIM portal and Service with load balancing http://www.harbar.net/articles/fimportal.aspx All went well, after modifying some of the scripts, but now the question is when i install the FIMservice on the seco
-
I just set up new macbook air yesterday and all my birthdays on calendar went to that day
I just set up my new macbook air yesterday-today I find that all the birthdays I had on the calendar on my ipad had transferred to being on October 16 (yesterday). The birthdays on each individual contact has changed to that date also-have no idea n
-
Panasonic's AVCCAM Importer for QT7 & FCP7 - workin' for anybody?
This was just released today. Supposedly you can open AVCAM native footage (.m2ts) in QT7 and FCP7 after installing it. Followed install instructions but... Doesn't work for me. Anybody had any luck using it? From Panasonic PASS Support Team e-mail: