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

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

  • Block Media Recovery and RMAN backup incremental level 1

    Hello

    I read somewhere that block Media Recovery will not work if a database is backed up with 1 incremental rman. Is this true and if so is there a work around?
    I can't find it in the documentation of oralce.

    Concerning
    Me

    Hello

    Yes you are right, for the recovery block media, you must have full rman backup. Incremental backups are not used by block
    media recovery. Only full backups and archived logs are used.

    See this doc on part III

    http://download-UK.Oracle.com/docs/CD/B19306_01/backup.102/b14191/TOC.htm

    concerning

    Jafar

    Published by: jerome on October 22, 2008 19:51

  • RMAN backup - incomplete recovery

    Hi guys,.

    just a test scenario.

    For example, I have a daily rman full backup at 20:00 yesterday. the database is in archiveloj... However we do not backup the archivelogs.

    This morning at 10:00, all databases, controlfile, redologs, archivelogs files are deleted from the system accidentally.


    the database can still be restore?

    1. create the controlfile to trace
    2. restoring the database
    3. restore database until cancel (it will be prompt will be the next newspaper which is not available)
    4. alter database open resetlogs

    open resetlogs will work without even a log available to apply to the rman backup archiving?

    Thank you

    The question is: "what is the definition of a FULL BACKUP?"

    What you have is a database backup that did not include the ArchiveLogs.
    You cannot recover the database with only a database backup unless the database backup was in State of MOUNT-no is not OPEN.

    A "backup of the closed base" is a FULL database backup.
    A "hot Database backup' is not COMPLETE unless ArchiveLogs are included.
    The command 'BACKUP of DATA PLUS ARCHIVELOG' RMAN; could meet the requirement of a full backup (although it does not include the ORACLE_HOME, EM/GridConsole tnsnames.ora, listener.ora files, etc).

    Hemant K Collette

  • urgent server won't boot up, how rman restore/recovery?

    Hello

    Reboot server SA will not start server.

    s/n cannot access server.

    the worst case:

    If SA want to rebuild a new server, reinstall the oracle database, is there docs to show me how to restore/recovery of database using rman of rman backup files in the old server records.

    (we do not catalog rman, just the control file)

    Thank you very much!

    If SA want to rebuild a new server, reinstall the oracle database, is there docs to show me how to restore/recovery of database using rman of rman backup files in the old server records.

    Yes - there are a LOT of docs on the web. Just use your favorite search engine and the search for them. They are EASY to find.

    But the SMARTEST thing would be to find the problem with the original database and fix it.

  • Waiting for redo log file missing when restore main database using RMAN backup that was taken on the database physical standby

    Here's my question after tons of research and test without have the right solutions.

    Target:

    (1) I have a 12.1.0.2 database unique main enterprise 'testdb' as database instance running on the server "node1".

    (2) I created physical standby database "stbydb" on the server "node2".

    (3) DataGuard running on the mode of MaxAvailability (SYNC) with roll forward in real time 12 default c apply.

    (4) primary database has 3 groups of one-man redo. (/oraredo/testdb/redo01.log redo02.log redo03.log)

    (5) I've created 4 standby redo logfiles (/oraredo/testdb/stby01.log stby02.log stby03.log stby04.log)

    (6) I do RMAN backup (database and archivelog) on the site of relief only.

    (7) I want to use this backup for full restore of the database on the primary database.

    He is a DR test to simulate the scenario that has lost every primary & Eve total servers.

    Here is how to save, on the database pending:

    (1) performance 'alter database recover managed standby database Cancel' to ensure that compatible data files

    (2) RMAN > backup database;

    (3) RMAN > backup archivelog all;

    I got elements of backup and copied to primary db Server something like:

    /Home/Oracle/backupset/o1_mf_nnndf_TAG20151002T133329_c0xq099p_.BKP (data files)

    /Home/Oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.BKP (spfile & controlfile)

    /Home/Oracle/backupset/o1_mf_annnn_TAG20151002T133357_c0xq15xf_.BKP (archivelogs)

    So here's how to restore, on the main site:

    I clean all the files (data files, controlfiles oder all gone).

    (1) restore spfile from pfile

    RMAN > startup nomount

    RMAN > restore spfile from pfile ' / home/oracle/pfile.txt' to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';

    (2) modify pfile to convert to db primary content. pFile shows below

    *.audit_file_dest='/opt/Oracle/DB/admin/testdb/adump '

    * .audit_trail = "db".

    * full = '12.1.0.2.0'

    *.control_files='/oradata/testdb/control01.ctl','/orafra/testdb/control02.ctl'

    * .db_block_size = 8192

    * .db_domain = "

    *.db_file_name_convert='/testdb/','/testdb /'

    * .db_name = "testdb".

    * .db_recovery_file_dest ='/ orafra'

    * .db_recovery_file_dest_size = 10737418240

    * .db_unique_name = "testdb".

    *.diagnostic_dest='/opt/Oracle/DB '

    * .fal_server = "stbydb".

    * .log_archive_config = 'dg_config = (testdb, stbydb)'

    * .log_archive_dest_2 = "service = stbydb SYNC valid_for = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = stbydb'"

    * .log_archive_dest_state_2 = 'ENABLE '.

    *.log_file_name_convert='/testdb/','/testdb /'

    * .memory_target = 1800 m

    * .open_cursors = 300

    * runoff = 300

    * .remote_login_passwordfile = "EXCLUSIVE."

    * .standby_file_management = "AUTO".

    * .undo_tablespace = "UNDOTBS1.

    (3) restart db with updated file pfile

    SQLPLUS > create spfile from pfile='/home/oracle/pfile.txt'

    SQLPLUS > the judgment

    SQLPLUS > startup nomount

    (4) restore controlfile

    RMAN > restore primary controlfile to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';

    RMAN > change the editing of the database

    (5) all elements of backup catalog

    RMAN > catalog starts by ' / home/oracle/backupset / '.

    (6) restore and recover the database

    RMAN > restore database;

    RMAN > recover database until the SNA XXXXXX; (this YVERT is the maximum in archivelog backups that extends beyond the scn of the backup of the data file)

    (7) open resetlogs

    RMAN > alter database open resetlogs;

    Everything seems perfect, except one of the file log roll forward pending is not generated

    SQL > select * from v$ standby_log;

    ERROR:

    ORA-00308: cannot open archived log ' / oraredo/testdb/stby01.log'

    ORA-27037: unable to get file status

    Linux-x86_64 error: 2: no such file or directory

    Additional information: 3

    no selected line

    I intended to use the same backup to restore primary basic & helps record traffic and the downtime between them in the world of real output.

    So I have exactly the same steps (except STANDBY restore CONTROLFILE and not recover after database restore) to restore the database pending.

    And I got the same missing log file.

    The problem is:

    (1) complete alert.log filled with this error, not the concern here

    (2) now repeat it in real time apply won't work since the Party shall LGWR shows always "WAITING_FOR_LOG."

    (3) I can't delete and re-create this log file

    Then I tried several and found:

    The missing standby logfile was still 'ACTIVE' at present RMAN backup was made.

    For example, on db standby, under Group #4 (stby01.log) would be lost after the restoration.

    SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;

    GROUP # SEQUENCE # USED STATUS

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

    4 19 ACTIVE 133632

    5 0 0 UNASSIGNED

    6 0 0 not ASSIGNED

    7 0 0 UNASSIGNED

    So until I take the backup, I tried on the primary database:

    SQL > alter system set log_archive_dest_state_2 = delay;

    This was the Group of standby_log side Eve #4 was released:

    SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;

    GROUP # SEQUENCE # USED STATUS

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

    4 0 0 UNASSIGNED

    5 0 0 UNASSIGNED

    6 0 0 not ASSIGNED

    7 0 0 UNASSIGNED

    Then, the backup has been restored correctly without missing standby logfile.

    However, to change this primary database means break DataGuard protection when you perform the backup. It's not accept on the production environment.

    Finally, my real questions come:

    (1) what I do may not do on parameter change?

    (2) I know I can re-create the control file to redo before delete and then recreate after. Is there any simple/fast to avoid the standby logfile lost or recreate the lost one?

    I understand that there are a number of ways to circumvent this. Something to keep a copy of the log file waiting restoration progress and copy up one missing, etc, etc...

    And yes I always have done no real-time applies "to the aid of archived logfile" but is also not accept mode of protection of production.

    I just want proof that the design (which is displayed in a few oracle doc Doc ID 602299.1 is one of those) that backs up data backup works effectively and can be used to restore the two site. And it may be without spending more time to resume backups or put the load on the primary database to create the database before.

    Your idea is very much appreciated.

    Thank you!

    Hello

    1--> when I take via RMAN backup, RMAN does not redo log (ORL or SRL) file, so we cannot expect ORLs or SRL would be restored.

    2nd--> when we opened the ORL database should be deleted and created

    3rd--> Expecting, SRL should not be an issue.we should be able to do away with the fall.

    DR sys@cdb01 SQL > select THREAD #, SEQUENCE #, GROUP #, STATUS from v$ standby_log;

    THREAD # SEQUENCE # GROUP # STATUS

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

    1 233 4 ACTIVE

    1 238 5 ACTIVE

    DR sys@cdb01 SQL > select * from v$ logfile;

    GROUP # STATUS TYPE MEMBER IS_ CON_ID

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

    3 /u03/cdb01/cdb01/redo03.log no. 0 online

    /U03/cdb01/cdb01/redo02.log no. 0 2 online

    1 /u03/cdb01/cdb01/redo01.log no. 0 online

    4 /u03/cdb01/cdb01/stdredo01.log WATCH No. 0

    /U03/cdb01/cdb01/stdredo02.log EVE 5 No. 0

    DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log

    method: cannot access the /u03/cdb01/cdb01/stdredo01.log: no such file or directory

    DR sys@cdb01 SQL >! ls - ltr /u03/cdb01/cdb01/stdredo02.log

    -rw - r-. 1 oracle oinstall 52429312 17 Oct 15:32 /u03/cdb01/cdb01/stdredo02.log

    DR sys@cdb01 SQL > alter database force claire logfile 4;

    change the database group claire logfile 4

    *

    ERROR on line 1:

    ORA-01156: recovery or current flashback may need access to files

    DR sys@cdb01 SQL > alter database recover managed standby database cancel;

    Database altered.

    DR sys@cdb01 SQL > change the database group claire logfile 4;

    Database altered.

    DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log

    -rw - r-. 1 oracle oinstall 52429312 17 Oct 15:33 /u03/cdb01/cdb01/stdredo01.log

    DR sys@cdb01 SQL >

    If you do, you can recreate the controlfile without waiting for redo log entry...

    If you still think it's something is not acceptable, you must have SR with support to analyze why he does not abandon SRL when controlfile_type is "underway".

    Thank you

  • content managed rman backup crushing and selection procedure of the tape media

    Hello Experts.

    I have a question about the backupset rman tape media manage tape of the osb.

    [ENV]

    Exadata rman backup assistance OSB(version: 10.4.0.3.0) SL500 LTO5 4 Tape Drive with rman scripts and full backup is working well.

    1 Appendix backup on OS crontab

    -Each backup full day at 00:00 AM

    2 rman view all:

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    using the control file of the target instead of recovery catalog database

    RMAN settings for database with db_unique_name TESTDW are:

    CONFIGURE RETENTION POLICY TO 3 DAY RECOVERY WINDOW;

    CONFIGURE BACKUP OPTIMIZATION # by default

    CONFIGURE THE TYPE OF DEFAULT DEVICE TO 'SBT_TAPE ';

    SET UP THE DEVICE TYPE 'SBT_TAPE' PARALLELISM 4 TYPE OF BACKUP BACKUPSET.

    CONFIGURE CONTROLFILE AUTOBACKUP ON;

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    3 rman backup scirpts

    Run {}

    allocate channels c01 type 'sbt_tape' connect 'sys/manager@testdw1';

    allocate channel c02 type 'sbt_tape' connect 'sys/manager@testdw2';

    allocate channel c03 type 'sbt_tape' connect 'sys/manager@testdw1';

    allocate channels c04 type 'sbt_tape' connect 'sys/manager@testdw2';

    Backup section size 900g database;

    output channel c01;

    output channel c02;

    output channel c03;

    output channel c04;

    }

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    1st quarter > after several weeks and I run the command as "#obtool u admin Pei welcome1 lsvol-L lib1.

    and are used in many media of rman backup band (about 50EA media, perhaps 46EA are full and 4EA are appendble)

    So, I issue the command 'lsvol - a - c' and could not display expired on all media content.

    Why OSB no has not select and replace the tape media despite the rman rman default retention policy (3days) all show the setting.

    Why OSB does not have the expired status of rman content on tape media?

    -> I need the rman (delete expired, delete obsolete etc...) command to share the summary status of OSB and rman rman?

    Q2 > selection procedure for the tape media all backup rman

    Suppose the total number of tape media is 5EA. (1,2,3,4,5) with an available tape LTO5 drive.

    Status: 1 (full-rman content already expired), 2 (content integral-rman not expired), 3 (editable, remaining space), 4 (new media), 5 (currnet wring media)

    If OSB burn now 5 and reach at the end of the Strip and possibly another media, media to be selected by the OSB?

    Advanced thanks.

    If I place the order obsolete in the rman script as 'delete type 'SBT_TAPE' noprompt obsolete device;' the results will be the same as your

    the syntax because rman default setting (CONFIGURE RETENTION POLICY to RECOVERY WINDOW OF 3 DAYS ;) has already been fixed on the command "Show all", right? @)

    Yes.

    I use the catalog of recovery on a different database and backup script has catalog db connection string.

    And if I only use controlfile instead of recovery catalog to save the backup information and put in place "control_file_record_keep_time" a default of 7 days to 365 days, "remove obsolete" command to remove several weeks backupset works well, is it not?

    Possible problem are existing backups for several weeks if you left default control_file_record_keep_time. Change now will not help unless you catalog later manually all the old pieces not catalogued on tape backup.

    After you clean up the situation and particularly to remove obsolete in your script, rman, you will never make problems with control_file_record_keep_time from this moment. By default will do just fine because it is larger than your window of recovery.

    Kind regards

    Mitja

  • EBS 11i RMAN backup

    Hi all

    EBS 11i

    OEL 5

    I have rman backup of our database of EBS.

    I also have a single backup at oracle.

    Assuming that no patches have been applied, is the one-time backup of oracle home + backup rman, good enough to restore the database to a server disaster recovery?

    Can I still place adpreclone every day, for the rman backup to synchronize?

    Adpreclone is used to capture changes to the patches applied, or adding database files? or both?

    Please throw lights...

    Thank you very much

    JC

    It is not possible to have several databases with the ORACLE_SID even on the same host.

    The solution is that you have to put on separate hosts.

  • Backup & Recovery in virtual environment

    Hello

    I need help to establish a good Backup & Recovery Strategy for VM-Ware with Oracle databases.

    Currently we use veeam backup the entire Virtual Machine during the night maintannce-window. On the virtual machine, we use RMAN to back up the databases, archivelogs fall under the machine.

    My problem:

    -If the virtual machine failure during the day, for example 16:00, cause of lost storage / instant failure that blocks the machine - I lose changes all day.

    So, where is the best place to save the logs to check-in during the day and how do I recover after an accident mentioned above? First step would be to recover the virtual machine with veeam, but subsequently? The database do not know what archivelogs were written, cause it contained last night?

    Thanks for your help.

    PS, we got the problem of the snapshot-crash on another machine, so it's really a thing that can happen.

    User106somethingorother,

    If you want to be able to recover in the case of the virtual machine / virtual disks are gone, you must ensure that your backups and archiving logs copied somewhere else.

    The users guide backup and restore (available at http://docs.oracle.com) would be the place to go to find out how to recover the database in many different scenarios, including one where you have lost direct control files and RMAN would therefore know about archiving logs is available.

    Kind regards

    John

  • How to restore RMAN backups

    Hello

    I tried to include works of RMAN Oracle 12 c

    If I use the following command, I should have the backuppiece and the archivelog saved in a folder:

    RMAN > BACKUP database DATA PLUS ARCHIVELOG;

    If I ran this command in 4 different days, which I ended up having 4 folders with different inside files

    I guess that, in these files, I have the data files and the archivelogs

    Now I move these folders to tape, re-cutting the backups and delete expired

    Say that in a month, I need one of these backups if I put a band records and I added start with 'c:\path_of _restored_folder _L', so I added all files in the folder that I restored from tape

    Now, if I try to restore the basis of all is well but when I run the recover, it is missing some archiving logs it says

    If I put all the files for 4 days then he finds the archivelog she needs and pick up without problem

    on this basis I understand that in the folder containing a backuppiece of a specific day there is the newspaper of archive that I needed to recover from the DB, is that true? How can I know if the backups folder I need to replace in order to have all the required log archiving?

    At the moment my DB retrieves only if I handed out the Ribbon last backup folder, if I handed out the previous, it restores, but is not recover

    Also I have this configuration of the oracle recovery 3 days window maintains backups in order to be able to restore and recover the last 3 days and he simply deletes all obsolete if the FRA is full

    I tried earlier to set up the window of 3 days as a test recovery

    I ran a few backups and after that I ran the 5th FRA leak out of space and the backup fails

    I expect rman to remove the old backup and make way for a new that I have 5 backuppiece and the FRA is full, why he not do?

    Thank you

    The default behavior of RECOVER is to make a full recovery - right until the transactions today.  So it must all archivelogs.

    If you want to restore and recover to a point in time, use the SET clause to THAT specify a sequence of the newspaper or time or SNA.  Oracle will then not get beyond that point in time - that is to say he will not seek further archiving logs.

    (Ideally, when you restore an old backup, I also begins to restore the old controlfile, then using this controlfile).

    If you use the FRA in this way

    a. set db_recovery_file_dest_size and db_recovery_file_dest

    b. * not * used a FORMAT clause in the BACKUP command

    Oracle will recognize all backups in the FRA (you can check by querying V$ FLASH_RECOVERY_AREA_USAGE before and after the backup).

    In this case, Oracle can and will automatically purge outdated backups - that is to say any backup older than the retention period, provided that there is at least a L0 or backup complete closest to the retention period.  You should see messages to this effect in the alert of the instance database log file.

    Hemant K Collette

  • Pull on the RMAN backup archive logs?

    Environment:

    Oracle 11.2.0.3 EE on Solaris

    Physical standby

    I have a gap of journal archive at the moment.  The missing archive logs have been saved on the primary and have not yet been transferred to waiting due to some maintenance work performed on the standby server.

    The database will be able to recognize that the missing archivelog files are in the RMAN backup files, restore them and send them to the update server standby for application?

    If not, will it restore manually, copy them to the standby server and save them for their application?

    Thanks a lot for your help!

    -gary

    Were the archivelogs deleted on the primary once they have been saved? If they have been deleted on the primary, then you can:

    1 manually transfer the backup to forward files

    2 replace the archivelog destination configured on the eve

    3 restart the managed recovery on the standby process, and the computer should be able to detect and apply the missing archivelogs.

    If they have not been deleted on the primary and are always available in the archivelog directory configured, then the process of Data Guard should be able to detect and automatically fix the gap.

    If you have a long interval archivelogs missing and you use + ASM, you can also try to use an incremental backup to roll forward the database pending, this article provides a good step by step: the steps for Rolling forward a standby database using RMAN incremental backup. (Doc ID 836986.1)

    Kind regards
    Oscar

  • RMAN backup command gets failure


    Hello;


    Merry Christmas to all


    It's the test database (10.2.0.1) on RHEL 4.8, Rman backup command was already.

    I don't understand why I got the error? What was the reason?


    RMAN > backup the database archivelog;

    From backup 25 December 14

    Current archived log

    using the control file of the target instead of recovery catalog database

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: sid = 141 devtype = DISK

    channel ORA_DISK_1: from archive newspaper backupset

    channel ORA_DISK_1: specification of archive log backup set

    archive log entry thread = 1 sequence 2 recid = 1 stamp = 867230647 =

    archive log entry thread = 1 = 3 = 2 = 867233039 stamp recid sequence

    archive log entry thread = 1 sequence 4 recid = 3 = 867233044 stamp =

    archive log entry thread = 1 sequence 5 recid = 4 = 867233122 stamp =

    archive log entry thread = 1 sequence = recid 6 = 5 = 867233128 stamp

    archive log entry thread = 1 sequence = recid 7 = 6 = 867233214 stamp

    archive log entry thread = 1 sequence 8 recid = 7 = 867233453 stamp =

    archive log entry thread = 1 sequence 9 recid = 8 = 867233493 stamp =

    archive log entry thread = 1 sequence 10 recid = 9 = 867233559 stamp =

    channel ORA_DISK_1: starting piece 1 to December 25, 14

    channel ORA_DISK_1: finished piece 1 to December 25, 14

    piece handle=/home/oracle/oracle/product/10.2.0/db_1/flash_recovery_area/ORCL/backupset/2014_12_25/o1_mf_annnn_TAG20141225T101241_b9q5g4jo_.bkp tag = TAG20141225T101241 comment = NONE

    channel ORA_DISK_1: complete set of backups, time: 00:00:16

    Backup over at December 25, 14

    From backup 25 December 14

    using channel ORA_DISK_1

    channel ORA_DISK_1: from full datafile backupset

    channel ORA_DISK_1: specifying datafile (s) in backupset

    input datafile fno = 00001 name=/home/oracle/oracle/product/10.2.0/oradata/orcl/system01.dbf

    input datafile fno = name=/home/oracle/oracle/product/10.2.0/oradata/orcl/sysaux01.dbf 00003

    input datafile fno = 00005 name=/home/oracle/oracle/product/10.2.0/oradata/orcl/example01.dbf

    input datafile fno = name=/home/oracle/oracle/product/10.2.0/oradata/orcl/undotbs01.dbf 00002

    input datafile fno = name=/home/oracle/oracle/product/10.2.0/oradata/orcl/users01.dbf 00004

    channel ORA_DISK_1: starting piece 1 to December 25, 14

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of command thus backup archivelog to 2014/12/25 10:13:54

    ORA-19502: write error on file ' / home/oracle/oracle/product/10.2.0/db_1/flash_recovery_area/ORCL/backupset/2014_12_25/o1_mf_nnndf_TAG20141225T101301_%u_.bkp ', blockno 8833 (blocksize = 8192)

    ORA-27072: IO file error

    Linux error: 2: no such file or directory

    Additional information: 4

    Additional information: 8833

    Additional information: 348160

    > > Physical directories are available

    $ pwd

    /Home/Oracle/Oracle/product/10.2.0/Db_1/flash_recovery_area/ORCL

    [oracle@RAC1 ORCL] $ ls-l

    total 12

    drwxr-x - 3 oracle oinstall 4096 Dec 25 09:24 archivelog

    drwxr-x - 3 oracle oinstall 4096 Dec 25 09:18 backupset

    drwxr-x - 2 oracle oinstall 4096 Dec 24 17:16 onlinelog

    ORA-19502: write error on file ' / home/oracle/oracle/flash_recovery_area/ORCL/backupset/2014_12_26/o1_mf_nnndf_TAG20141226T233412_%u_.bkp ', blockno 37505 (blocks ize = 8192)

    I don't understand why is it taking over as "%u" rather than place a unique value for him. Is it the file with System FRA has enough space?

    DF h/home/oracle/oracle/flash_recovery_area/ORCL/backupset.

    Kind regards

    Shivananda

  • "backup recovery area" ignore all save them

    Hello everyone.

    I use 11.2.0.4 on OL 6.5 EE.

    I use suggested the Oracle backup strategy above I use "backup recovery area" at the end of the script and I spotted that he doesn't know to save them all. Please notify.

    Hello everyone and thanks for your help.

    I studied the issue and has managed to solve.

    First I mw show you the parameters persistent rman:

    Database with db_unique_name MYDB RMAN configuration parameters are:

    CONFIGURE RETENTION POLICY TO RECOVERY OF 7-DAY WINDOW;

    CONFIGURE BACKUP OPTIMIZATION

    SET UP DEFAULT DISK DEVICE TYPE;

    CONFIGURE CONTROLFILE AUTOBACKUP ON;

    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT for DEVICE TYPE DISK to "+ fra/mydb/controlfile/%F";

    SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE;

    CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1;

    CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1;

    CONFIGURE MAXSETSIZE TO UNLIMITED;

    CONFIGURE THE DATABASE ENCRYPTION

    CONFIGURE THE ENCRYPTION ALGORITHM "AES128";

    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AND 'DEFAULT' LIBERATION OPTIMIZE FOR TRUE LOAD;

    CONFIGURE THE NONE ARCHIVELOG DELETION POLICY;

    CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / oracle/product/11.2.0/dbhome_1/dbs/snapcf_mydb.f';

    Now I use another script to take my backup and it works fine

    RMAN > run {}

    2 > crosscheck backup;

    3 > overlapping copy;

    4 > overlap archivelog all;

    5 > DELETE noprompt EXPIRED ARCHIVELOG ALL;

    6 > delete noprompt ARCHIVELOG until TIME ' SYSDATE-8';

    7 > DELETE noprompt EXPIRED BACKUP;

    8 > delete noprompt obsolete;

    9 > GET COPY OF DATABASE WITH TAG 'PAYMENT' until ' SYSDATE-8';

    10 > LEVEL 1 INCREMENTAL BACKUP TO RECOVER WITH THE TAG 'MYDB' COPY DATABASE;

    {11 >}

    12 > run {}

    13 > GAME CONTROLFILE AUTOBACKUP FORMAT for DEVICE TYPE DISK TO ' / storage/flash_recovery_area/MYDB/controlfile/%F';

    14 > save destination recovery area "/ storage/flash_recovery_area";

    15 > BACKUP VALIDATE CHECK DATABASE LOGIC ARCHIVELOG ALL;

    {16 >}

  • RMAN backup error

    Hello

    I get an error when you try to run an Oracle database backup using a windows batch file that calls a settings file to execute RMAN commands. This is handled by the windows scheduler.

    It's been in place for several months and worked fine until today.

    Oracle Version - 11G 11.2.0.2.0

    OS - Windows server 2008 R2

    * Note *-I have changed for security reasons password and company information.

    Here are the contents of the batch file:

    echo: [email protected] > > \\CCCODS09\c$\Support\DB_Backup\Max.log

    echo to: [email protected] > > \\CCCODS09\c$\Support\DB_Backup\Max.log

    Echo subject: Max Backup log > > \\CCCODS09\c$\Support\DB_Backup\Max.log

    RMAN @\\CCCODS09\c$\Support\DB_Backup\Max.txt > > \\CCCODS09\c$\Support\DB_Backup\Max.log

    copy \\CCCODS09\c$\Support\DB_Backup\Max.log \\ccvmds51\c$\inetpub\mailroot\Pickup\email.txt

    del \\CCCODS09\c$\Support\DB_Backup\Max.log

    Here is the content of the Max.txt settings file:

    connect sys/password@maxof target;

    Run {}

    backup as compressed backupset actual additional database tag 0 = = "format='\\cccobu02\oracle\cccods09\Max\%T_Max-HOT-BACKUP-OF-FULL-DATABASE-AND-LOGS-DATAFILE-%U.BKP';

    backup as compressed backupset archivelog all delete tag all input = "format='\\cccobu02\oracle\cccods09\Max\%T_Max-HOT-BACKUP-OF-FULL-DATABASE-AND-LOGS-LOGFILE-%U.BKP';

    backup as compressed backupset current controlfile tag = "format='\\cccobu02\oracle\cccods09\Max\%T_Max-HOT-BACKUP-OF-FULL-DATABASE-AND-LOGS-CONTROLFILE-%U.BKP";

    }

    "exit";

    And here is the log file:

    Recovery Manager: release 11.2.0.2.0 - Production on Mon Nov 17 05:30 2014

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    RMAN > Connect target *.

    2 > run {}

    3>           = backup as compressed backupset actual additional database tag 0 = "format='\\cccobu02\oracle\cccods09\Max\%T_Max-HOT-BACKUP-OF-FULL-DATABASE-AND-LOGS-DATAFILE-%U.BKP';

    4>           backup as compressed backupset archivelog all delete tag all input = "format='\\cccobu02\oracle\cccods09\Max\%T_Max-HOT-BACKUP-OF-FULL-DATABASE-AND-LOGS-LOGFILE-%U.BKP';

    5>           as a compressed backupset backup current controlfile tag = "format='\\cccobu02\oracle\cccods09\Max\%T_Max-HOT-BACKUP-OF-FULL-DATABASE-AND-LOGS-CONTROLFILE-%U.BKP ';

    {6 >}

    7 > exit;

    connected to target database: MAX (DBID = 1234567890)

    From backup 17 November 14

    DBGSQL: TARGET > select nvl (max (al.recid), '0'), nvl (max (al.recid), 0) in : txtparmvalue,: parmvalue of al v$ archived_log where in al.status ('X', 'A') and al.is_recovery_dest_file = 'YES' and al.creator = "RMAN"

    DBGSQL: SQLCODE = 1008

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of the backup at 17/11/2014 05:30:16 command

    RMAN-03014: implicit recovery catalog Resync failed

    ORA-01008: not all variables

    Complete recovery manager.

    If you need more information please let me know.

    Any help to fix this would be appreciated.

    Thank you

    Hello

    This is considered to be a bug for 11.2.0.2 version.

    Please see this document of MOS

    ORA-01008: RMAN backup does not work with assorted errors 11.2.0.2 If cursor sharing is turned on (Doc ID 1472116.1)

    Kind regards

    Shivananda

Maybe you are looking for