Test RMAN restore

Hi,
I have 10.2.0.4 db with RMAN full backups every night at 9 PM.
I want to restore last night backup to test machine and applying archivelogs upto night 11.30 PM;
after restoring and applying the archive logs, recovered upto 11.30 PM. I want to know, whether recover is done upto 11.30 pm or night.
is there any sys related table which can have record history information like this.

In the test server
select LAST_CHANGE#, LAST_TIME
from v$datafile;Check for SCN also.
compare the above change# and time results with archived log creation time and change# in production server
Edited by: Street Hawk on Dec 24, 2008 2:53 PM

Similar Messages

  • Impact of Rman restore on test server.

    Hi,
    I am working on oracle 10g on linux 64 bit
    I have rman backup from production database. Name and SID of production database is Prod1 and i want to to check this RMAN backup after restoring it on the other test server (VMDB) for Disaster recovery.
    Now problem is that, i want to test it for DR, where i only need to run a script to restore and recover a database at the time of disaster in production site.
    My disaster recovery site will be in different network, so i can keep the name of database and sid same as of Production but is it possible that i could install the database in test database with same db name and same sid as of Production when Test and Production database are in same network.
    What will be the steps if i want to have a single script to restore database to new server. Do i need to create database with installation of Oracle on test machine or RMAN script will create database by itself.
    Do i need to set same dbid as of production in test database before restore. What can be the problems when i have production database running and i am restoring backup of same database on test machine with different IP address but same database name and SID and setting same DBID. I am not using catalog
    I have a full backup of database +Auto backup of controlfile and spfile
    Production database is being accessed by client via TOMCAT server.

    >
    is it possible that i could install the database in test database with same db name and same sid as of Production when Test and Production database are in same network.
    >Yes it is possible.
    >Do i need to create database with installation of Oracle on test machine or RMAN script will create database by itself.
    >
    There is no need to run CREATE DATABASE. Running the right RMAN RESTORE statements will recreate database control files, datafiles and redo log files.
    >What will be the steps if i want to have a single script to restore database to new server.
    >
    Note that in case of disaster recovery, you must make sure that RMAN backups are available from test server.
    You can try to apply following example to your environment:
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmrecov.htm#BRADV156
    >
    What can be the problems when i have production database running and i am restoring backup of same database on test machine with different IP address but same database name and SID and setting same DBID. I am not using catalog If you are not using RMAN catalog, risks are limited: you should take care at least:
    1. that Oracle Net configuration files (tnsnames.ora) used in production are not updated
    2. that any tool/script you are using to manage (monitor, backup, etc.) the test database does not interfere with the production database.

  • 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/

  • Block corruptioin after rman restore/recovery

    Thanks for taking my question!
    Oracle Enterprise Edition 11.1.0.7 on Windows 2008. Using Rman on-line backups COMPRESSED.
    Can anyone give me any ideas on why SYSAUX data block corruption should occur after a rman recovery?
    Below is my script. Am I missing something? Should I be physically removing the redo? Any ideas welcome?
    Thanks!
    Kathie
    rman> restore until seq = 123
    recover until seq = 123
    alter database open resetlogs;
    Background:
    I had to do a rman recovery the other day to restore our database back to the previous day. After the recovery the sysaux table became logically corrupted. I tried to fix data corruption with rman but it said it couldn't after reading thru 6 days of backups. I ended up deleting the database, recreating the database and restoring from an export takien a few hours prior.
    I now have a database to test rman recovery. Database has been up and rman backups (compressed) running for several days. I tried to recover back to previouse day and again SYSAUX has logical corruption. I tried to use Rman to recover data corruption but it failed.
    I deleted database and recreated it. Took several rman on-line backups (this time not compressed). Did 3rd recovery this time only a few hours back. This time everything worked - no sysaux block corruption but why? The only difference is the recovery used non compressed backups and recovery was a shorter time frame. why ???

    I agree the errors are not identical but I am going to stop performing compressed backups until I am sure that is not the issue.
    My first two recoveries had logical block corruption and this last one without compression set had no block corruption. I performed the same recovery process for all recoveries and the big difference was the successfull recovery did not have compressed backups. I checked v$database_block_corruption and it shows no errors. I also, performed a backup and verify to double check.
    The only issue I can see is below. I am hoping someone can confirm this is normal after "alter database open resetlogs". Can anyone verify that?
    Thanks!
    Kathie
    Thu Aug 27 10:17:49 2009
    alter database open resetlogs
    RESETLOGS after incomplete recovery UNTIL CHANGE 3587892
    Resetting resetlogs activation ID 3129052671 (0xba818dff)
    Thu Aug 27 10:17:50 2009
    Errors in file e:\oracle\diag\rdbms\cs90dev\cs90dev\trace\cs90dev_m000_2244.trc:
    ORA-00316: log 1 of thread 1, type 0 in header is not log file
    ORA-00312: online log 1 thread 1: 'E:\ORACLE\11.1.0\ORADATA\CS90DEV\REDO01.LOG'
    Errors in file e:\oracle\diag\rdbms\cs90dev\cs90dev\trace\cs90dev_m000_2244.trc:
    ORA-00316: log 2 of thread 1, type 0 in header is not log file
    ORA-00312: online log 2 thread 1: 'E:\ORACLE\11.1.0\ORADATA\CS90DEV\REDO02.LOG'
    Errors in file e:\oracle\diag\rdbms\cs90dev\cs90dev\trace\cs90dev_m000_2244.trc:
    ORA-00316: log 3 of thread 1, type 0 in header is not log file
    ORA-00312: online log 3 thread 1: 'E:\ORACLE\11.1.0\ORADATA\CS90DEV\REDO03.LOG'
    Thu Aug 27 10:17:53 2009
    Setting recovery target incarnation to 3

  • Question on RMAN restore

    Hello all,
    I'm able to successfully restore a database's datafiles from tape to the host where the database actually runs but when I try to restore the datafiles to a completely differnt host RMAN errors out saying that it could not locate the datafile on the tape.
    This is what I did....
    Database Name : DEV (live database)
    Host : dev_host
    From the dev_host, I initiated the rman restore script (which connects to the catalog) to restore just one of DEV's datafiles and it worked. The datafile got restored to dev_host.
    Let's now assume a disaster recovery scenario where dev_host becomes unusable and I have to restore the database from tape to a totally diffrent host and bring up the database. To simulate this I did the following.
    Database: DEV( shell database in mount state)
    Host : new_host
    I just created a pfile and mounted the DEV database on the "new_host". At this time we do not have any of the DEV's datafiles on the "new_host". We need to retore them from tape. While the database was in mount state, I initiated the restore script( which connects to the catalog) from "new_host" but rman failed with the following message.
    run {
    allocate channel t1 type SBT_TAPE;
    SEND 'NB_ORA_SERV=bkp200,NB_ORA_POLICY=ora-bkp200-dev_host';
    set newname for datafile '/d1/oradata/DEV/users_temp_01.dbf' to '/d2/oradata/DEV/users_temp_01.dbf';
    restore tablespace USERS_TEMP until time "TO_DATE('12/27/09','MM/DD/YY')";
    release channel t1;
    allocated channel: t1
    channel t1: sid=92 devtype=SBT_TAPE
    channel t1: Veritas NetBackup for Oracle - Release 6.5 (2007072323)
    sent command to channel: t1
    executing command: SET NEWNAME
    Starting restore at 01/08/2010 11:31:30
    channel t1: starting datafile backupset restore
    channel t1: specifying datafile(s) to restore from backup set
    restoring datafile 00004 to /d2/oradata/DEV/users_temp_01.dbf
    channel t1: reading from backup piece FULL_DEV_oel1s5u4
    ORA-19870: error reading backup piece FULL_DEV_oel1s5u4
    ORA-19507: failed to retrieve sequential file, handle="FULL_DEV_oel1s5u4", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
    Backup file <FULL_DEV_oel1s5u4> not found in NetBackup catalog
    failover to previous backup
    channel t1: starting datafile backupset restore
    channel t1: specifying datafile(s) to restore from backup set
    restoring datafile 00004 to /d2/oradata/DEV/users_temp_01.dbf
    channel t1: reading from backup piece FULL_DEV_o4l1rfsh
    ORA-19870: error reading backup piece FULL_DEV_o4l1rfsh
    ORA-19507: failed to retrieve sequential file, handle="FULL_DEV_o4l1rfsh", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
    Backup file <FULL_DEV_o4l1rfsh> not found in NetBackup catalog
    failover to previous backup
    Question: Can I not restore data from tape to a host other than where the database actually runs. I'm not sure why rman fails to restore data to a different host.
    Do I need to set something at the database level or Media Manager level? We are using Netbackup.
    Appreciate if you can give me some pointers.
    Thanks for your time.

    Can I not restore data from tape to a host other than where the database actually runs. I'm not sure why rman fails to restore data to a different host.
    Do I need to set something at the database level or Media Manager level? We are using Netbackup
    You can. For that you have to use Duplicate command. You have to duplicate the database, by replicating it from the backup.
    For that you have to have the same versions OS of both the prod (from which you took backup) and test (to which you are going to replicate). The auxiliary database (test) should be in nomount for this. There are tons of websites to give you step by step processes for this
    http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#i1006506
    Check the link

  • What are RMAN "RESTORE .. PREVIEW" and "BACKUP .. VALIDATE" pros.&cons.?

    On 10gR2 and Solaris 10 we want to test our rman backups periodically. Can I have your advices on which method and how we might use?
    BACKUP .. VALIDATE
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/strategy004.htm#sthref186
    RESTORE... PREVIEW
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/recov003.htm#sthref555
    Thank you.

    As they are for different purposes both can be used. You can get detailed information using PREVIEW like which files the backup set contains, which archivelogs will be used, etc...
    RMAN> restore database preview;
    Starting restore at 04.JAN.2008 15:56:41
    allocated channel: ORA_SBT_TAPE_1
    channel ORA_SBT_TAPE_1: sid=135 devtype=SBT_TAPE
    channel ORA_SBT_TAPE_1: WARNING: Oracle Test Disk API
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=143 devtype=DISK
    List of Backup Sets
    ===================
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    42      Full    861.50M    SBT_TAPE    00:02:51     25.DEC.2007 15:24:16
            BP Key: 39   Status: AVAILABLE  Compressed: NO  Tag: TAG20071225T152124
            Handle: 1ij4gdbl_1_1   Media: /sbt_tape,1ij4gdbl_1_1
      List of Datafiles in backup set 42
      File LV Type Ckp SCN    Ckp Time             Name
      1       Full 2676243    25.DEC.2007 15:21:02 /disk1/oradata/10G/datafile/o1_mf_system_3lyw58ct_.dbf
      2       Full 2676243    25.DEC.2007 15:21:02 /disk1/oradata/10G/datafile/o1_mf_undotbs1_3lj593qr_.dbf
      3       Full 2676243    25.DEC.2007 15:21:02 /disk1/oradata/10G/datafile/o1_mf_sysaux_3lj598gc_.dbf
      4       Full 2676243    25.DEC.2007 15:21:02 /disk1/oradata/10G/datafile/o1_mf_data_3lj7f81h_.dbf.tmp
    using channel ORA_SBT_TAPE_1
    using channel ORA_DISK_1
    List of Archived Log Copies
    Key     Thrd Seq     S Low Time             Name
    103     1    106     A 26.DEC.2007 09:15:19 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_26/o1_mf_1_106_3q4h8sqg_.arc
    104     1    107     A 26.DEC.2007 13:38:01 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_26/o1_mf_1_107_3q5dxp9w_.arc
    105     1    108     A 26.DEC.2007 22:04:05 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_27/o1_mf_1_108_3q7hkpyw_.arc
    106     1    109     A 27.DEC.2007 17:01:09 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_27/o1_mf_1_109_3q7jcvq3_.arc
    107     1    110     A 27.DEC.2007 17:15:07 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_27/o1_mf_1_110_3q7jl37r_.arc
    108     1    111     A 27.DEC.2007 17:18:27 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_27/o1_mf_1_111_3q7jo6hk_.arc
    109     1    112     A 27.DEC.2007 17:20:06 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_28/o1_mf_1_112_3q883z06_.arc
    110     1    113     A 28.DEC.2007 00:00:30 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_28/o1_mf_1_113_3qbol2q6_.arc
    111     1    114     A 28.DEC.2007 22:02:09 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_29/o1_mf_1_114_3qcknl4s_.arc
    112     1    115     A 29.DEC.2007 06:01:20 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_29/o1_mf_1_115_3qfhjq8k_.arc
    113     1    116     A 29.DEC.2007 23:37:27 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_30/o1_mf_1_116_3qj281j8_.arc
    114     1    117     A 30.DEC.2007 23:09:20 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2007_12_31/o1_mf_1_117_3qllqy7d_.arc
    115     1    118     A 31.DEC.2007 22:03:09 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2008_01_01/o1_mf_1_118_3qmgq0w1_.arc
    116     1    119     A 01.JAN.2008 06:00:32 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2008_01_01/o1_mf_1_119_3qochbm6_.arc
    117     1    120     A 01.JAN.2008 23:17:30 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2008_01_02/o1_mf_1_120_3qq2r4wj_.arc
    118     1    121     A 02.JAN.2008 15:00:51 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2008_01_02/o1_mf_1_121_3qq3f0v1_.arc
    119     1    122     A 02.JAN.2008 15:12:00 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2008_01_02/o1_mf_1_122_3qq3jkpq_.arc
    120     1    123     A 02.JAN.2008 15:13:53 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2008_01_03/o1_mf_1_123_3qr53rcb_.arc
    121     1    124     A 03.JAN.2008 00:47:19 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2008_01_03/o1_mf_1_124_3qtj22bp_.arc
    122     1    125     A 03.JAN.2008 22:06:25 /disk1/app/oracle/flash_recovery_area/10G/archivelog/2008_01_04/o1_mf_1_125_3qvtmx5c_.arc
    Media recovery start SCN is 2676243
    Recovery must be done beyond SCN 2676243 to clear data files fuzziness
    Finished restore at 04.JAN.2008 15:58:59With VALIDATE you can be sure that you will be able to use that backup to restore your database as it reads all the files.
    RMAN> restore database validate;
    Starting restore at 04.JAN.2008 15:59:06
    using channel ORA_SBT_TAPE_1
    using channel ORA_DISK_1
    channel ORA_SBT_TAPE_1: starting validation of datafile backupset
    channel ORA_SBT_TAPE_1: reading from backup piece 1ij4gdbl_1_1
    channel ORA_SBT_TAPE_1: restored backup piece 1
    piece handle=1ij4gdbl_1_1 tag=TAG20071225T152124
    channel ORA_SBT_TAPE_1: validation complete, elapsed time: 00:00:38
    Finished restore at 04.JAN.2008 15:59:46I find both of them useful.

  • To test RMAN

    Hi,
    in order to test my RMAN backups I want to do this:
    1-delete a controle file (should be the DB be stopped or not).
    2-Launch RMAN restore/recovery (should be the DB be mounted or open also?). And I need the script to restore/recover just a control file (would you please give me that ??).
    I wonder if this works or not ?
    Many thanks before.

    What version of oracle you are on and what OS??
    Which type of backups you are taking (incr/full/cold/hot)?
    1-delete a controle file (should be the DB be stopped or not).On a test server just blow away the control file while the DB is up and let see what happen..
    Daljit Singh

  • Why is Oracle RMAN restoring a datafile to a different diskgroup?

    Hello,
    When I was trying an RMAN restore of a datafile, I found it is restoring the datafile to a new location. Why is Oracle restoring a datafile to a different diskgroup instead of restoring to the original diskgroup where the datafile was originally present?
    1) I have a datafile '+DATA3/slob1/datafile/undotbs2.260.819992871' which is on +DATA3 diskgroup
    2) I am taking a backup on to +FRA diskgroup
    3) I then offline and delete the datafile 5 using asmcmd to simulate the loss of a datafile
    4) I perform restore and recover of datafile 5 from the backup set on +FRA
    5) Unfortunately the datafile got restored on to +FRA instead of +DATA3. I realize that the file name can change because it is going to be a new file on ASM but I would assume this will be on the same diskgroup atleast since the control file has it pointing to '+DATA3/slob1/datafile/undotbs2.260.819992871' before restoration.
    When I tested on file system, this gets restored on to file system correctly.
    Anyone has any idea why the datafile was restored on to +FRA instead of +DATA3?
    Below is the screen output of what I did.
    [oracle@ltc-rac02[SLOB11]:/home/oracle ]$ rman target /
    Recovery Manager: Release 11.2.0.2.0 - Production on Thu Jul 11 17:09:21 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: SLOB1 (DBID=4051414893)
    RMAN> report schema;
    using target database control file instead of recovery catalog
    Report of database schema for database with db_unique_name SLOB1
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace           RB segs Datafile Name
    1    720      SYSTEM               ***     +DATA3/slob1/datafile/system.258.819992865
    2    590      SYSAUX               ***     +DATA3/slob1/datafile/sysaux.259.819992869
    3    24430    UNDOTBS1             ***     +DATA3/slob1/datafile/undotbs1.256.819992725
    4    5        USERS                ***     +DATA3/slob1/datafile/users.262.819992873
    5    25       UNDOTBS2             ***     +DATA3/slob1/datafile/undotbs2.260.819992871
    6    10824    IOPS                 ***     +DATA3/slob1/datafile/iops.257.820445551
    RMAN> backup as backupset datafile 5 format '+FRA';
    Starting backup at 11-07-2013 17:10:03
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=687 device type=DISK
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    input datafile file number=00005 name=+DATA3/slob1/datafile/undotbs2.260.819992871
    channel ORA_DISK_1: starting piece 1 at 11-07-2013 17:10:04
    channel ORA_DISK_1: finished piece 1 at 11-07-2013 17:10:05
    piece handle=+FRA/slob1/backupset/2013_07_11/nnndf0_tag20130711t171003_0.256.820516205 tag=TAG20130711T171003 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 11-07-2013 17:10:05
    RMAN> SQL 'alter database datafile 5 offline';
    using target database control file instead of recovery catalog
    sql statement: alter database datafile 5 offline
    RMAN> quit
    Recovery Manager complete.
    [oracle@ltc-rac02[SLOB11]:/home/oracle ]$ asmcmd rm +DATA3/slob1/datafile/undotbs2.260.819992871
    [oracle@ltc-rac02[+ASM2]:/home/oracle ]$ asmcmd ls -l  +DATA3/slob1/datafile/undotbs2.260.819992871
    ASMCMD-08002: entry 'undotbs2.260.819992871' does not exist in directory '+DATA3/slob1/datafile/'
    [oracle@ltc-rac02[+ASM2]:/home/oracle ]$ . oraenv
    ORACLE_SID = [+ASM2] ? SLOB11
    The Oracle base remains unchanged with value /u01/app/oracle
    [oracle@ltc-rac02[SLOB11]:/home/oracle ]$ rman target /
    Recovery Manager: Release 11.2.0.2.0 - Production on Thu Jul 11 17:12:27 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: SLOB1 (DBID=4051414893)
    RMAN> report schema;
    using target database control file instead of recovery catalog
    Report of database schema for database with db_unique_name SLOB1
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace           RB segs Datafile Name
    1    720      SYSTEM               ***     +DATA3/slob1/datafile/system.258.819992865
    2    590      SYSAUX               ***     +DATA3/slob1/datafile/sysaux.259.819992869
    3    24430    UNDOTBS1             ***     +DATA3/slob1/datafile/undotbs1.256.819992725
    4    5        USERS                ***     +DATA3/slob1/datafile/users.262.819992873
    5    0        UNDOTBS2             ***     +DATA3/slob1/datafile/undotbs2.260.819992871
    6    10824    IOPS                 ***     +DATA3/slob1/datafile/iops.257.820445551
    RMAN> restore datafile 5;
    Starting restore at 11-07-2013 17:12:43
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=687 device type=DISK
    channel ORA_DISK_1: starting datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_DISK_1: restoring datafile 00005 to +DATA3/slob1/datafile/undotbs2.260.819992871
    channel ORA_DISK_1: reading from backup piece +FRA/slob1/backupset/2013_07_11/nnndf0_tag20130711t171003_0.256.820516205
    channel ORA_DISK_1: piece handle=+FRA/slob1/backupset/2013_07_11/nnndf0_tag20130711t171003_0.256.820516205 tag=TAG20130711T171003
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
    Finished restore at 11-07-2013 17:12:46
    RMAN> report schema;
    Report of database schema for database with db_unique_name SLOB1
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace           RB segs Datafile Name
    1    720      SYSTEM               ***     +DATA3/slob1/datafile/system.258.819992865
    2    590      SYSAUX               ***     +DATA3/slob1/datafile/sysaux.259.819992869
    3    24430    UNDOTBS1             ***     +DATA3/slob1/datafile/undotbs1.256.819992725
    4    5        USERS                ***     +DATA3/slob1/datafile/users.262.819992873
    5    25       UNDOTBS2             ***     +FRA/slob1/datafile/undotbs2.257.820516365
    6    10824    IOPS                 ***     +DATA3/slob1/datafile/iops.257.820445551
    RMAN> recover datafile 5;
    Starting recover at 11-07-2013 17:13:37
    using channel ORA_DISK_1
    starting media recovery
    media recovery complete, elapsed time: 00:00:01
    Finished recover at 11-07-2013 17:13:39
    RMAN> SQL 'alter database datafile 5 online';
    sql statement: alter database datafile 5 online
    Thanks,
    Rijesh

    Hello,
    Can you check what is the value set for the parameter "db_create_file_dest" on the database ?
    Regards,
    Shivananda

  • RMAN restore fails due to space issue

    Hi,
    My database size is 225 GB . I m restoring the backupfiles using RMAN from production backup to the test instance.During restore process rman failed due to space issue.When the error occurred rman restored around 122 GB.
    Now i increased the free space in server.So now my doubt is i have to delete the restored files (122GB) and start the restore process again or RMAN will automatically skip the the restored file and resume the process from where it was failed ?
    DB Version -11.2.0.2
    RMAN error
    channel CH2: ORA-19870: error while restoring backup piece /ebs/DEV/backup/GOLD_db_t801111628_s10788_p1.rman
    ORA-19502: write error on file "/ebs/DEV/bin/db/apps_st/data/a_txn_data11.dbf", block number 3492608 (block size=8192)
    ORA-27072: File I/O error
    Linux-x86_64 Error: 28: No space left on device
    Additional information: 4
    Additional information: 3492608
    Additional information: -1
    Thanks

    When you start the restore from the failure, RMAN knows whcih are restored and it will check file headers. if the headers match, it will skip restoring the files.
    Hope this helps,
    Regards,
    http://www.oracleracexpert.com
    RMAN Debug and Trace
    http://www.oracleracexpert.com/2012/11/rman-debug-and-trace.html
    Time for Change: Migrate your Non-RAC Database to RAC
    http://www.oracleracexpert.com/2012/10/time-for-change-migrate-your-non-rac.html

  • RMAN restore from older full backup.

    version. 10gR2
    We take full backup every Wednesday (7/2, 7/9, 7/16 and 7/23). I need to restore the database from 7/2 backup. No recovery is needed. How do I do that. Thanks for the help.

    You can specify the BACKUPSET or TAG you want to restore from on the restore command.
    RESTORE ... FROM BACKUPSET
    RESTORE ... FROM TAG = '..'
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta051.htm#sthref796
    Why do you need that specific backup? If you were restoring to a point in time before the 7/9 backup then RMAN will work out to use the 7/9 backup. If no recovery is needed I assume you're testing a restore using VALIDATE and/or PREVIEW?

  • RMAN RESTORE FROM TAPE DIRECTLY

    Dear All,
    We are in the process of testing the restore functionality of our production Db. The Backup is taken by Rman which is integrated with Netbackp. The backup files are directly going to the Tape storage.
    Scenario
    1. We need to restore the backup into a different host which doesn't have access to the Netbackup server and Production Db (Its a DR site)(DR excercise).
    2. System team can provide the tape on the standby server.
    Concerns
    1. How can i proceed with restore in the secondary host.
    2. Is there any way to read the backup pieces from Tape and catalog it using rman
    If any come across this scenario, kindly share me the solution.
    Thanks in Advance

    If it is a NETBACKUP device, you can't restore without NETBACKUP. Well, there have been articles written on howto, but they all seem to end in "I just installed netbackup, imported the tape and restored from there."
    I NEVER, EVER backup directly to tape - always to disk - most frequently with enough space to store 2 full backups plus enough archivelog file space to span before and after those backups, then sweep the backup location to tape. Recovering from tape can take 50-150% longer. If you use NETBACKUP, install it where it is needed. Going "cheap" could potentially cost the company more in downtime, than the licenses would have costs. If you NEED data, you NEED licenses to run the tools required to recover from a disaster.
    The sad part is that should a catastrophic failure occur, it is usually at the most inopportune time.
    Companies should treat their data [required to run their business] with the same security and backup strategies as if it was cash in the bank. I have seen a very large company literally throw away over $8M in unrecoverable orders due to impatience with bringing a system back online and not allowing the proper recovery processes to occur. Not having the proper licenses would fall into this category. Can your company afford to lose $8M in income?
    Sounds like your company really needs a Business Continuity Review of your DR processes and procedures.
    onedbguru - CISSP.

  • RMAN Restore from cold backup ?

    Hi ,
    I am trying to restore the database from production db using the RMAN cold Backup. Both the prod and test(Restore database) are on the same machine. And also I wanted to have the restore db name should be different.
    And the restore db name should be different. What are the options I have ?

    refer the thread:-
    RMAN Restore using RMAN COLD Backup!!
    RMAN Restore using RMAN COLD Backup!!

  • RMAN restore from a particular backupset

    hi
    how do i instruct RMAN to restore data from a particular backupset. for example, if i have last 7 days backup sets (plus archivelog) available in my backup location, how do i instruct RMAN to use only the latest backupset for the restoration purpose. i've a testing database on another host which i have to refresh using RMAN backup. however, i can't move all the 7 days backupsets from the production host server to the testing host due to insufficient space. is it possible to use only the latest backupset and instruct RMAN to use.
    thanks in advance.
    Edited by: user13133425 on May 25, 2012 12:24 PM

    You need to incomplete recovery. You can use one of the methods below.
    Time-Based incomplete recovery:
    $ sqlplus "/ as sysdba"
    SQL> shutdown abort;
    SQL> startup mount;
    $ rman target / catalog_user/catalog_user_password@catalogdb
    RMAN> restore database until time "to_date('06/05/11 12:0:00','DD/MM/YY HH24:MI:SS')";
    RMAN> recover database until time "to_date('06/05/11 12:0:00','DD/MM/YY HH24:MI:SS')";
    SQL> alter database open resetlogs;
    SCN-Based incomplete recover:
    $ sqlplus "/ as sysdba"
    SQL> shutdown abort;
    SQL> startup mount;
    $ rman target / catalog_user/catalog_user_password@catalogdb
    RMAN> restore database until scn 1000;
    RMAN> recover database until scn 1000;
    SQL> alter database open resetlogs;
    Archive log sequence based incomplete recovery:
    $ sqlplus "/ as sysdba"
    SQL> shutdown abort;
    SQL> startup mount;
    $ rman target / catalog_user/catalog_user_password@catalogdb
    RMAN> restore database until sequence 9923;
    RMAN> recover database until sequence 9923;
    SQL> alter database open resetlogs;
    Talip Hakan Ozturk
    http://taliphakanozturken.wordpress.com/

  • RMAN restore from remote backup

    I need to test the restore from the backup which is copied to the remote server. I backup the database to the local disk and copy the backup set to the remote server. Then I delete the local backup and restore from remote but it fails. RMAN still tries to find the backup from local server.
    RMAN> run{
    2> allocate channel c1 device type disk format '\\RemoteBackup\%U';
    3> restore datafile 1;
    4> recover datafile 1;}
    using target database control file instead of recovery catalog
    allocated channel: c1
    channel c1: SID=154 device type=DISK
    Starting restore at 23-NOV-10
    channel c1: starting datafile backup set restore
    channel c1: specifying datafile(s) to restore from b
    channel c1: restoring datafile 00001 to D:\ORADATA\HCMTRN\DBS\SYSTEM01.DBF
    channel c1: reading from backup piece \\LocalBackup\1SLTN8A4_1_1
    channel c1: ORA-19870: error while restoring backup piece \\LocalBackup\1SLTN8A4_1_1
    ORA-19505: failed to identify file "\\LocalBackup\1SLTN8A4_1_1"
    ORA-27041: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.

    AZ wrote:
    I need to test the restore from the backup which is copied to the remote server. I backup the database to the local disk and copy the backup set to the remote server. Then I delete the local backup and restore from remote but it fails. RMAN still tries to find the backup from local server.
    RMAN> run{
    2> allocate channel c1 device type disk format '\\RemoteBackup\%U';
    3> restore datafile 1;
    4> recover datafile 1;}
    using target database control file instead of recovery catalog
    allocated channel: c1
    channel c1: SID=154 device type=DISK
    Starting restore at 23-NOV-10
    channel c1: starting datafile backup set restore
    channel c1: specifying datafile(s) to restore from b
    channel c1: restoring datafile 00001 to D:\ORADATA\HCMTRN\DBS\SYSTEM01.DBF
    channel c1: reading from backup piece \\LocalBackup\1SLTN8A4_1_1
    channel c1: ORA-19870: error while restoring backup piece \\LocalBackup\1SLTN8A4_1_1
    ORA-19505: failed to identify file "\\LocalBackup\1SLTN8A4_1_1"
    ORA-27041: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.So where is "\\LocalBackup\1SLTN8A4_1_1" ?? The OS is telling rman that he (the OS) cannot find the requested file, \\LocalBackup\1SLTN8A4_1_1.
    Sounds like when you "restored" the local backup from the remote, you missed something.

  • Test RMAN consistent "as copy" backup outside of ASM (RAC)

    Hi!
    We have create RMAN consistent backup in our RAC (ASM with FRA) environement.
    Backup steps looks like:
    alter system set cluster_database=false scope=spfile sid='HAC4';
    srvctl stop database -d HACThen we start RMAN backup script like (database is shut downed before):
    run {
    startup mount;
    allocate channel t1 type disk format '/u01/rman_backup/HAC/cold_backup/HAC_%U';
    allocate channel t2 type disk format '/u01/rman_backup/HAC/cold_backup/HAC_%U';
    SET CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u01/rman_backup/HAC/cold_backup/HAC_%F_ctl';
    backup as copy database include current controlfile;
    }After backup we perform:
    alter system set cluster_database=true scope=spfile sid='HAC4';
    shutdown immediate;and later
    srvctl start database -d HACBackup files from this backup are placed on local disk area accessed by node4, where HAC4 SID is on.
    We transfer those backup files to tape on some schedule basis...
    Now we want to test this backup.
    Scenario:
    Because we have consistent backup we think that we can perform restore from it (from that disk files) and from it ONLY!
    Our problem is that all the time restore is using ASM files, so we are not sure is our backup valid.
    So, how to prevent RMAN restore/recover process from using any ASM file - just to use our consistent backup data?
    Please some script example for that....
    Our config:
    Oracle 10gR2.0.4 PS3 (CRS, ASM, database)
    Linux Rhel 5.3 IA64 on "raw devices" (not raw disks)
    THX
    Damir

    We'll...look this restore for our "as copy" consitent backup. Assume that ${BKUP_DEST} is env variable in bash script which points to same place where backup was done. Here is restore part:
    run {
    startup force nomount;
    RESTORE CONTROLFILE from '${BKUP_DEST}/HAC_20090916T152408_u5kpd8le_1_1_post_ctl';
    alter database mount;
    sql "alter session set NLS_DATE_LANGUAGE=American";
    allocate channel t1 type disk format  '${BKUP_DEST}/HAC_%U';
    allocate channel t2 type disk format  '${BKUP_DEST}/HAC_%U';
    restore database FROM TAG='TAG20090916T152532' ;
    release channel t1;
    release channel t2;
    }where
    TAG='TAG20090916T152532'is tag that was done in backup. This is done from "ac copy" backup. But when we run:
    run {
    allocate channel t1 type disk format  '${BKUP_DEST}/HAC_%U';
    allocate channel t2 type disk format  '${BKUP_DEST}/HAC_%U';
    recover database FROM TAG='TAG20090916T152532' ;
    release channel t1;
    release channel t2;
    }RMAN is using archive logs from ASM....and we want to use only files from "as copy" backup-remember we test "as copy" consistent backup.
    If we do not run "recover" part then we cannot open database!?
    (i.e. alter database open resetlogs).
    Hope now is all more clear..
    Regards,
    Damir
    P.S.
    Either our backup script is not OK or restore/recover script is bad....
    Unfortunatelly we do not know what?

Maybe you are looking for

  • Page break/empty page issue

    Hi, I have big report with 4 data sections. This is the structure of the report. Main Frame --> Repeating Frame -->Frame1 - PageBreak After - Yes Some Fields -->Frame2 - PageBreak After - Yes Some Fields --> Repeating Frame -->Frame3 - PageBreak Afte

  • Can't have more than one photo desktop..

    I am merely trying to have more than one photo on my desktop. I select the event in iphoto with the pictures, hit share and set desktop. Nothing. One picture makes it on. Settings for desktop pop up and then nothing happens... Is there something wron

  • Removing admin password form Access 2003 database front end and back end

    We have a legacy database that has been passed down from the original creator, who is no longer with the organization. It was created in Access 2003. It has a front end and a back end. The original admin password can not be located and we are in the

  • Drive won't read any dvd .. ejects it automatically after spinin some time

    My MBP is just some 2 months old and suddenly it has stopped recongnizing/reading the dvds, they dont even show up on the desktop, dont even read a blank dvd. it spins for some time with a noise and then ejects it out by itself. it is doing this for

  • Two entries for each archive log in v$archived_log

    Hi, I have noticied that there are two entries for each archive log. Why this is so...? I have fired following command. ================== set pages 300 set lines 120 ALTER SESSION SET nls_date_format='DD-MON-YYYY HH24:MI:SS'; SELECT sequence#, first