RMAN backup recovery point in time

Hi all

Here's my rman backup script configuration and rman.
Because of size constraints I save my logs to archive by rman and delete.
I wanted to know if it was possible to go at a certain time using these archiving logs.
ex: -.
Racing script at 10:00 in the evening daily say it ran on March 1 and March 2, to 22:00, if I want to recover until 14:00 on March 2, will be March 2 backup enough or I'll need March 1 backup and archive logs until 14:00 for which I need to physcially archive backup logs daily , with rman.
RUN
{ 
  ALLOCATE CHANNEL ch1 DEVICE TYPE DISK;
  ALLOCATE CHANNEL ch2 DEVICE TYPE DISK;
  ALLOCATE CHANNEL ch3 DEVICE TYPE DISK;
  BACKUP DATABASE INCLUDE CURRENT CONTROLFILE format 'G:\Oracle\flash_recovery_area\TEST\BACKUPSET\tmp\rman_backup\df_%d_%s_%p_%T';
  DELETE NOPROMPT OBSOLETE;
  SQL "ALTER SYSTEM ARCHIVE LOG CURRENT";
  BACKUP ARCHIVELOG ALL DELETE INPUT format 'G:\Oracle\flash_recovery_area\TEST\BACKUPSET\tmp\rman_backup\arc_%d_%s_%p_%T';

}
RMAN configuration parameters for database with db_unique_name TEST are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'G:\Oracle\flash
_recovery_area\TEST\BACKUPSET\tmp\RMAN_BACKUP\CTL_%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOA
D TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'C:\ORACLE\PRODUCT\11.2.0\DBHOME_1\DATABA
SE\SNCFTEST.ORA'; # default

Hello;

RMAN> startup mount
RMAN> restore database until time "to_date('02-MAR-2013 09:00:00', dd-mon-rrrr hh24:mi:ss')";
RMAN> recover database;
RMAN> alter database open; 

Best regards

mseberg

Tags: Database

Similar Questions

  • RMAN BACKUP/RECOVERY OF DATA

    Hi friendz,.

    I have a legacy of or copied from earlier sources, RMAN backup scripts, which is the ff:

    (on the PROD server)
    rman
    run {
         CONFIGURE CONTROLFILE AUTOBACKUP ON;
         CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u03/rman/%F';
         crosscheck archivelog all;
         backup format '/u03/rman/%d_LVL0_%T_%u_s%s_p%p' database plus archivelog;
         delete obsolete;
         delete expired archivelog all;
         }
    Then, I got the following output in/u03/rman:
    [root@oracleprod rman]# ls -l
    total 75200672
    -rw-rw----  1 oraprod oraprod    16089088 Feb 18 19:40 c-4174489363-20110218-01
    -rw-rw----  1 oraprod oraprod 76882624512 Feb 18 19:39 OAPROD_LVL0_20110218_0gm50de6_s16_p1
    -rw-rw----  1 oraprod oraprod    31554048 Feb 18 19:40 OAPROD_LVL0_20110218_0hm50fks_s17_p1
    I copied the files above to/u03/rman to the TEST server. I have also the same Oracle Home.
    How can I recover these files on our TEST Server?

    I tried:
    rman
    run {
         startup mount;
         restore database;
         recover database;
        alter database open;
    }
    but I got error:
    [oraprod@oel5 ~]$ rman target /
    
    Recovery Manager: Release 9.2.0.6.0 - Production
    
    Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.
    
    connected to target database (not started)
    
    RMAN> startup mount;
    
    Oracle instance started
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of startup command at 02/21/2011 22:31:09
    ORA-00205: error in identifying controlfile, check alert log for more info
    
    RMAN>
    Help, please...


    Thank you

    You must restore the controlfile first.

    STARTUP NOMOUNT
    RESTORE CONTROLFILE FROM '/u03/rman/c-4174489363-20110218-01' ;
    sql 'alter database mount';
    RESTORE DATABASE;
    RECOVER DATABASE;
    

    Hemant K Collette

  • RMAN backup recovery

    Hi all

    11.2.0.3.11

    AIX6

    I have a script that runs every hour to recover the application archivelogs manual script database. What happened if accidentally, I run the script twice?

    RMAN control not to execute the order to duplicate 2nd, and will it hold or mark error him?

    For example:

    I have a script recover.exe, scheduled cron to run every hour and apply the manual standby db logs. (non-dataguard).

    But as the archive logs are too many, it was not completed in time, and the next restarted cron process, duplication of the race.

    Now, there are two batch process, applying archive logs. What will happen to our database?

    Thank you

    MK

    It depends on how you scripted operations. What happens if you have hardcoded the archivelogs to apply list and the execution-error?  The next execution generates the correct list.

    If you don't have not hardcoded the list, but allow Oracle to identify the archivelogs, it should be ok.

    Hemant K Collette

  • Incremental backups and Database Point-in-time recovery.

    Hello.
    I want to know how rman managed backups after resetlogs. For example, I did the first level 0 out of 10 and the second level 0 on 20. Each day, I make for the two L0 L1. I made a Point-in-time recovery to 15th on 23. RMAN will consider second L0 and L1, all of which were made after 15 as obsolete?

    just a DBA wrote:
    Hello.
    I want to know how rman managed backups after resetlogs. For example, I did the first level 0 out of 10 and the second level 0 on 20. Each day, I make for the two L0 L1. I made a Point-in-time recovery to 15th on 23. RMAN will consider second L0 and L1, all of which were made after 15 as obsolete?

    RMAN performs backups according to current incarnation. You can't do based on abandoned L0 L1. Even if you use the same tag, rman will create new L0. But rman can use all the backups for restoration/recovery. Abandoned backups are also subject to the same policy to tighten.

  • RMAN incarnation - Point-in-time recovery

    Hello

    I have my running RMAN backup.

    My database is running in Archivelog mode, I open the database with resetlogs option. All of a sudden my entire database got currupted.

    Now, I have previous RMAN (incarnation backp) + current archivelogs generated from this morning.

    I'm sure that the embodied backup RMAN can be restored. Here, how to apply the archivelogs generated after setting open resetlogs option. Is there data loss? How to handle this scenario?

    Thank you
    KSG

    Could you please explain with an illustration on the same?

    Just restore and recover the database. From your first post, I understand that you have lost any data base due to you must restore controlfile first (also if you lost spfile restore everything first) as

    export ORACLE_SID=
    rman target /
    startup nomount;
    restore spfile from 'autobackuplocation_or_fullbackuplocation';
    startup force nomount;
    restore controlfile 'autobackuplocation_or_fullbackuplocation';
    alter database mount;
    catalog start with 'full_backup_location';
    catalog start with 'archivelog_location';
    restore database;
    recover database;
    alter database open resetlogs;
    

    No no that if you do not have autobackup controlfile then restore controlfile from other backupsets (who understand the system tablespace).

  • Point in time recovery scenario.

    Hi all

    I worked on the time of recovery as point below and restored successfully as below,

    First, I checked the data,

    SQL > SELECT * FROM test2;

    NAME

    --------------------

    Haja

    Knani

    Pradeep

    Barry

    SQL > SELECT * FROM test3.

    ADDRESS

    --------------------------------------------------

    MIT Inoftech, Chennai

    SQL > select to_char (sysdate, "mm/dd/yy hh24:mi:ss'") twice;

    The clock DB

    -----------------

    25/03/15 12:35:34 - based on this basis of time I restore and recovery, my question is also in service at that date and time only.

    SQL > UPDATE test2 SET name = 'Raja' WHERE name = 'Haja;

    1 line update.

    SQL > SELECT * FROM test2;

    NAME

    --------------------

    Raja (previously this line contains the values as Haja.)

    Knani

    Pradeep

    Barry

    SQL > SELECT * FROM test3.

    ADDRESS

    --------------------------------------------------

    MIT Inoftech, Chennai

    SQL > DROP TABLE test3.

    Deleted table.

    SQL > SELECT * FROM test3.

    SELECT * FROM test3

    *

    ERROR on line 1:

    ORA-00942: table or view does not exist

    then I got db in editing step then did restore and recover successfully.

    RMAN > RUN {

    UNTIL ' TO_DATE (20 MAY 14 12:35:34 ',).

    "MM/DD/YY HH24:MI:SS") ';

    RESTORE THE DATABASE;

    RECOVER THE DATABASE;

    }

    I will come to my question, before I took the date and time of double as below,

    Scenario-1

    SQL > select to_char (sysdate, "mm/dd/yy hh24:mi:ss'") twice;

    The clock DB

    -----------------------

    25/03/15 12:35:34,

    If I use above the date and time can restore and recover the works.

    Scenario - 2

    I did all dml and ddl change as I mentioned above but did not date and hour only instead manually I change date and time as below,

    25/03/15 12:55:34 (I tried this after 20 minutes and time mentioned is given by myself, did not double)

    "but my restoration and recovery completed successfully, but dropped table is 3 not restored and update the data in row as"Raja"want it as ' Haja" than the way it has been done before update, but has not changed.

    What is the problem here, why my restoration not complete successfully using manually mentioned date and time when it is successfully done using double query time-out.


    Suppose that I forgot to take it twice then Am I can't restore and recovery?

    Is there any solution or own way is here to fulfill my need. then, kindly share with me.


    How can I optimize point in time when I don't have second time zone. Suppose I need to take backup in before 5 days and at any time (for example)


    2684285 wrote:

    Hello

    I will explain clearly, sorry for the inconvenience,

    I hope that got 1 scenario do you understand,

    In scenario - 2 there is not more complexity, just that I had restore and recover successfully when I gave ALL to the base double taken as 25/03/15 12:35:34 in scenario 1, but in the scenario-2 I tried to restore and recover with the VALUE UNTIL here I gave the date and time as 25/03/15 12:55:34 by manually by myself not selected double date and time by this time restore and recover over expected but table and lines are not restored and corrected.

    Anyway thank you for your Information, I will loot in a SET command up to for more information.

    It is real simple, and after selecting sysdate double at some point has nothing to do with it.  The time of SET up is powered continuously "manually". He does not know or care that you provide once you have determined by selecting sysdate in double to an earlier point in time.

    You did your test update (change "haja' to 'raja' some time between 12:35:34-12:55:34.

    In scenario1, you did a TIME FIXED up an hour before your update.  Were recovered at that time and your data recovery operation as it was before the update... as it was at 12:35:34.

    In scenario 2, you did a TIME FIXED up to one hour AFTER your update. Thus, the recovery operation recovered all activities at 12:55:34.  It was AFTER your update, so when the recovery is complete, you have had your data as it was at 12:55:34.

  • Hot RMAN backup requires archivelog all the time?

    Hi all

    consider: a dml operation is running in oracle database 11 g. After a while he completed and published a statement commit. Now, I took a full hot backup with rman. but backup of archivelog dint take (its must I know, but I want to know if we can do incomplete recovery using only the full backup and the database open with RESETLOGS option?

    Kindly let me know if we can do incomplete recovery using only full database backup, or we must need archivelog to open the database?

    Kind regards

    Tell your DATABASE BACKUP begins at 01:00 and ends at 01:50. At a minimum, you must save the Archivelogs from 01:00 for the first archivelolg after 01:50.  Technically you don't need the archivelogs in until 01:00. However, if you want to make a point in time recovery (which is a MUST for any production database), you should also save the archivelogs "earlier", which can be used with the last database backup.

    Your commitment does NOT guarantee that the database files are immediately updated - DBWR differs "lazily" writing in database files.  Your commitment is preserved in the online redo log. This should be archived an Archivelog and saved.

    Hemant K Collette

  • Backup point-in-time with backup to network share files

    Hi all

    Oracle Database 11 g Release 11.2.0.3.0 - Production - on Windows 2008R2 64 bit

    I'm still getting hot RMAN backup and that you have configured our backup as follows:

    -Nightly rman backup to local drive (ORAFRA) hot and then copy the entire ORAFRA folder on a network share (which will be on the Strip).

    It adheres to RPO my company (recovery point objective) of 24 hours, because if my real server goes down I can restore in the previous 24 hours.

    HOWEVER, my question is more to be able to make the point-in-time recovery using disaster file sharing network. I guess I can make the point in time at any time prior to my backup complete (using SNA #)... but if I wanted to be able to do point-in-time recovery AFTER my full backup, how would that be possible?

    Example - full backup at 19:00 every night. The incident occurring at 23:00. words I can only return to 19:00 or before. How can I configure I can restore, say at 22:00, using network backup files?

    Thanks in advance!

    Yes.  You must use the syntax for using backup controlfile recovery and do a resetlogs.

    With rman, you might be able to avoid the resetlogs, depending on whether the point-in-time is your real goal (which could be the situation you've lost again them online - or maybe not so rman the controlfile and newspapers archived periodically).

    You might investigate databases in waiting, many places decides that they are worth the cost compared to the possible losses.  And even if you do not, the concepts of recovery help to understand these things.

    You can also consider, the purpose of backup is resumed and rman is to manage the recovery.  It is really important to understand the concepts, to the point you can do it in your sleep (literally nearby, here), but it is also important to understand the tools.

  • Failed to retrieve the tablespace point in time recovery

    Hello

    I'm trying to recover the tablespace in times of recovery point, but his throw an error

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the command recover at 27/04/2011 17:22:13
    RMAN-03015: an error has occurred in the script stored memory Script
    RMAN-06026: some targets not found - abandonment of restoration
    RMAN-06024: no backup or copy of the file of control found to restore

    Question: Should I take the prior backup before making the tablespace point in time recovery.

    Please help me.

    ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired

    The resource is busy, you will have to repeat the process.

    Anand

  • Point of time of recovery to a different database

    Hi all

    Does anyone know if it is possible to recover a table to a separate database? For example, if I have backups from last year and you want to compare the emp table of June 2009 with the emp table now? I don't want to mess with my production database, so I would like to restore the data to a test server and make a point in time recovery on a datasbase test.

    Thanks in advance

    If you have 10 g +, you can use FLASHBACK DROP.

    Otherwise, you can consider restoring full RMAN backup Table.

  • Point in time recovery failed

    Hi Experts;

    I am the scene at the time of recovery.

    I dropped a single schema, then I tried to get it back. But could not recover.

    SYS > grant connect, resource to u1 identified by u1;

    Grant succeeded.

    SYS > conn u1/u1

    Connected.

    U1 > @sample.sql;

    Table created.

    PL/SQL procedure successfully completed.

    U1 > set time;

    08:02:54 U1 > update tab1 set name = 'oracle ';

    100000 lines to date.

    08:03:38 U1 > update tab1 set name = "ORCL".

    100000 lines to date.

    08:07:09 U1 > conn / as sysdba

    Connected.

    08:08:43 SYS > drop user u1 waterfall;

    Deleted user.

    08:09:10 SYS > change the database close;

    Database altered.

    > > started the recovery

    SYS > select status from v$ instance;

    STATUS

    ------------

    MOUNTED

    SYS > recover database until time ' 2014 auto - 10 - 15:08:07:09';            --> point in time for recovery

    Complete media recovery.

    SYS > conn / as sysdba

    Connected.

    SYS > strength of start-up;

    ORACLE instance started.

    Total System Global Area 746586112 bytes

    Bytes of size 1275920 fixed

    197134320 variable size bytes

    545259520 of database buffers bytes

    Redo buffers 2916352 bytes

    Mounted database.

    ORA-01589: must use RESETLOGS or NORESETLOGS option of database open

    SYS > alter database open resetlogs;

    Database altered.

    SYS > conn U1/U1

    ERROR:

    ORA-01017: name of user and password invalid. connection refused

    Thank you.

    To recover to a point in time spent you have to RESTORE the database from a backup that is older than the recovery point at the time.

    Unless you have set a Restore Point of Flashback earlier and newspapers flashback and archivelogs.

    Hemant K Collette

  • Hot RMAN backup fails every time in R12.

    Hi experts,

    Please suggest me that I have to plan rman backup hot. I have "write" command to perform hot backup. When I take backup hot of 1st time the backup completed successfully. but when I run the same command resume backup for the second day. it is impossible to give space issue I havhot e calendar for daily use rman backup.

    I had to take the backup hot daily and I want backup overwrite the backup file according to the daily backup.

    Please suggest me what I need to make changes in the configuration of rman and the rman command.

    OS - réhèl 5.6

    Database - 11.1

    EBS - r12.3

    configuration of RMAN:

    RMAN > show all.

    Database with db_unique_name UAT RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO RECOVERY OF 7-DAY WINDOW;
    CONFIGURE BACKUP OPTIMIZATION
    SET UP DEFAULT DISK DEVICE TYPE; # by default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default
    SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
    CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1;
    CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1;
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT ' / d06/UAT/rman_hot_backup/Backup_daily%d_DB_%u_%s_%p';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
    CONFIGURE ENCRYPTION OF DATABASE # by default
    CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
    CONFIGURE COMPRESSION ALGORITHM 'BZIP2 '; # by default
    CONFIGURE THE NONE ARCHIVELOG DELETION POLICY; # by default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / d06/UAT/db/tech_st/11.1.0/dbs/snapcf_UAT.f'; # by default

    RMAN >


    ##############################################################################################################


    RMAN command that I used to make hot extra strength 0 cumulative backup.


    RMAN > run
    {
    allocate channels c1 device type disk format ' / d06/UAT/rman_hot_backup/Daily_backup%d_DB_%u_%s_%p_%c';
    allocate channel c2 device type disc format ' / d06/UAT/rman_hot_backup/Daily_backup%d_DB_%u_%s_%p_%c';
    allocate channels c3 device type disk format ' / d06/UAT/rman_hot_backup/Daily_backup%d_DB_%u_%s_%p_%c';
    allocate channel c4 device type disc format ' / d06/UAT/rman_hot_backup/Daily_backup%d_DB_%u_%s_%p_%c';
    cumulative incremental database backup level 1 more archivelog;
    output channel c1;
    output channel c2.
    output channel c3.
    output channel c4.
    }

    If something bad in the configuration of rman and my order please suggest me to take the backup hot every day with success.


    concerning

    pritesh Rodriguez

    Hi Pritesh, thanks for the update. You can mark this thread as answered if your questions have been answered. cordially Karan

  • The database Point-in-time recovery

    Hi, experts.
    I have an interesting question. For example, I have consistent backup, backup and archivelog next cintrolfile. I want to recover the database to a point in time or SCN in the middle of this newspaper. How to check, before you begin the recovery, that this point in time, or SNA will be compatible? How to find coherent whole SNA or SNA that will I can recover the database for?

    How to find coherent whole SNA or SNA that will I can recover the database for?

    Not sure if we give the same meaning to "compatible", but all the SNA are "compatible": see this AskTom thread, where you can read

    the system change number (SCN) is the clock of Oracle - whenever we are committed, the clock
    increments. The RCS has just marks a coherent point in time in the database.

  • fact time server backup recovery n questions

    I HAV a doubt as the server time important in backup recovery n?

    Scenario:

    database full backup (rman) completed at 05:00 after 1 hour (i.e. 06:00) os admin changed the time on the server at 05:00.

    After 1 hour crashed.how of database we can recover the database.

    Here the server has n 05:00 06:00 twice

    Kind regards

    Hafiz

    As to this subject? You calculate the RCS based on any time you want. If you change the time, you must be unambiguous. See http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:3297071155886

    You can use scn_to_timestamp and it is converse to switch back, at least the previous 5 days (in current versions). Granularity of SNA varies according to the version of 5 minutes and 3 seconds.

  • Point in time recovery of Essbase database

    I would like to know how do point in time for recovery of a backup hot Essbase, if possible. I have cold backups and archives of functioning of the database, but would like to be able to perform backups if possible hot. Can you please let me know how this is done and what commands should appear so I can test this point and implement?

    Thank you
    Sudhir

    This should give you all you need to know about what is possible

    http://download.Oracle.com/docs/CD/E12825_01/EPM.111/epm_backup_recovery.PDF

Maybe you are looking for

  • Changing the address

    Hello I recently moved from the Australia to the United States and would like to change my address with my existing Apple ID Pourriez please help me? Thank you very much

  • Why my MBP say, ' Attention, violation of integrity!

    Several times recently I have working away on my MBP and he heard: "Attention!" Breach of integrity! » There is never a screen with this, and I have no idea what it means. On the last two times I had my Pages application to crash in the vicinity on h

  • Add the delay between periods of a waveform

    Hey all,. I have used Labview to implement a generator of signals using the 'base FuncGen' VI, (WF-Gen.png) and I'm looking to make a change to the waveform.  Currently I have my VI, set up to generate a square signal to a specified frequency and num

  • Scam PC Support

    Original title: support for PC? I recently had a problem w my PC. I called my cable co. and they me transferred to HP (Lim). The person thr looked at my record and said that he was "damaged" and my PC was in danger to stop working. He me transferred

  • A210 Acer re email question

    I just bought an Acer Iconia A210 tab.  My broadband at home is done by the o2 and the e-mail provided on the tab works fine.  However, when I'm away, I use a wireless Internet access via the three network.  I got the server out of three which is smt