Restore the archivelogs

Hi all

I'm working on a 10.2.0 version. I need to restore my backup archivelog.

There is no way to restore all available archives?

Kind regards
dbajug

Hello

http://download.Oracle.com/docs/CD/B19306_01/backup.102/b14194/rcmsynta051.htm#RCMRF149

There is no way to restore all available archives?
Yes

restore archivelog all;

I need to restore my backup archivelog.
You can filter by RCS, sequence or time if you do not want to retrieve all your archivelog files.
Example:

restore archivelog from time 'sysdate-1';

You can also restore to a different location if the original is not available etc.

View rman is perfectly capable to eat the archivelog files as needed if the backups are available.

Best regards
Phil

Tags: Database

Similar Questions

  • Because of the archivelogs had places in + FRA diskgroup

    Dear Sir.

    Because of the archivelogs had places in + FRA diskgroup

    Thanks in advance,

    IVW

    The quick recovery area is a directory managed by Oracle. Once configured, RMAN would use FRA as the default location for files backup and restore RMAN. Archivelogs and files of RMAN backup effective additional 1 used for the restoration of the database.

    Archivelogs do not need to be stored in FRA and you can specify a different location, but there are several advantages, for example, RMAN automatically identify and find the backup and restore files stored in FRA.

  • Save the list of all the archivelog

    Hi all

    9i

    RHEL5

    I am creating dataguard standby physical database using 469493.1.

    I've already run > restore database;

    Then the next step is >

    RMAN > backup from the list of the archivelog all;

    List of backup sets

    ===================

    Time of accomplishment time BS key size Device Type

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

    354M 6 00:00 DISK: 22 JULY 14, 15

    BP key: 6 location: AVAILABLE Tag: TAG20150714T034252

    Part name: /u02/oradev/devdb/9.2.0/dbs/06qc0a5s_1_1

    List of newspapers archived on backup the value 6

    The next time that THRD Seq YVERT low low time next YVERT

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

    1 29 5977353607141 JULY 12, 15 5977353877566 JULY 13, 15

    1 30 5977353877566 13 JULY 15 5977354126757 JULY 13, 15

    1 31 5977354126757 13 JULY 15 5977354376204 JULY 13, 15

    1 32 5977354376204 13 JULY 15 5977354521053 JULY 14, 15

    1 33 5977354521053 14 JULY 15 5977354532621 JULY 14, 15

    RMAN > recover database until the sequence 34;

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

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

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

    RMAN-00558: error occurred during parsing of order entry

    RMAN-01005: syntax error: found ';': expected an a: 'thread '.

    RMAN-01007: file 35 line 1 column: entry standard

    Why the syntax error

    Help, please...

    Thank you very much

    JC

    You can go ahead and specify:

    RECOVER UP TO THE 34 THREAD 1 SEQUENCE DATABASE

    However, you normally would

    {

    SET UP 34 THREAD SEQUENCE 1.

    RECOVER THE DATABASE;

    }

    The SET until and RECOVER as separate orders.  See example in RMAN commands, 57-59

    Hemant K Collette

  • Recover a database using the archivelogs

    We have restored a backup of cold base using avamar from one server to another. All data, controlfiles, pfiles files are in place right after restoration. It is a 9i database. All I have to do now is to recover the database to a point in time which is 3 days after the last cold backup. I have all necessary archivelogs that transferred to destination Ark. Here are the steps that I think we need to do to recover the database using the archivelogs until the point in time with RMAN:

    RUN {}

    BOOTABLE MEDIA;

    RECOVER THE DATABASE;

    ALTER DATABASE OPEN;

    }

    Please let me know if I'm missing something here.

    your third step is able, as sybrand_b said that your DB is already in a consistent state.

    The backup controlfile clause must notify oracle that SNA to controlfile is not common and needs recovery to bring back to the most recent State, is recommended to use the backup controlfile clause if you are recovering from an old controlfile or recreated controlfile.

    Mark post below to roll forward from a cold backup.

    Hemant Oracle DBA blog: RollForward from backup to cold

  • to restore the segment containing the block indicate

    Hello

    1. a database with no archivelog mode.

    2 the judgment

    3. startup mount

    4. restore the database

    5. change the database open

    6. Select * from report_data

    7 ORA-01578: block of data ORACLE (corrupted file # 16, block # 1389655)

    ORA-01110: data file 16: ' / app/oracle/oradata/etaxn/users07.dbf'

    ORA-26040: data block has been loaded using the NOLOGGING option

    01578 00000 - ' corrupted ORACLE data block (file # %s, block # %s)).

    * Cause: The specified data block has been altered, mostly due to software

    errors.

    * Action: Try to restore the segment containing the specified block. This

    may involve the removal of the segment and recreate it. If it is

    There's a trail file, report the errors inside your Oracle

    representative.

    8. how to restore the segment containing the block indicate?

    Indicate whether the segment containing this block is an Index or Table.  Query DBA_EXTENTS for this.

    If there is an Index, you can DROP INDEX and CREATE INDEX.

    If it is a table you could mark the corrupt block and Oracle will avoid to read the data in this block - lines in this block are not recoverable.

    Or you could restore the table from a backup (export or backup datapump?) and redo all the transactions that took place on the table since the backup.

    Start by reading Oracle Support Note "handling block Oracle Corruptions in Oracle 7 / 8 /» "8i/9i / 10g / 11g [ID 28814.1].

    Hemant K Collette

  • Restore the control file considerations

    Hello expert,

    Assumpition condition is:

    All the data files and the redologs are not damaged, but the controlfiles are damaged. We must restore the controlfile autobackup with the following command:

    RMAN > STARTUP NOMOUNT;

    RMAN > backup RESTORE CONTROLFILE AUTOMATIC;

    RMAN > ALTER DATABASE MOUNT;

    RMAN > RECOVER DATABASE;

    RMAN > ALTER DATABASE OPEN RESETLOGS;

    Use of rman RECOVER, DATABASE redo logs to roll changes forward to control files. Can you explain what changes can be included? (Currently I only have one example: we add the new data file once the backup control file.) So we need roll forward the changes to control the file on the new added one.) Other examples?

    Thank you and best regards,

    Tong Ning

    Examine the contents of the controlfile.  He has the list of data files, the list of the archivelog files and list of rman backups.

    Archivelogs would be saved in the controlfile so that they can be applied.

    What about backups?  Subsequent backups would certainly no longer be in the controlfile.

    Hemant K Collette

  • Restore the database on new server

    I have Oracle 10 g on AIX 5.3
    I perform the backup hot by script every week.
    A user makes me know that the accident he has deleted a table. Because I only use the standard version, I can use the flashback table to restore the lost data.
    Under the guidance of askTom for similar cases raised by others, Tom said that cloning the db to the new location and export that data to the old server are the only way can do.
    The data in the table of the deleted user not be updated frequently, so I only need to apply all the data files in the last backup, no need to apply the archivelog.

    My colleague helping me duplicate data files to the new location. The new server has installed Oracle and the configuration is the same as the old server.
    But can I know the steps what I can do to clone the database in the best way? (no need to apply archivelog)

    Thank you very much

    If I restore the database up to the 15/05 01:05, I do not know what newspapers of archiving backup must be copied to new servers (the new server has limited the size, I can't copy all the logs to archive on the server).

    Depends on if you are allowed to lose some data. In the case opposite and you all data just before that the data has been deleted, you need to recover up to 22/05 16:59 you need all the archives logs from 15/05 01:05 to 22/05 16:59.

    You can consult the archives of the information for journal of v$ archived_log view on the main database using next_time between the time of hot backup and 22/05 17:00.

    Anand

  • Records in the ARCHIVELOG flash_recovery_area folder management

    I more than 520 files in my 'c:\oraclexe\app\oracle\flash_recovery_area\XE\ARCHIVELOG' folder in the YYYY_MM_DD form from January 2009 until this day. Can I delete these folders and leave only the 2011_12_29 folder? What is a recommended practice?

    "Recommended practice" is implemented in a separate partition / folder to contain the archivelog files and affecting LOG_ARCHIVE_DEST_1 and LOG_ARCHIVE_FORMAT which avoids creating folders to a location in the recovery area.

    Of course, you can delete these files. Unless you do a restore. There is always a catch ;)

  • Restore an archivelog leave backup piece

    Stuck with restore an archivelog on this 10.2.0.4 database. The backup piece created on primary and scp'ed to this followed expectations of the catalogue backuppiece "/ tmp/ssmgme7s_1_1. It contains the archivelog.

    RMAN > backup wire sequence list 44424 archivelog 1;


    List of backup sets
    ===================

    Time of accomplishment time BS key size Device Type
    ------- ---------- ----------- ------------ -----------------
    DISC OF 1.52 M 18597 00:00:00 20110705 15:30:04
    BP key: situation 18599: AVAILABLE Tablet: NO Tag: TAG20110705T153002
    Item name: / tmp/ssmgme7s_1_1

    List of newspapers archived in defined backup 18597
    The next time that THRD Seq YVERT low low time next YVERT
    ---- ------- ---------- ----------------- ---------- ---------
    1 44424 47606086607 20110619 09:30:05 47606253357 20110619 09:35:40


    But try to restore the newspaper has failed:

    RMAN > run {}
    2 > allocate channel peripheral c type disk;
    3 > restore sequence 44424 archivelog wire 1 to the line of 44424 1 sequence;
    {4 >}

    using the control file of the target instead of recovery catalog database
    allocated channel: c
    channel c: sid = 2180 instance = oracp21 devtype = DISK

    From restoration to 20110705 15:57:46

    output channel: c
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the restore command at 05/07/2011 15:58:50
    RMAN-06027: no newspaper archive found which corresponds to the specification

    What I want is to extract the log archiving either in the expected location (+ FRA / < DBuniquename >), or anywhere on the file system so I can change the record of the database.

    Thanks for help.

    Published by: user11989003 on July 5, 2011 14:06

    until the thread of 44424 1 sequence

    It is a statement in Oracle to get those who have a sequence less than 44424 - indeed, until 44423.

    Here is the documentation on the UNTIL clause:
    http://download.Oracle.com/docs/CD/B19306_01/backup.102/b14194/rcmsynta065.htm#sthref1017

    restore sequence 44424 archivelog wire 1 to the line of 44424 1 sequence

    makes no sense.

    One of these

    restore archivelog sequence 44424 thread 1
    restore archivelog until sequence 44425 thread 1
    

    make sense.

    Hemant K Collette

  • restore the rman tablespace

    Hello world.

    IM using a 11.0.6.0 database running on RHEL 5.

    I have a complete backup every Saturday and every day a backup of the archivelogs.
    I could restore a 2 days with rman tablespace or I can only restore from last Saturday? How?
    If I had 2 full save, how to choose where an I want to restore the storage space?

    Thanks in advance

    Published by: user13748341 on June 14, 2011 06:52

    I have a complete backup every Saturday and every day a backup of the archivelogs.
    I could restore a 2 days with rman tablespace or I can only restore from last Saturday? How?

    If you restore the tablespace, it will render since the last FULL backup.

    If you want to restore to the other the last backup and then mention the backup piece.

  • Remove the archivelogs with RMAN

    Hello

    I usually remove archivelogs with RMAN with command as ' ARCHIVELOG DELETE ALL COMPLETED BEFORE ' SYSDATE - 1' if I have to erase the archivelogs to free the space of FRA.»»

    My question is if I delete the archivelogs will it deletes the records in the catalog also (I think) so backed up on tape. In this case the catalogue is not information for these records even if they are on cassettes, correct?

    So in the case of collection how can I restore them?


    Thank you

    Published by: 822424 on May 15, 2011 19:28

    The catalogue contains information about the backups.

    Before you remove the archivelogs, I assume that you have done a BACKUP ARCHIVELOG (or with the database as a BACKUP database PLUS ARCHIVELOG DATA). Therefore, backups are in the BackupSets that are in the catalog.

    Hemant K Collette

  • Restore the Oracle XE database to another machine

    I have an Oracle XE server on a Windows XP computer, and I want to copy it to a Windows 7 computer.
    On XP, I did a backup through the database "backup" interface graph user (BACKUP. (BAT). The Oracle backup created 3 new folders under C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\
    ARCHIVELOG
    AUTOBACKUP
    BACKUPSET

    I installed XE on the Windows 7 machine and it seems to work.
    Then I had to face the 3 files to backup on a USB and put them in the folder structure on the new Windows 7 machine. I ran the restore from the GUI as administrator (RESTORATION. (BAT). Restore failed, and I can't understand why. I don't know what are the sequence numbers.

    Now I can't get into Apex or Apex_Admin

    Thanks for taking a peek at this.

    The contents of the OXE_RESTORE file is as follows:
    Recovery Manager: Release 10.2.0.1.0 - Production on Sat Jan 8 18:33:11 2011

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    Windows NT Version V6.1
    CPU: 8 - type 586, 4 physical cores
    Process affinity: 0x00000000
    Memory (success/Total): Ph: 6031 M / 8183 M, Ph + FCP: 13737 M / 16364 M, GOES: 1973M / 2047 M
    From debugging disabled

    connected to target database: xe (unassembled)

    RMAN > set the echo;
    2 > restore (spfile to autobackup db_recovery_file_dest = 'C:\oraclexe\app\oracle\flash_recovery_area\');
    3 > strength of startup nomount;
    4 > restore (automatic backup controlfile);
    5 > change the editing of the database;
    6 > configure controlfile autobackup.
    7 > restore database;
    8 >
    echo on

    From restoration to January 8, 11
    using the control file of the target instead of recovery catalog database
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = 37 devtype = DISK

    destination field of recovery: C:\oraclexe\app\oracle\flash_recovery_area\
    name of database (or unique name of database) used for research: XE
    channel ORA_DISK_1: autobackup found in the recovery area
    channel ORA_DISK_1: autobackup found: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_. BKP
    channel ORA_DISK_1: restore SPFILE full automatic backup
    Finished restore at 8 January 11

    Oracle instance started

    Total System Global Area 805306368 bytes

    Bytes of size 1289996 fixed
    239075572 variable size bytes
    562036736 of database buffers bytes
    Redo buffers 2904064 bytes

    From restoration to January 8, 11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = 36 devtype = DISK

    destination field of recovery: C:\oraclexe\app\oracle\flash_recovery_area
    name of database (or unique name of database) used for research: XE
    channel ORA_DISK_1: autobackup found in the recovery area
    channel ORA_DISK_1: autobackup found: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_. BKP
    channel ORA_DISK_1: restore full automatic backup of control file
    name of the output file = C:\ORACLEXE\ORADATA\XE\CONTROL. DBF
    Finished restore at 8 January 11

    mounted database
    output channel: ORA_DISK_1

    RMAN old configuration settings:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration settings:
    CONFIGURE CONTROLFILE AUTOBACKUP
    new RMAN configuration settings are stored successfully

    From restoration to January 8, 11
    From implicit overlapping Backup 8 January 11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = 35 devtype = DISK
    Cut objects 1
    Backup of implicit overlap ended in January 8, 11

    Starting copy of implicit cross-8 Jan 11
    using channel ORA_DISK_1
    Copy of implicit overlap finished-8 Jan 11

    the search for all files in the recovery area
    cataloging files...
    cataloging done

    List of cataloged files
    =======================
    File name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_. ARC
    File name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_. ARC
    File name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_. BKP

    using channel ORA_DISK_1

    channel ORA_DISK_1: from datafile backupset restoration
    channel ORA_DISK_1: specifying datafile (s) to restore from backup set
    restoring datafile 00001 to C:\ORACLEXE\ORADATA\XE\SYSTEM. DBF
    restoring datafile 00002 to C:\ORACLEXE\ORADATA\XE\UNDO. DBF
    restoring datafile 00003 to C:\ORACLEXE\ORADATA\XE\SYSAUX. DBF
    restoring datafile 00004 to C:\ORACLEXE\ORADATA\XE\USERS. DBF
    restoring datafile 00005 to C:\ORACLEXE\ORADATA\XE\APEX_1244616068553754.DBF
    channel ORA_DISK_1: backup C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2011_01_07\O1_MF_NNNDF_TAG20110107T194642_6LHDZM3X_ piece reading. BKP
    channel ORA_DISK_1: restored the backup part 1
    piece handle = C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2011_01_07\O1_MF_NNNDF_TAG20110107T194642_6LHDZM3X_. Tag BKP = TAG20110107T194642
    channel ORA_DISK_1: restore complete, duration: 00:00:56
    Finished restore at 8 January 11

    Complete recovery manager.

    Recovery Manager: Release 10.2.0.1.0 - Production on Sat Jan 8 18:34:37 2011

    Copyright (c) 1982, 2005, Oracle. All rights reserved.

    Windows NT Version V6.1
    CPU: 8 - type 586, 4 physical cores
    Process affinity: 0x00000000
    Memory (success/Total): Ph: 6021 M / 8183 M, Ph + FCP: 13238 M / 16364 M, GOES: 1973M / 2047 M
    From debugging disabled

    connected to target database: XE (DBID = 2604800077, is not open)

    RMAN > set the echo;
    2 > restore database;
    3 > alter database open resetlogs;
    4 >
    echo on

    From back-8 Jan 11
    using the control file of the target instead of recovery catalog database
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = 38 devtype = DISK

    starting media recovery

    Archive journal 1 sequence 375 thread is already on the disk that the file C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_. ARC
    archive log thread 1 sequence 376 is already on the disk that the file C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_. ARC
    archive log filename = C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_. Wire ARC = 1 sequence = 375
    archive log filename = C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_. Wire ARC = 1 sequence = 376
    Cannot find the log archiving
    archive log thread = 1 sequence = 377
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the command recover at 08/01/2011 18:34:47
    RMAN-20000: abnormal termination of job step
    RMAN-06054: recovery of media asking unknown journal: thread 1 seq 377 lowscn 11715842

    Complete recovery manager.

    After playing a bit, I solved the problem.
    There are a total of four records in \FLASH_RECOVERY_AREA\XE\ I had copied only three of the four.
    ARCHIVELOG
    AUTOBACKUP
    BACKUPSET

    Windows services store the files in open ONLINELOG, so I had to shut down services and then work with the folder. That's why four files must be moved and copied onto the new machine:
    ARCHIVELOG
    AUTOBACKUP
    BACKUPSET
    ONLINELOG

    If you are running as an administrator "Backup" of the GUI, it runs the BACKUP. BEATS, a batch file called RMAN. Once that is done, copy the four files to the same location on the target computer, and then run as administrator 'Restore' (RESTORATION. (BAT).

    In another forum someone told to be sure that the 'archive logs' are copied. It should be interpreted to mean not only the folder 'ARCHIVELOG', but all four files.

    Published by: PhilMan2 on January 11, 2011 11:28

  • restore the archived logs

    Hello
    in 10g R2, my DB is saved (all databases, files and control logs archived) every day. Now, I need to restore the newspapers archived (from May 1 to May 15) in a folder. How can I do?
    Thank you.

    Please refer to the RESTORE ARCHIVELOG command in the RMAN reference manual.

    ---------------------------
    Sybrand Bakker
    Senior Oracle DBA

    Experts: those who do not read the documentation.

  • Restore the database to the previous SNA

    Thank you for taking my qustions?


    I have a situation where I'm going to string together several jobs very long. If something goes wrong I want to restore the database to a specific number of SNA. I do not have the return of flame cutting, because I want things to run as fast as possible.

    If I should have to restore the database because a job fails, do I restore the database from a backup?

    Could I just restore the backup control file and then run rman > recover database until the SNA = 122222222; If Yes, how Rman knows what archivelogs to restore and what happens if SNA has not been archived yet?

    Thank you
    Kathie

    11.1.0.7 windows 2008.

    Hi koko.

    You must restore the full database back and go for an incomplete recovery using backup controlfile.
    Because it is not possible to restore the data files SNA number.

    Anil

  • We can to restore the content of a game without the backup control file?

    Hello

    I went in earlier today, a situation when someone (it wasn't me this time!):
    (1) a to back up a database and its archivelogs, in a compressed backup sets;
    (2) pushed the files to another server and
    (3) deleted everything on the server source, including ALL control files and control files.

    As he tried to recover the control file was missing and asked for help... I worked around the issue by using the snapshot controlfile he had forgotten (lucky me!)

    Now I can not remove from my mind the idea that I won't be so lucky the next time... I wonder if there is another way to work around this problem?

    Does anyone have an idea how to restore the contents of a backupset when we lack ALL control files and their backups? I tried to save the backup in the controlfile to a different database, but it does not work. I didn't find anyway to recreate a controlfile with a specific dbid without data files (and those who are in the backupset...).

    Any other idea? Best regards

    Gregory

    Hi arkzoyd,
    Is the only way to restore data from a backup set files using rman an instance and a controlfile so the answer is no.
    Kind regards
    Tycho

Maybe you are looking for