Problem in performing multiple Point-In-Time Database Recovery using RMAN

Hello Experts,
I am getting an error while performing database point in time recovery multiple times using RMAN. Details are as follows :-
Environment:
Oracle 11g, ASM,
Database DiskGroups : DG_DATA (Data files), DG_ARCH(Archive logs), DG_REDO(Redo logs Control file).
Snapshot DiskGroups :
Snapshot1 (taken at 9 am): SNAP1_DATA, SNAP1_ARCH, +SNAP1_REDO
Snapshot2 (taken at 10 am): SNAP2_DATA, SNAP2_ARCH, +SNAP2_REDO
Steps performed for point in time recovery:
1. Restore control file from snapshot 2.
     RMAN> RESTORE CONTROLFILE from '+SNAP2_REDO/orcl/CONTROLFILE/Current.256.777398261';
2. For 2nd recovery, reset incarnation of database to snapshot 2 incarnation (Say 2).
3. Catalog data files from snapshot 1.
4. Catalog archive logs from snapshot 2.
5. Perform point in time recovery till given time.
     STARTUP MOUNT;
     RUN {
          SQL "ALTER SESSION SET NLS_DATE_FORMAT = ''dd-mon-yyyy hh24:mi:ss''";
          SET UNTIL TIME "06-mar-2013 09:30:00";
          RESTORE DATABASE;
          RECOVER DATABASE;
          ALTER DATABASE OPEN RESETLOGS;
Results:
Recovery 1: At 10.30 am, I performed first point in time recovery till 9:30 am, it was successful. Database incarnation was raised from *2* to *3*.
Recovery 2: At 11:10 am, I performed another point in time recovery till 9:45 am, while doing it I reset the incarnation of DB to *2*, it failed with following error :-
Starting recover at 28-FEB-13
using channel ORA_DISK_1
starting media recovery
media recovery failed
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 03/06/2013 11:10:57
ORA-00283: recovery session canceled due to errors
RMAN-11003: failure during parse/execution of SQL statement: alter database recover if needed
start until time 'MAR 06 2013 09:45:00'
ORA-00283: recovery session canceled due to errors
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: '+DG_REDO/orcl/onlinelog/group_1.257.807150859'
ORA-17503: ksfdopn:2 Failed to open file +DG_REDO/orcl/onlinelog/group_1.257.807150859
ORA-15012: ASM file '+DG_REDO/orcl/onlinelog/group_1.257.807150859' does not exist
Doubts:
1. Why did recovery failed 2nd time, but not 1st time and why is RMAN looking for online redo log group_1.257.807150859 in 2nd recovery ?
3. I tried restoring control file from AutoBackup, in that case both 1st and 2nd recovery succeeded.
However for this to work, I always need to keep the AutoBackup feature enabled.
How reliable is control file AutoBackup ? Is there any alternative to using AutoBackup, can I restore control file from snapshot backup only ?
4. If I restore control file from AutoBackup, then from what point of time/SCN does RMAN restores the control file ?
Please help me out in this issue.
Thanks.

992748 wrote:
Hello experts,
I'm little newbie to RMAN recovery. Please help me in these doubts:
1. If I have datafiles, archive logs & control files backup, but current online REDO logs are lost, then can I perform incomplete database recovery ?yes, if you have backups of everything else
2. Till what maximum time/scn can incomplete database recovery be performed ??Assuming the only thing lost is the redo logs, you can recover to the last scn in the last archivelog.
3. What is role of online REDO logs in incomplete database recovery ? They provide the final redo changes - the ones that have not been written to archivelogs
Are they required for incomplete recovery ?It depends on how much incomplete recovery you need to do.
Think of all of your changes as a constant stream of redo information. As a redolog fills, it is copied to archive, then (eventually) reused. over time, your redo stream is in archivelog_1, continuing into archvivelog_2, then to 3, and eventually, when you get to the last archivelog, into the online redo. A recovery will start with the oldest necessary point in the redo stream and continue forward. Whether or not you need the online redo for a PIT recovery depends on how far forward you need to recover.
But you should take every precaution to prevent loss of online redo logs .. starting with having multiple members in each redo group ... and keeping those multiple members on physically separate disks.

Similar Messages

  • Doubt about database point in time recovery using rman

    Hi Everyone,
    I have been practising various rman restore and recovery scenarios . I have a doubt regarding database point in time recovery using rman. Imagine i have a full database backup including controlfile scheduled to run at 10 PM everyday. today is 20th dec 2013. imagine i want to restore the database to a prior point in time ( say 18th dec till 8 AM). so i would restore all the datafiles  from 17th night's backup and apply archives till 8 AM of 18th dec . in this scenario should i restore the controlfile too from 17th dec bkp ( i am assuming yes we should ) or can we use the current controlfile ( assuming it is intact). i found the below from oracle docs.
    Performing Point-in-Time Recovery with a Current Control File
    The database must be closed to perform database point-in-time recovery. If you are recovering to a time, then you should set the time format environment variables before invoking RMAN. The following are sample Globalization Support settings:
    NLS_LANG = american_america.us7ascii
    NLS_DATE_FORMAT="Mon DD YYYY HH24:MI:SS"
    To recover the database until a specified time, SCN, or log sequence number:
    After connecting to the target database and, optionally, the recovery catalog database, ensure that the database is mounted. If the database is open, shut it down and then mount it:
    2.  SHUTDOWN IMMEDIATE;
    3.  STARTUP MOUNT;
    4. 
    Determine the time, SCN, or log sequence that should end recovery. For example, if you discover that a user accidentally dropped a tablespace at 9:02 a.m., then you can recover to 9 a.m.--just before the drop occurred. You will lose all changes to the database made after that time.
    You can also examine the alert.log to find the SCN of an event and recover to a prior SCN. Alternatively, you can determine the log sequence number that contains the recovery termination SCN, and then recover through that log. For example, query V$LOG_HISTORY to view the logs that you have archived. 
    RECID      STAMP      THREAD#    SEQUENCE#  FIRST_CHAN FIRST_TIM NEXT_CHANG
             1  344890611          1          1      20037 24-SEP-02      20043
             2  344890615          1          2      20043 24-SEP-02      20045
             3  344890618          1          3      20045 24-SEP-02      20046
    Perform the following operations within a RUN command:
    Set the end recovery time, SCN, or log sequence. If specifying a time, then use the date format specified in the NLS_LANG and NLS_DATE_FORMAT environment variables.
    If automatic channels are not configured, then manually allocate one or more channels.
    Restore and recover the database.
      The following example performs an incomplete recovery until November 15 at 9 a.m. 
    RUN
      SET UNTIL TIME 'Nov 15 2002 09:00:00';
      # SET UNTIL SCN 1000;       # alternatively, specify SCN
      # SET UNTIL SEQUENCE 9923;  # alternatively, specify log sequence number
      RESTORE DATABASE;
      RECOVER DATABASE;
    If recovery was successful, then open the database and reset the online logs:
    5.  ALTER DATABASE OPEN RESETLOGS;
    I did not quiet understand why the above scenario is using current controlfile as the checkpoint scn in the current controlfile and the checkpoint scn in the datafile headers do not match after the restore and recovery. Thanks in Advance for your help.
    Thanks
    satya

    Thanks for the reply ... but what about the checkpoint scn in the controlfile . my understanding is that unless the checkpoint scn in the controlfile and datafiles do not match the database will not open. so assuming the checkpoint scn in my current controlfile is 1500 and i want to recover my database till scn 1200. so the scn in the datafiles (which is 1200) is not not matching with the scn in the controlfile(1500). so will the database open in such cases.
    Thanks
    Satya

  • Can we do a fresh install of TES 6.2.1 on a new server, but point to an database currently used by the older version (v5.3.x)

    The current database is 2.5 gb, but it is already on SQL Server 2008, and doesn’t need to be upgraded.
    In reading the documentation, it looks like the installer can install a fresh copy, which I’m assuming creates the requisite tables in the database.  It can also update an existing install, along with updating the database table structure.  What we weren’t sure of was if it could do a fresh install on a new server, but point to an database currently used by the older version of tidal.  It does say ‘The database modifications are performed when the master is first started after the installation.’ in the upgrade section of 6.2.1 Quickstart Page 6-5.  Hopefully that works regardless of if it was an upgrade or a fresh install.

    We worked with one of their partners gssinfotech to create a custom runbook for "upgrade in place"
    I think you might have to go to SQL2012 with 6.2.1 (there's a ton of benefits like always on that make BCP/DR with Tidal very smooth.) We've been Tidal 6 /SQL2012 for a while now so I forget. we're about 80% done with our 5.3.1 conversion
    We restore our 5.3.1 admiral database to a sandbox SQL2012 server, run some cleanup script (if not upgrade in place, don't forget to set queue to zero and disable all jobs)
    We installed a tidal Master then run every major rev and point to that database. (6.0,6.1,6.2,6.2 sp1)
    The database gets upgraded during the process (we have some trouble with our "older" 531 so we do the same thing each time)
    We then can use transporter to transport "legacy" 531 jobs to our pristine Tidal 6.2.1 (non-prod ) environment so we can take advantage of mapping files, etc. to switch things as needed
    This gives a lot of flexibility to moving things in when one piece or job set at a time.. we use it to move job frameworks into nonprod Tidal 6 so that developers and other groups can review / asses / rewrite / test /  their jobs on tidal 6.
    Marc

  • Perform multiplication, division n get remainder without using arithmetic o

    hello,
    perform multiplication, division n get remainder without using arithmetic operators
    thanks in advance
    manasi

    ram.manasi wrote:
    i can program myself however i am new to programming and have no clue how to perform arithmmetic operations without using arithmetic operators n would like to know how to go about itwell, we're not your private code-monkeys nor are we tutors. We are usually best at answering specific questions but many of us get our hackles up when someone simply demands an answer. I suggest that you find out what your teacher is expecting of you here. I would guess that this involves some recursion, but it is up to you to find out. Do some work. Then if you have a specific question, please feel free to come back and ask for help. nicely.

  • Differences between using Data Pump to back up database and using RMAN ?

    what are differences between using Data Pump to back up database and using RMAN ? what is CONS and PROS ?
    Thanks

    Search for Database backup in
    http://docs.oracle.com/cd/B28359_01/server.111/b28318/backrec.htm#i1007289
    In short
    RMAN -> Physical backup.(copies of physical database files)
    Datapump -> Logical backup.(logical data such as tables,procedures)
    Docs for RMAN--
    http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmcncpt.htm#
    Docs for Datapump
    http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_overview.htm
    Edited by: Sunny kichloo on Jul 5, 2012 6:55 AM

  • Need help with Backup Recovery using Rman - Point in Time.

    Hi all,
    I am trying to recover my database to a certain point in time. Here are the details below.
    Oracle database version is. 11G R1. on 2 Node RAC. OS is AIX.
    Database name is Sales.
    Due to a mistake by the Application team, the database is written over by bad data. Now I have to restore the database in to a point in time, where the database was good.
    For this, i took a whole (full) RMAN backup, everything, all the archivelog files and Controlfiles as well.
    After doing this, i dropped the entire database. So now everything is clean.
    Now i have to restore and recover the database to this point in time.. 03/16/2011 12:45:00
    Please guide.
    The backups are located at.. /backup/sales/rman/
    I am trying various things, but each time i get the msg..
    ORA-01507: database not mounted
    I understand.. the reason for this message is the controlfile does not exist.. as the database is in mount mode. But as i said.. i have dropped the database in order to proceed with entire restoration.
    But i have taken a whole backup.. which also includes the controlfiles + archivefiles.
    Please guide.. with proper steps and commands.

    Hi,
    Priror to start with restore and recovery - Try to restore the control file from backups "/backup/sales/rman/"
    Then further you can mount the db and further carry on with recovery (catalog the backups prior to recovery)
    - Pavan Kumar N

  • Inserting multiple records in to database table using webdynpro abap

    Hi all,
    I have created a username inputfield,a button and a table
    with one coloumn.
    If i enter  names in the input field then the values should be
    displayed in that table.
    Even i have got the answer i am not able to insert
    the values in to database(ztable) table.
    i.e. only one value(1st) was inserted the second value was
    not inserted ....
    so kindly send me the coding to insert multiple records
    into the database table......
    by,
    ranjith

    hi Ranjith,
    If you want to insert multiple records from the webdynpro view table to database table then try the following code.
    DATA lo_nd_tablenode TYPE REF TO if_wd_context_node.
      DATA lo_el_tablenode TYPE REF TO if_wd_context_element.
      DATA ls_tablenode TYPE wd_this->element_tablenode.
      DATA it_tablenode LIKE STANDARD TABLE OF ls_tablenode.
      navigate from <CONTEXT> to <tablenode> via lead selection
      lo_nd_tablenode = wd_context->get_child_node( name = wd_this->wdctx_tablenode ).
      get element via lead selection
      lo_el_tablenode = lo_nd_tablenode->get_element(  ).
      get all declared attributes
      lo_nd_tablenode->get_static_attributes_table(
      IMPORTING
        table = it_tablenode ).
    MODIFY databasetablename FROM TABLE  it_tablenode.
    here it_tablenode is the internal table which holds the value from webdynpro view..
    Regards,
    Shamila.

  • Problem in database recovery thru RMAN

    I am completely new to RMAN.
    I took full backup thru RMAN and as per suggested by some document, I deleted controlfile, datafile and SPfile in order to learn recovery thru RMAN.
    now, when I try to connect to RMAN catalog I'm getting the following error "
    RMAN> connect catalog rman/rman@test9i
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-04004: error from recovery catalog database: ORA-01033: ORACLE initializat
    on or shutdown in progress"
    can anybody help me in connecting and recovering the database.

    I thinnk there may be user connected while performing a shutdown.Disconnect the user and stop the listner then you perform the recovery
    correct me if i am wrong

  • Error in Database backup using RMAN.

    Hi
    While taking full online backup using RMAN i got the following error.
    ORA-19566: exceeded limit of 0 corrupt blocks for file /oracle/DEV/sapdata2/dev640_6/dev640.data6
    Please help me how to resolve this issue.

    Hi,
    Please perform DBverify Job and Also analyze the alert<SID>.log file for your Database to get more information about such logical or physical corruption.  You may require Block level recovery for the complained DB Files. Please refer this useful document " [Early Detection and Correction of Data Block Corruptions Using RMAN |http://www.ioug.org/client_files/members/select_pdf/04q4/RMAN.pdf]" and share the same with your Oracle DBA.
    You can execute the following commands to get information about corrupted block(s), if its there.
    select * from v$backup_corruption;
    select * from v$database_block_corruption;
    Regads,
    Bhavik G. Shroff

  • Time for BACKUP using RMAN

    Does anyone know the approximate time required for backing up 10GB datbase using RMAN?

    Hi ...
    Also the speed depend on the way you use to do the backup ...
    Using parallel option of RMAN ( setting an appropiate set of channels ), and using a set of drives that allows multiplex write on tape ( ie, STK9840 w/Veritas Netbackup) a 10 Gb database full online backup will take not more than 5.6 minutes (using 2 drives )
    Using 4 drives your backup can be reduced to 3 minutes ..
    Regards,
    JR
    null

  • Database Recovery using Archive files

    Dears,
    Due to some issue our database get crashed.
    We have saturday night offline backup and archive backup till yesterday night.
    We have restored offline backup and system is Up but it is on saturday night state.
    We want to apply these archive files to make the system state to current.
    In restore our control file also get replace with our saturday night control file status.
    We have copied our archive files in oraarch directory.
    Now when using brtools I am applying archive files:
    Command executing in brtools:
    recover from '/oracle/<SID>/oraarch' database
    it shows
    unknow command beginning
    No recovery required
    On sqlplus also when I execute
    sql>recover database;
    It shows no recovery required.
    When I give command:
    sql>recover database using backup control file;
    it ask for some {file name| AUTO | CANCEL}
    I give first file name of oraarch it shows "Can not access the file".
    File permissions are ok.
    I give AUTO, It also then do not do anything.
    Please suggest the correct method to make my system in latest current date.
    Shivam

    Hi Shivam,
    This is absolutely normal that during the restore your control files will be replaced by the old one which were backed up during database backup.
    Logic is that you can not apply the redolgs which are having the timestamps older than your  restored datafile's / controlfile's timestamp.
    If your DB is not yet opened, you can check the status of your database using below command which will tell you, till what timestamp your data is restored or currently available.
    select to_char(CHECKPOINT_TIME,'yyyy-mm-dd:hh24:mi:ss') from v$datafile where file#=1;
    >
    > From command I want to know "from backup control file"....Do SAP take backup of control file as in system only old is
    >
    > available.
    > Shivam
    >
    recover database using backup controlfile.....  this command does not backup the controlfile . this will make use of old controlfile only which came along with the restore  and start the recovery using this controlfile only.
    Its just make use of available controlfile ..No backup will be triggered.
    Please make a note that after DB restore; ..recovery is possible only in case database is not yet opened in OPEN state.
    Cheers !!!
    Ashish

  • Database Restore using RMAN

    Can I restore a oracle database with a different name using RMAN.
    Say, I backup a database named orcl. Now I wanted to restore this database with a different name. Is this possible? If yes, can some one guide me through the appropriate document?
    Thank you,
    Santhosh

    < Can I restore this Backup on to a database with a different name ...
    You even have to do this, if duplicated database belongs to the same ORACLE_HOME, otherwise it could be the same name (although the databases still have different DBIDs).
    DUPLICATE TARGET DATABASE TO <name>
    Werner

  • Database Recover Using RMAN

    Dear All(s)
    Recently i am managing oracle 10.2.0 database, and doing database coloning and data dumping. Also doing full backup trrough RMAN. Now i want to know what happend if i take only RMAN backup, full and incremental, and how recover it.
    1. How i can recover database if i loose entire server machine (in case i have only RMAN backup)
    2. How i can build full database using RMAN backup on another server.
    Thanks
    Waiting for response
    Edited by: Naeem Sheeraz on Dec 5, 2008 11:47 AM

    +1. How i can recover database if i loose entire server machine (in case i have only RMAN backup)+
    If you loose entire server machine its just like the same you make disaster recovery or restore database to another machine.
    +2. How i can build full database using RMAN backup on another server.+
    10g rman
    Khurram                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Problem in retrieving multiple records SAP xMII from SAP using BAPIS

    Hi friends,
             In SAP xMII i called BAPI_USER_GETLIST by passing import parameters 10 and y.In r/3 BAPI returned 10 rows but In xMII it was returned only one Record.
    i want to display 10 records in sap xmii
    1) I created to connection ECC5 in Dataservices-->SAPSERVERConfiguration
    2)In BLS we placed JCO Interface inside Sequence
    3)In BLS I used ECC5 connectrion(using JCO Interface) and called  BAPI_USER_GELLIST
    4)In Links-->Transaction created two input values for "maxnoofrows","withusername" and output value is "userid".
    Input what i mapped 
    Transaction>"maxnoofrows" =====SAPJCOINTERFACE->Request>BAPI_USER_GETLIST>INPUT-->MAX_ROWS
    Transaction>"withusername" =====SAPJCOINTERFACE->Request>BAPI_USER_GETLIST>INPUT-->WITH_USERNAME
    Output what i mapped 
    SAPJCOINTERFACE->Response>BAPI_USER_GETLIST>TABELS>USERLITS >ITEM>USERNAME=====Transaction-->userid
    5)Saved the Transaction.
    6)In Query Template -->xactuateQuery selected
    7)In Datasource Query mode was selected ,Inputrarams i passed 10 and y as parameters.
    It was returned one user id from R/3 inSAP xMII
    please help me to retrive all  10 rows from r/3
    Regards
    Srikanth

    hi,
    What is the data type of Transaction output (userid)?
    Make this as XML type.
    The format which BAPI returns the result does not match with xMII XML format.
    Create a xMII XML document and configure with column name as userid. and by using repeater and XML row add all tho values to the document. Then assign whole doument to transaction output.
    Hope this will help to resolve the issue.
    Regards,
    Kishore

  • Database cloning using RMAN using Oracle 11i

    Hi all,
    I am getting error while connecting to clone database after making necessary changes in initDUP.ora file. Any buddy help me out to resolve this problem. I am doing clonning first time.
    C:\Documents and Settings\sanjeevk>tnsping dup
    TNS Ping Utility for 32-bit Windows: Version 11.1.0.6.0 - Production on 25-JUN-2010 11:57:40
    Copyright (c) 1997, 2007, Oracle. All rights reserved.
    Used parameter files:
    C:\oracle\product\11.1.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = abc-117.abc
    .com)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = dup)))
    OK (50 msec)
    C:\Documents and Settings\sanjeevk>set ORACLE_SID=dup
    C:\Documents and Settings\sanjeevk>sqlplus "sys/****** as sysdba"
    SQL*Plus: Release 11.1.0.6.0 - Production on Fri Jun 25 11:59:55 2010
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Enter user-name: / as sysdba
    ERROR:
    ORA-12560: TNS:protocol adapter error
    Edited by: user13174327 on Jun 25, 2010 12:16 AM

    try to conenct to clone database from target database as sys by sqlplus 'sys/sys@CLONE as sysdba'
    make sure u have remote_login_password_file=exclusive in clone database pfile,,,,
    reload the listener,,, with replacing hostname with the ip address of the machine.....
    also take care of global_db_name ..
    i will post a sample of listener file it may work 4 u..
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /oracle/orasoft/10.2.0.4)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = rman_cat)
    (ORACLE_HOME = /oracle/orasoft/10.2.0.4)
    (SID_NAME = rman_cat)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.$$$.###.***)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    if u want proper SOP for duplicating database through RMAN .. post me ur mail id.I did that at last two days back.....
    Regards,
    Sisya....

Maybe you are looking for

  • PDF changes color in PowerPoint

    Hi all, I created an image (used color transparency for some parts) in Illustrator CC 2014. I saved the image as a pdf. and then inserted it in my PowerPoint presentation. Once I save the powerpoint and reopen it, pdf images that I inserted have a bl

  • Accessing default database

    i've just recently downloaded the trial version for Oracle8i Lite. The installation was successful, but when I load up SQL PLus 8.0, I am unable to access a sample database. I was told to use the username : SCOTT and psswd: TIGER , but I get a messag

  • Lightroom 5 is missing from Creative Cloud's Apps List. Please help.

    I've just subscribed to the Photoshop Photography program, installed Creative Cloud, installed Photoshop CC from there and could run it just fine, but I couldn't find Lightroom 5 in the list of apps that I could install from CC. Please help.

  • Bluetooth Handfree kit Parrot does'nt work!!!

    Hello everyone, I'm really ****** ... just bought iPhone4 OS 4.1. Before I had 2G, and 3G, then 3G. I state that is not my particular interest to share files via bluetooth or another, but the only essential thing that made the previous iPhone was con

  • How to develop abap on solution manager? just same as on R/3,se38,se80?

    somebody help me