Restore validate doubt

Hi, can anyone clear my doubt.
RMAN> restore validate spfile to '/tmp/testspfile.ora';
Starting restore at 20-JUN-07
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
channel ORA_DISK_1: starting validation of datafile backupset
channel ORA_DISK_1: reading from backup piece /u04/flash_recovery_area/testdb1/autobackup/2007_06_20/o1_mf_s_625746962_37jxmmf7_.bkp
channel ORA_DISK_1: restored backup piece 1
piece handle=/u04/flash_recovery_area/testdb1/autobackup/2007_06_20/o1_mf_s_625746962_37jxmmf7_.bkp tag=TAG20070620T103602
channel ORA_DISK_1: validation complete, elapsed time: 00:00:03
Finished restore at 20-JUN-07
RMAN> restore validate controlfile to '/tmp/control01.ctl';
Starting restore at 20-JUN-07
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
channel ORA_DISK_1: starting validation of datafile backupset
channel ORA_DISK_1: reading from backup piece /u04/flash_recovery_area/testdb1/autobackup/2007_06_20/o1_mf_s_625746962_37jxmmf7_.bkp
channel ORA_DISK_1: restored backup piece 1
piece handle=/u04/flash_recovery_area/testdb1/autobackup/2007_06_20/o1_mf_s_625746962_37jxmmf7_.bkp tag=TAG20070620T103602
channel ORA_DISK_1: validation complete, elapsed time: 00:00:02
Finished restore at 20-JUN-07
When I go to /tmp & ls –ltr
I do not see the files ??? does restore validate in this case only check whether RMAN can restore the files or should it also restore the files to /tmp.

That's correct. RESTORE..VALIDATE will only scan the file and ensure it actually exists and is not corrupt.
In fact, for 10g you don't even need to specify a location:
RMAN> restore spfile validate;
Starting restore at 21-JUN-07
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=144 devtype=DISK
channel ORA_DISK_1: starting validation of datafile backupset
channel ORA_DISK_1: reading from backup piece E:\ORACLE\FLASH_RECOVERY_AREA\WIN10G\AUTOBACKUP\2007_0
4_07\O1_MF_S_619309432_31JNKVF5_.BKP
channel ORA_DISK_1: restored backup piece 1
piece handle=E:\ORACLE\FLASH_RECOVERY_AREA\WIN10G\AUTOBACKUP\2007_04_07\O1_MF_S_619309432_31JNKVF5_.
BKP tag=TAG20070407T222352
channel ORA_DISK_1: validation complete, elapsed time: 00:00:01
Finished restore at 21-JUN-07
RMAN>I issued your command with a UNIX directory on a Windows box and RMAN simply ignores the direcotry path anyway:
RMAN> restore validate spfile to '/tmp/testspfile.ora';
Starting restore at 21-JUN-07
using channel ORA_DISK_1
channel ORA_DISK_1: starting validation of datafile backupset
channel ORA_DISK_1: reading from backup piece E:\ORACLE\FLASH_RECOVERY_AREA\WIN10G\AUTOBACKUP\2007_0
4_07\O1_MF_S_619309432_31JNKVF5_.BKP
channel ORA_DISK_1: restored backup piece 1
piece handle=E:\ORACLE\FLASH_RECOVERY_AREA\WIN10G\AUTOBACKUP\2007_04_07\O1_MF_S_619309432_31JNKVF5_.
BKP tag=TAG20070407T222352
channel ORA_DISK_1: validation complete, elapsed time: 00:00:01
Finished restore at 21-JUN-07
RMAN>

Similar Messages

  • Restore validate database

    Hi,
    1) I've 2 databases, which are scheduled for weekly full online backup(from scheduler/rman) on fri. and sat. respectively, and there is daily incrementally updated backup, plus the archivelogs on both the database.
    When I do restore validate database, in one database validate restores the last full online backup, whereas in the other it scans the datafile copies.
    I'm just curious as to what algorithm rman follows to validate the database restore?
    2) Is there some way to automate this VALIDATE in a script, I'm finding it real pain to first LIST BACKUP SUMMARY, identify BACKUPSET keys, then manually key in to
    - VALIDATE BACKUPSET XXXX,XXXX,XXXX
    - RESTORE VALIDATE CONTROLFILE
    - RESTORE VALIDATE SPFILE
    - RESTORE VALIDATE ARCHIVELOG FROM TIME 'XX-XXX-XX'
    - RESTORE VALIDATE DATABASE

    >>
    When I do restore validate database, in one database validate restores the last full online backup, whereas in the other it scans the datafile copies.
    >>
    What do you mean by datafile copies? Are you talking about RMAN image copies?
    RESTORE... VALIDATE causes RMAN to select existing backups that it would use to perform a RESTORE operation, and scan them all to ensure that they are present and free of corruption.
    RESTORE... PREVIEW identifies the backups which RMAN will use to perform any RESTORE operation. Output from a RESTORE... PREVIEW is in the same format as the output of the LIST command.
    Oracle prefers image copies over backupsets, if exists, for restore and recovery.
    Jaffar

  • Restore Validate Database vs Backup Validate Database

    Hi,
    I want to add the following sentence after taking the backup using following command (backup as compressed backupset database plus archivelog;)
    restore database validate;
    or
    backup validate database;
    which one is best?

    It depends on what you are trying to accomplish, as per documentation:
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta009.htm#sthref141BACKUP .. VALIDATE: Causes RMAN to scan the specified files and verify their contents, testing whether this file can be backed up. RMAN creates no output files. Use this command periodically to check for physical and logical errors in database files.
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta051.htm#sthref796
    RESTORE... VALIDATE causes RMAN to select existing backups that it would use to perform a RESTORE operation, and scan them all to ensure that they are present and free of corruption.>
    Guessing what you're trying to do, I recommend:
    backup check logical as compressed backupset database plus archivelog;
    restore validate database;
    CHECK LOGICAL. Tests data and index blocks that pass physical corruption checks for logical corruption, for example, corruption of a row piece or index entry. If RMAN finds logical corruption, then it logs the block in the alert.log and server session trace file. HTH
    Enrique
    PS If you have access to Metalink see Note:388422.1 Top 10 Backup and Recovery best practices.
    Edited by: Enrique Orbegozo on Dec 17, 2008 4:21 PM

  • RESTORE VALIDATE, then what?

    Hi,
    Everyday I do,
    LIST BACKUPSET SUMMARY COMPLETED AFTER...
    VALIDATE BACKUPSET XXXX,XXXX...
    RESTORE VALIDATE CONTROLFILE
    RESTORE VALIDATE SPFILE
    RESTORE VALIDATE ARCHIVELOG FROM TIME 'XX-XXX-XX'
    RESTORE VALIDATE DATABASE
    1: Assuming the Server crashed, what is the quickest way to bring the database up and running, if on another server, and how to revert back to the original server.
    2: I'm a bit confused as to everyday I do backup/validate, suppose I don't have a cold backup, but I've archivelog for 1 month, how do I restore/recover the database, do I need a timely cold backup as well? (current backup includes, daily incrementally updated, and weekly hot backup).

    Regarding your question 2: it makes not one jot of difference whether you're doing hot, cold or tepid backups. Complete recovery always demands (a) some baseline to restore from (b) all the redo taken from the time that baseline was created until now (whenever "now" is).
    If you don't backup for a month, no worries: so long as you've got one month's-worth of redo safe and available, you'll (or RMAN will) be able to restore the one-month-old backup and roll it forward to the current time by recovering it (that is, applying redo to it).
    Of course, that will be slow. The purpose of taking any sort of backup (hot or cold, it's irrelevant) is to provide a baseline which is a little nearer to "now" than before, and thus to obviate the need to apply so much redo (which is generally a lot slower to do than restoring a more up-to-date backup is).
    Specifically, therefore, no: you don't need "a timely cold backup as well". You just need to be taking regular physical backups of the entire database at a pace that suits your recovery needs. Your weekly hot backup is a perfectly acceptable baseline: there's no need to do cold backups unless you feel the need to do so. They are not intrinsically safer of more recoverable than a hot backup, provided only that your redo is always kept safe.

  • RESTORE VALIDATE possible prior to an OPEN RESETLOGS?

    Is it possible to perform a RESTORE VALIDATE to a point in time prior to an OPEN RESETLOGS?
    RMAN> list incarnation;
    List of Database Incarnations
    DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
    1       1       AA02     2787653425       PARENT  1          29.FEB.2008 15:56:3
    3
    2       2       AA02     2787653425       CURRENT 182455     29.FEB.2008 16:55:5
    5
    RMAN> run
    2> {
    3> set until time = "to_date('29.FEB.2008 16:00:00','DD.MON.YYYY HH24:MI:SS')";
    4> restore database validate;
    5> }
    executing command: SET until clause
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of set command at 06/11/2009 11:13:35
    RMAN-20207: UNTIL TIME or RECOVERY WINDOW is before RESETLOGS timeUsing the RESET DATABASE TO INCARNATION clause it should be possible to perform the RESTORE however that is not the intention (yet), only to RESTORE VALIDATE.

    That's what I'm finding... I don't want to have to restart the database to reset the incarnation to have to test restore a backup prior to open resetlogs (no catalog only controlfile used).
    "If RMAN is connected NOCATALOG, then you can only specify TO INCARNATION if the database is mounted and the control file contains a record of the prior incarnation. If you do not run RESET DATABASE, RMAN recovers to the last incarnation recorded in the control file."
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta050.htm
    Yet another reason to have a RMAN catalog.

  • VALIDATE and RESTORE VALIDATE

    What are the major differences between VALIDATE DATABSAE and RESTORE DATABASE VALIDATE?
    Thanks!

    Hello Hemant,
    Thanks for your inputs. You said there is no VALIDATE DATABASE. Here is hte test that I did -
    RMAN> VALIDATE DATABASE;
    Starting validate at 14-OCT-09
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=139 device type=DISK
    channel ORA_DISK_1: starting validation of datafile
    channel ORA_DISK_1: specifying datafile(s) for validation
    input datafile file number=00014 name=/oracle1/data01/TESTDB/TESTDB_compress_test_01.dbf
    input datafile file number=00003 name=/oracle/TESTDB/data02/TESTDB_undo_01.dbf
    input datafile file number=00004 name=/oracle/TESTDB/data01/TESTDB_users_01.dbf
    input datafile file number=00002 name=/oracle/TESTDB/data01/TESTDB_sysaux_01.dbf
    input datafile file number=00001 name=/oracle/TESTDB/data01/TESTDB_system_01.dbf
    input datafile file number=00005 name=/oracle/TESTDB/data01/TESTDB_sysaud_tab_1m_01.dbf
    input datafile file number=00013 name=/oracle/TESTDB/data01/TESTDB_roop_01.dbf
    input datafile file number=00012 name=/oracle/TESTDB/data01/TESTDB_example_01.dbf
    input datafile file number=00006 name=/oracle/TESTDB/data01/TESTDB_shau_01.dbf
    input datafile file number=00015 name=/oracle/product/11.1/dbs/ILM_TOOLKIT_IML_TEST_TAB_A.f
    channel ORA_DISK_1: validation complete, elapsed time: 00:02:30
    List of Datafiles
    =================
    File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
    1 OK 0 14512 88320 39900747
    File Name: /oracle/TESTDB/data01/TESTDB_system_01.dbf
    Block Type Blocks Failing Blocks Processed
    Data 0 58987
    Index 0 11601
    Other 0 3220
    File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
    2 OK 0 17646 93704 39900668
    File Name: /oracle/TESTDB/data01/TESTDB_sysaux_01.dbf
    Block Type Blocks Failing Blocks Processed
    Data 0 26782
    Index 0 27830
    Other 0 21446
    File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
    3 OK 0 0 509440 39900747
    File Name: /oracle/TESTDB/data02/TESTDB_undo_01.dbf
    Block Type Blocks Failing Blocks Processed
    Data 0 0
    Index 0 0
    Other 0 509440
    File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
    4 OK 0 35933 195472 39351902
    File Name: /oracle/TESTDB/data01/TESTDB_users_01.dbf
    Block Type Blocks Failing Blocks Processed
    Data 0 127352
    Index 0 31181
    Other 0 1006
    File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
    5 OK 0 760 13056 39900721
    File Name: /oracle/TESTDB/data01/TESTDB_sysaud_tab_1m_01.dbf
    Block Type Blocks Failing Blocks Processed
    Data 0 12143
    Index 0 0
    Other 0 153
    File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
    6 OK 0 403 1280 27639971
    File Name: /oracle/TESTDB/data01/TESTDB_shau_01.dbf
    Block Type Blocks Failing Blocks Processed
    Data 0 0
    Index 0 749
    Other 0 128
    File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
    12 OK 0 1579 3200 38965080
    File Name: /oracle/TESTDB/data01/TESTDB_example_01.dbf
    Block Type Blocks Failing Blocks Processed
    Data 0 278
    Index 0 316
    Other 0 1027
    File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
    13 OK 0 12636 12800 30559315
    File Name: /oracle/TESTDB/data01/TESTDB_roop_01.dbf
    Block Type Blocks Failing Blocks Processed
    Data 0 0
    Index 0 0
    Other 0 164
    File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
    14 OK 0 57371 1008224 38826365
    File Name: /oracle1/data01/TESTDB/TESTDB_compress_test_01.dbf
    Block Type Blocks Failing Blocks Processed
    Data 0 950654
    Index 0 28
    Other 0 171
    File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
    15 OK 0 237 1152 16399927
    File Name: /oracle/product/11.1/dbs/ILM_TOOLKIT_IML_TEST_TAB_A.f
    Block Type Blocks Failing Blocks Processed
    Data 0 450
    Index 0 53
    Other 0 412
    channel ORA_DISK_1: starting validation of datafile
    channel ORA_DISK_1: specifying datafile(s) for validation
    including current control file for validation
    including current SPFILE in backup set
    channel ORA_DISK_1: validation complete, elapsed time: 00:00:01
    List of Control File and SPFILE
    ===============================
    File Type Status Blocks Failing Blocks Examined
    SPFILE OK 0 2
    Control File OK 0 624
    Finished validate at 14-OCT-09
    *******************END********************
    So, it does validate the database. In such case, how much different it is to VALIDATE a BACKUP than saying RESTORE DATABASE VALIDATE?
    I want to use RESTORE DATABASE CHECK LOGICAL VALIDATE for checking the restorability of the database but I want to know what the real difference between these two are. Seems like both are doing the same work in the background.
    Will be great to know your point of view.
    Thanks,
    Roopesh

  • 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

  • If I need a full rman restore which backups will it use?

    Hello,
    I have a database 11.1.0.7 with 8TB. Block change tracking is enabled.
    At the weekend I take level 0 backup and during the week level 1 cumulative.
    For some weeks the level 0 backup is failing, so I only have level 1 cumulative backups taken every week day with a 4 weeks old level 0 backup.
    If I need a full rman restore which backups will it use? Will it be the last level 0 backup with the last level 1 cumulative?
    I ask this because grid crontrol tells me that the recent level 1 backups input size is smaller than last week level 1 backups and in between I dont have any level 0 sucessfull backups. Shouldn't the input size of level 1 cumulative increase until the next level 0 backup ?
    The grid reports:
    Backup Name Status Start Time Time Taken Type Output Devices Input Size Output Size Output Rate (Per Sec)
    rman_df_lv1c COMPLETED 25/Jul/2011 21H00m WEST 02:33:29 DB INCR SBT_TAPE *1.32T* 289.02G 32.14M
    rman_df_lv0 FAILED 23/Jul/2011 02H01m WEST DB INCR SBT_TAPE 8.78T 8.06T
    rman_df_lv1c COMPLETED 21/Jul/2011 21H00m WEST 04:39:38 DB INCR SBT_TAPE *3.46T* 550.82G 33.62M
    rman_df_lv1c COMPLETED 20/Jul/2011 21H00m WEST 04:47:36 DB INCR SBT_TAPE *3.37T* 524.36G 31.12M
    rman_df_lv1c COMPLETED 19/Jul/2011 21H00m WEST 04:06:09 DB INCR SBT_TAPE *3.15T* 490.75G 34.03M
    rman_df_lv1c COMPLETED 18/Jul/2011 21H00m WEST 03:40:24 DB INCR SBT_TAPE *2.49T* 410.88G 31.82M
    rman_df_lv0 FAILED 16/Jul/2011 22H16m WEST DB INCR SBT_TAPE 6.27T 5.69T
    rman_df_lv1c FAILED 14/Jul/2011 21H00m WEST 06:13:40 DB INCR SBT_TAPE 4.38T 714.30G 32.62M
    rman_df_lv1c FAILED 13/Jul/2011 21H01m WEST 04:40:45 DB INCR SBT_TAPE 3.25T 542.98G 33.01M
    rman_df_lv1c COMPLETED 12/Jul/2011 21H00m WEST 07:15:54 DB INCR SBT_TAPE 4.74T 847.93G 33.20M
    rman_df_lv1c COMPLETED 11/Jul/2011 21H00m WEST 07:26:40 DB INCR SBT_TAPE 3.78T 766.40G 29.28M
    rman_df_lv0 FAILED 9/Jul/2011 02H32m WEST 04:30:44 DB INCR SBT_TAPE 749.89G 716.02G 45.14M
    rman_df_lv1c FAILED 7/Jul/2011 21H01m WEST 04:49:24 DB INCR SBT_TAPE 2.16T 515.90G 30.42M
    rman_df_lv1c FAILED 6/Jul/2011 21H00m WEST 01:26:06 DB INCR SBT_TAPE 745.83G 165.48G 32.80M
    rman_df_lv1c FAILED 5/Jul/2011 21H01m WEST 00:05:48 DB INCR SBT_TAPE 58.56G 7.56G 22.24M
    rman_df_lv1c FAILED 4/Jul/2011 21H00m WEST 01:55:03 DB INCR SBT_TAPE 422.40G 79.55G 11.80M
    rman_df_lv0 FAILED 3/Jul/2011 16H32m WEST 30:22:04 DB INCR SBT_TAPE 4.53T 4.21T 40.40M

    >
    If I need a full rman restore which backups will it use? Will it be the last level 0 backup with the last level 1 cumulative?
    From http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmvalid.htm
    Validating Backups Before Restoring Them
    You can run RESTORE ... VALIDATE to test whether RMAN can restore a specific file or set of files from a backup. RMAN chooses which backups to use.
    The database must be mounted or open for this command. You do not have to take datafiles offline when validating the restore of datafiles, because validation of backups of the datafiles only reads the backups and does not affect the production datafiles.
    When validating files on disk or tape, RMAN reads all blocks in the backup piece or image copy. RMAN also validates offsite backups. The validation is identical to a real restore operation except that RMAN does not write output files.
    You can monitor what RESTORE VALIDATE does.
    Make precautions, so you do not damage the production DB!!!
    Iordan Iotzov
    http://iiotzov.wordpress.com/

  • ORA-19612: datafile 0 not restored due to missing data

    Hello,
    I'm testing a restore of the controlfile. The database is in archivelog mode and autobackup is set to ON. I successfully did a full backup and backup as copy database.
    To test I did the following:
    - note the DBID
    - shutdown the database
    - renamed both controlfiles:
    $ mv /u02/rcat/control01.ctl /u02/rcat/control01.ctl_old
    $ mv /u02/fra/rcat/control02.ctl /u02/fra/rcat/control02.ctl_old
    When I try to restore the controlfile form autobackup I receive the following error. What could be reason please?
    [rcat@oel54]$ rman target /
    Recovery Manager: Release 11.2.0.1.0 - Production on Fri Dec 10 00:07:41 2010
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: RCAT (not mounted)
    RMAN> set dbid 502889862;
    executing command: SET DBID
    RMAN> restore controlfile from autobackup;
    Starting restore at 10-DEC-10
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=19 device type=DISK
    recovery area destination: /u02/fra
    database name (or database unique name) used for search: RCAT
    channel ORA_DISK_1: AUTOBACKUP /u02/fra/RCAT/autobackup/2010_12_09/o1_mf_s_737336682_6j2pyv2l_.bkp found in the recovery area
    channel ORA_DISK_1: looking for AUTOBACKUP on day: 20101210
    channel ORA_DISK_1: looking for AUTOBACKUP on day: 20101209
    channel ORA_DISK_1: restoring control file from AUTOBACKUP /u02/fra/RCAT/autobackup/2010_12_09/o1_mf_s_737336682_6j2pyv2l_.bkp
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 12/10/2010 00:09:55
    ORA-19870: error while restoring backup piece /u02/fra/RCAT/autobackup/2010_12_09/o1_mf_s_737336682_6j2pyv2l_.bkp
    ORA-19612: datafile 0 not restored due to missing data
    $ ll /u02/fra/RCAT/autobackup/2010_12_09/o1_mf_s_737336682_6j2pyv2l_.bkp
    -rw-r----- 1 oracle dba 10354688 Dec  9 23:44 /u02/fra/RCAT/autobackup/2010_12_09/o1_mf_s_737336682_6j2pyv2l_.bkpThanks!

    The file was indeed corrupted as below will show.
    Very strange. Perhaps something with the latest Virtualbox or the SSD/hybrid harddrive. (host MacOSX 10.6, guest Oracle Linux 5.5 UEK)
    $ mv /u02/rcat/control01.ctl_old /u02/rcat/control01.ctl
    $ mv /u02/fra/rcat/control02.ctl_old /u02/fra/rcat/control02.ctl
    SQL> startup mount
    ORACLE instance started.
    SQL> recover database;
    ORA-00283: recovery session canceled due to errors
    ORA-00264: no recovery required
    SQL> alter database open;
    Database altered.
    $ rman target /
    connected to target database: RCAT (DBID=502889862)
    RMAN> backup current controlfile;
    piece handle=/u02/fra/RCAT/backupset/2010_12_10/o1_mf_ncnnf_TAG20101210T012420_6j2wsoko_.bkp
    Finished backup at 10-DEC-10
    Starting Control File and SPFILE Autobackup at 10-DEC-10
    piece handle=/u02/fra/RCAT/autobackup/2010_12_10/o1_mf_s_737342662_6j2wspvf_.bkp comment=NONE
    Finished Control File and SPFILE Autobackup at 10-DEC-10
    RMAN> restore validate controlfile;
    piece handle=/u02/fra/RCAT/autobackup/2010_12_10/o1_mf_s_737342662_6j2wspvf_.bkp tag=TAG20101210T012422
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: validation complete, elapsed time: 00:00:02
    Finished restore at 10-DEC-10
    SQL> shutdown immediate
    $ mv /u02/rcat/control01.ctl /u02/rcat/control01.ctl_old
    $ mv /u02/fra/rcat/control02.ctl /u02/fra/rcat/control02.ctl_old
    SQL> startup nomount
    $ rman target /
    connected to target database: RCAT (not mounted)
    RMAN> set dbid 502889862;
    RMAN> restore controlfile from autobackup;
    Starting restore at 10-DEC-10
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=19 device type=DISK
    recovery area destination: /u02/fra
    database name (or database unique name) used for search: RCAT
    channel ORA_DISK_1: AUTOBACKUP /u02/fra/RCAT/autobackup/2010_12_10/o1_mf_s_737342662_6j2wspvf_.bkp found in the recovery area
    channel ORA_DISK_1: looking for AUTOBACKUP on day: 20101210
    channel ORA_DISK_1: restoring control file from AUTOBACKUP /u02/fra/RCAT/autobackup/2010_12_10/o1_mf_s_737342662_6j2wspvf_.bkp
    channel ORA_DISK_1: control file restore from AUTOBACKUP complete
    output file name=/u02/rcat/control01.ctl
    output file name=/u02/fra/rcat/control02.ctl
    Finished restore at 10-DEC-10

  • Backup and Restore

    Hello,
    Can some one tel me when I restore my database from backup
    and I have 3 weeks of archive logs in the database.
    Will it restore all of these archive logs also ?
    Just as the way I had the database before my restore ?
    Also doing a restore validate from my RC backups can some tell me correct syntax to do this
    and do I need to shutdown the instance to perform this check ?
    Thanks..

    Dont go with yours own policy involve yours managment for in housing the number of backups to drag yours database back.
    It depends on yours backup policy ,how far behind you will need to restore the database , if yours closing process performed at the end of month 30th then probably to revert yours closing process you need to restore the backup till before the start of closing process.It alls depend on yours company policies ,how yours management can claim to revert back the database,there are cases where company required to revert back the database till before two days then you need to adhere retention policy for 2 days and keep at least two days backup.
    In all cases there is recommneded to keep last two current day’s backup should be at hard disk (FRA flash recovery Area), oracle recommended tip is to always keep yours FRA far away from yours Database location possibly keep it at hard another hard drive, if possible keep this hard drive with separate controller.if you don’t keep any backup at hard disk then it will increase yours downtime in case of hard disk failure or any failure which should not be for a good DBA,you will have to have move last current backup from tape cartridge to hard disk (i.e. FRA) which will take x hours/mins to be restored at hard disk (i.e.FRA), keeping at least one last current backup at hard disk will save yours time from tape to hard disk. But if you keep 2 last current backup then it would be safer in case of any mishap with last current backup, you will be able to restore prior backup to last current one backup and then apply two days log for example
    If you keep two last current backup at hard disk (FRA)
    JAN 1
    JAN 2
    JAN 3<----------hard disk fail
    You will restore Jan 2 backup but unfortunately yours 2nd Jan backup corrupted for any reason then you can go with 1st Jan backup, you will restore 1st Jan backup apply archive log till before the hard disk failure.
    If you don’t keep last two backup just keep only last current backup ,in any case yours last current backup corrupted then again you will have to have move last current backup from tape cartridge to hard disk (i.e. FRA) which will take x hours/mins to be restored at hard disk (i.e. FRA),if you came across that tape cartridge last current moved backup also not restorable from tape cartridge then
    you will go with previous current backup and apply archivelogs till before hard disk failure, think isn’t good if you save x hours/min to move backup from tape to hard disk to make yourself and yours company downtime impact for the cost of purchasing more space for backup.
    Nevertheless if you can accommodate last 3 backups or more then that then I don’t think so there is any harm but don’t rely at all at yours hard disk backup, move backup also to reliable tape cartridge media.
    http://oraware.blogspot.com/2008/07/fra-capacity-planning.htmlKhurram

  • PERFORMING A TEST BACKUP (VALIDATE BACKUP) USING RMAN

    제품 : RMAN
    작성날짜 : 2002-05-30
    PERFORMING A TEST BACKUP (VALIDATE BACKUP) USING RMAN
    =====================================================
    PURPOSE
    RMAN을 이용하여 Test Backup을 수행하기 위한 정보를 제공한다.
    EXPLANATION
    8.1.7 부터 RMAN에서 BACKUP command에 VALIDATE keyword를 사용할 수 있게 되었다
    이 명령의 수행은 다음과 같은 작업을 수행한다.
    - Datafile의 physical and logical corruption을 check한다.
    - 모든 database file들이 존재하는지, 그리고 올바른 위치에 있는지를 검증한다.
    RMAN은 실제적으로 backupset을 생성하지 않는다 그러나 그것들이 backup될 수
    있는지 없는지를 결정하기 위해서 기술된 file들을 scan한다.
    BACKUP VALIDATE 는 backup job을 수행시 수행되는 것을 제외하고는
    RESTORE VALIDATE와 거의 비슷하다.
    EXAMPLE
    아래와 같은 command들을 수행하여 backup하고자 하는 database file과 archived redo
    log들이 실제로 backup될 수 있는지를 검증할 수 있다.
    RUN {
    ALLOCATE CHANNEL ch1 TYPE 'sbt_tape';
    BACKUP VALIDATE
    DATABASE
    ARCHIVELOG ALL;
    Note: MAXCORRUPT or PROXY parameter는 VALIDATE option과 함께 사용할 수 없다.
    REFERENCE DOCUMENTS
    NOTE:121109.1

    Clint,
    I ran the command lines you wrote me after i placed the database in Startup MOUNT state, RMAN gave error messages that the database needs to be open:
    RMAN> SQL 'ALTER TABLESPACE USERTB2 OFFLINE IMMEDIATE';
    sql statement: ALTER TABLESPACE USERTB2 OFFLINE IMMEDIATE
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 11/04/2005 15:31:33
    RMAN-11003: failure during parse/execution of SQL statement: ALTER TABLESPACE US
    ERTB2 OFFLINE IMMEDIATE
    ORA-01109: database not open
    Then I ran the same command lines after I opened the database, RMAN gave error messages that "offline immediate disallowed unless media recovery enabled":
    RMAN> SQL 'ALTER TABLESPACE USERTBS2 OFFLINE IMMEDIATE';
    sql statement: ALTER TABLESPACE USERTBS2 OFFLINE IMMEDIATE
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 11/04/2005 15:48:17
    RMAN-11003: failure during parse/execution of SQL statement: ALTER TABLESPACE US
    ERTBS2 OFFLINE IMMEDIATE
    ORA-01145: offline immediate disallowed unless media recovery enabled
    I am stuck again and need your help!
    Thank you,
    Mitra

  • RMAN Backup Validate

    Hi,
    We are having prod rman backup but not sure if it is valid one or not.
    Can any one suggest me how to valdate if those backup pieces can be used to restore the db for cloning of dev instance.
    Regards,
    siva

    Mohamed ELAzab wrote:
    Hello,
    You can use cross check backup.
    Please view this Link:
    http://ss64.com/ora/rman_crosscheck.html
    Two wrong things,
    1) Crosscheck is not the command to validate the restore but to check the physical existence of the backup pieces in comparison to the control file's repository. The op said,"We are having prod rman backup but not sure if it is valid one or not." So the restore validate is the command that's needed here based on what OP has said.
    2) Please use official oracle documentation for the reference as the error correction is guaranteed over there compared to the external sites like the one you have linked which almost never update/correct their content.
    Aman....

  • URGENT - RMAN restore help needed

    Hi,
    I have inherited an Oracle 9i system ( 9.2.x ) that needs to have a RMAN based backup from it restored onto a different oracle server of the same version.
    Thanks so much for your assistance on this.
    I also forgot to mention we run Oracle on a windows 2003 server.
    Well we have asubdirectory called Rman, so i figured thats whats doing the work.
    The output from the backup is :
    - In the exp directory :
    one .dmp file
    - In the Rman directory, 4 files per nightly backup, which have the format of :
    <dbname>_<date>S<4 digit numer that increments each backup>P1
    <dbname>_<date>S<4 digit numer that increments each backup>P2
    <dbname>_<date>S<4 digit numer that increments each backup>P1
    <dbname>_<date>S<4 digit numer that increments each backup>P1
    On another drive I have found :
    - seven .DBF files
    - one .CTL file
    One another drive I found :
    - one .ARC file
    - one .CTL file
    - REDO01.LOG,REDO02.LOG,REDO03.LOG files
    I also found the script that runs :
    rman target / catalog xxusernamexx/xxpasswordxx@PRD_DBA01 @D:\DBA\dbaadm\scr\RmanFull.rcv >> %logfile%
    Where Rmanfull.rvc is as shown below :
    DELETE NOPROMPT FORCE BACKUPSET COMPLETED BEFORE 'sysdate-8' DEVICE TYPE disk;
    DELETE NOPROMPT FORCE ARCHIVELOG ALL COMPLETED BEFORE 'sysdate-8' BACKED UP 2 TIMES TO DEVICE TYPE disk;
    BACKUP INCREMENTAL LEVEL 0 VALIDATE database PLUS archivelog;
    BACKUP INCREMENTAL LEVEL 0 TAG 'XXXXXXXX-Current' database PLUS archivelog NOT BACKED UP 2 TIMES;
    BACKUP DEVICE TYPE disk TAG 'XXXXXXX-BkupSet' BACKUPSET COMPLETED BETWEEN "TO_DATE(TRUNC(sysdate-1))" AND "TO_DATE(TRUNC(sysdate))" FORMAT 'D:\ORABackup\%d\Rman\%d_%T_s%s_p%p' DELETE INPUT;
    RESTORE VALIDATE database;
    RESTORE VALIDATE controlfile TO 'D:\ORABackup\Null\control.ctl';
    RESTORE VALIDATE spfile TO 'D:\ORABackup\Null\spfile.ctl';
    I have put in XXXXXXXX to blank out some names.
    I will do some reading, however what are your thoughts as to what this means for how I would do a restore of this database please? Not being lazy here, as I understand it oracle databases can get complex in configuration etc which is why i decided to ask people who do this all the time for a bit of guidance.
    Thanks in advance,
    Cheers
    SG
    Edited by: user11915486 on 17/09/2009 22:37

    user11915486 wrote:
    Hi,
    I have inherited an Oracle 9i system ( 9.2.x ) that needs to have a RMAN based backup from it restored onto a different oracle server of the same version.
    Thanks so much for your assistance on this.
    I also forgot to mention we run Oracle on a windows 2003 server.
    Well we have asubdirectory called Rman, so i figured thats whats doing the work.
    The output from the backup is :
    - In the exp directory :
    one .dmp file
    - In the Rman directory, 4 files per nightly backup, which have the format of :
    <dbname>_<date>S<4 digit numer that increments each backup>P1
    <dbname>_<date>S<4 digit numer that increments each backup>P2
    <dbname>_<date>S<4 digit numer that increments each backup>P1
    <dbname>_<date>S<4 digit numer that increments each backup>P1
    On another drive I have found :
    - seven .DBF files
    - one .CTL file
    One another drive I found :
    - one .ARC file
    - one .CTL file
    - REDO01.LOG,REDO02.LOG,REDO03.LOG files
    I also found the script that runs :
    rman target / catalog xxusernamexx/xxpasswordxx@PRD_DBA01 @D:\DBA\dbaadm\scr\RmanFull.rcv >> %logfile%
    Where Rmanfull.rvc is as shown below :
    DELETE NOPROMPT FORCE BACKUPSET COMPLETED BEFORE 'sysdate-8' DEVICE TYPE disk;
    DELETE NOPROMPT FORCE ARCHIVELOG ALL COMPLETED BEFORE 'sysdate-8' BACKED UP 2 TIMES TO DEVICE TYPE disk;
    BACKUP INCREMENTAL LEVEL 0 VALIDATE database PLUS archivelog;
    BACKUP INCREMENTAL LEVEL 0 TAG 'XXXXXXXX-Current' database PLUS archivelog NOT BACKED UP 2 TIMES;
    BACKUP DEVICE TYPE disk TAG 'XXXXXXX-BkupSet' BACKUPSET COMPLETED BETWEEN "TO_DATE(TRUNC(sysdate-1))" AND "TO_DATE(TRUNC(sysdate))" FORMAT 'D:\ORABackup\%d\Rman\%d_%T_s%s_p%p' DELETE INPUT;
    RESTORE VALIDATE database;
    RESTORE VALIDATE controlfile TO 'D:\ORABackup\Null\control.ctl';
    RESTORE VALIDATE spfile TO 'D:\ORABackup\Null\spfile.ctl';
    I have put in XXXXXXXX to blank out some names.
    I will do some reading, however what are your thoughts as to what this means for how I would do a restore of this database please? Not being lazy here, as I understand it oracle databases can get complex in configuration etc which is why i decided to ask people who do this all the time for a bit of guidance.
    Thanks in advance,
    Cheers
    SG
    Edited by: user11915486 on 17/09/2009 22:37Hi and welcome to Forum!
    I'd suggest you firstly to refer to [Administrators Guide documentation |http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/toc.htm] - to have basic knowledge of Oracle database and file types. Without having this knowledge, you will not be a successful DBA
    Let's analyze the script:
    DELETE NOPROMPT FORCE BACKUPSET COMPLETED BEFORE 'sysdate-8' DEVICE TYPE disk;
    It deletes backupsets which completed before 8 days before (From disk, not from tape)
    DELETE NOPROMPT FORCE ARCHIVELOG ALL COMPLETED BEFORE 'sysdate-8' BACKED UP 2 TIMES TO DEVICE TYPE disk;
    Deletes all archived redo log files which were backed up two times and completed before 8 days
    BACKUP INCREMENTAL LEVEL 0 VALIDATE database PLUS archivelog;
    Validates (not backups- just checks whether this script will run successfully ) the backup of database with all archived redo log files
    BACKUP INCREMENTAL LEVEL 0 TAG 'XXXXXXXX-Current' database PLUS archivelog NOT BACKED UP 2 TIMES;
    Backups Incremental level 0 backup of all database (which backups all the database with incremental option which will be used in the future when you'll take incremental 1 backups) and archived redo log files which not backed up 2 times and give it special Tag name to use it in the future just providing only tag name
    BACKUP DEVICE TYPE disk TAG 'XXXXXXX-BkupSet' BACKUPSET COMPLETED BETWEEN "TO_DATE(TRUNC(sysdate-1))" AND "TO_DATE(TRUNC(sysdate))" FORMAT 'D:\ORABackup\%d\Rman\%d_%T_s%s_p%p' DELETE INPUT;
    Backups all backupsets wich completed in 1 day (between yesterday and today) and gives it specific name and deletes original backupsets
    RESTORE VALIDATE database;
    Checks restoration of database (whether it is successful or not)
    RESTORE VALIDATE controlfile TO 'D:\ORABackup\Null\control.ctl';
    Checks restoration of controlfile
    RESTORE VALIDATE spfile TO 'D:\ORABackup\Null\spfile.ctl';
    Check restoration of spfile As a conclusion, I'd suggest you to refer to [Oracle Database Backup and Recovery Basics - 10g Release 2 (10.2)|http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/toc.htm] documentation to understand basics of RMAN Backup and Recovery
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • Restore Informix database

    Hi,
    I have taken the CVP's Reporting server's database. I want to restore the databse. I want help in this regard. What procedure should be followed.

    >>
    When I do restore validate database, in one database validate restores the last full online backup, whereas in the other it scans the datafile copies.
    >>
    What do you mean by datafile copies? Are you talking about RMAN image copies?
    RESTORE... VALIDATE causes RMAN to select existing backups that it would use to perform a RESTORE operation, and scan them all to ensure that they are present and free of corruption.
    RESTORE... PREVIEW identifies the backups which RMAN will use to perform any RESTORE operation. Output from a RESTORE... PREVIEW is in the same format as the output of the LIST command.
    Oracle prefers image copies over backupsets, if exists, for restore and recovery.
    Jaffar

  • RMAN restore problems

    Hello,
    I have an 11.2.0.1 database (archive mode) on a windows server 2003 R2 32b. The database does backups via RMAN (catalog on other server for that purpose) with NMO (legato networker) and it work fine. But we can't restore the backups. It may be a problem with the database, but it seems more a Media Manager problem. The fact is that when we try to restore, RMAn hungs waiting for recover (without any error, just stays forever until killed), and a session on our backup server remains browsing. It happens also if we make a restore validate. On the other hand, if you make a crosscheck, it works fine.
    As I said, it's very strange, and I think it's an issue with the configuration of the networker, or even the server, but I post here looking for advice, or maybe someone has seen something like this before.
    Any advice would be apreciate, since the only option we have now, it's to reinstall the whole server (OS and database) from a cold backup (copy of datafile,ctrl,...)
    Thanks
    Edited by: Naerbon on 22-mar-2011 8:11
    By the way, we've made some tests:
    - backup and restore with diferent versions of networker client and NMO (thought they were on latest release). Same result.
    - We've created a new instance on that server, blank, and registered new in the catalog. Same, backups, but cannot restore. With this, we've discarted the database issue...
    Edited by: Naerbon on 22-mar-2011 8:21

    Hi,
    yes, the problem was in the comunication between the Media Manager and the client. On the way to the MM, it was all ok, but in the opposite way, MM looked just for 'server' and couldn't find it. Adding the alias on the /etc/host, MM could find the 'server' as it has then 'server.domain'
    As for the scrip, I'll post here the script used for duplicating the prod database on a new installed desa machine. Solved the comunication issue, it worked more than fine.
    run
    set until time "to_date('Mar 20 2011 23:30:00','Mon DD YYYY HH24:MI:SS')";
    allocate channel ch1 type 'SBT_TAPE' parms 'ENV=(NSR_SERVER=bckservr.privada,NSR_CLIENT=origsrvr.privada, NSR_DATA_VOLUME_POOL=poolBCK)';
    allocate auxiliary channel ch2 type 'SBT_TAPE' parms 'ENV=(NSR_SERVER=bckservr.privada, NSR_CLIENT=origsrvr.privada, NSR_DATA_VOLUME_POOL=poolBCK)';
    DUPLICATE TARGET DATABASE TO DBSIDDES;
    With this script we duplicated de database with SID DBSIDPRO in the server origsrvr, to the server destsrvr with SID DBSIDDES. We used a set until time, so we take the last cold backup make this weekend.

Maybe you are looking for