Restore controlfile from leagato tape backup

I am using legato tool to perform rman tape backup.
I use the following script on legato to get the controlfile backup.
"backup current controlfile format '%d_%s_%p.ctrl'; "
If I lost the controlfile how do i restore controlfile from the tape. Assume that the DB in nomount stage.

Hi,
backing up autobackup controlfiles to legato is possible. All you have to do is to configure autobackup accordingly. By default autobackup controlfiles will get written to disk.
However i strongly recommend to use a rman backup catalog. This will save you a lot of time consuming trouble if you need to restore your database.
The rman catalog database itself does not need any license and is rather small (5 GB on disk, 512 MB memory).
Restoring the control file will be something like this:
set controlfile autobackup format for device type sbt to '%F';
restore controlfile from autobackup;
Ronny Egner
My Blog: http://blog.ronnyegner-consulting.de

Similar Messages

  • Restore controlfile from tape backup without autobackup setting on

    I am testing a scenraio of restoring control file if we loose all control files.
    My RMAN settings for CONTROLFILE AUTOBACKUP is OFF. But, I have taken a backup of controlfile using 'BACKUP CURRENT CONTROL FILE' .
    When I tried to restore control file. I am receiving following error:
    RMAN> run {
    2> allocate channel c101 type sbt_tape;
    3> restore controlfile ;
    4> }
    allocated channel: c101
    channel c101: sid=153 devtype=SBT_TAPE
    channel c101: VERITAS NetBackup for Oracle - Release 6.0 (2006110304)
    Starting restore at 24-MAY-2007 13:44:59
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 05/24/2007 13:44:59
    RMAN-06563: control file or SPFILE must be restored using FROM AUTOBACKUP
    My question is, How can I restore control file from tape backup without CONTROLFILE AUTOBACKUP setting ON.
    It sounds like, There is no way we can restore control file from tape backup if you've not set the CONTROLFILE AUTOBACKUP is ON.
    Please advice

    When all controlfiles are lost and a recovery catalog is NOT used, RMAN has no information , where to find the controlfile backup. It's not enough to specify the channel, such a channel could hold many different backups from many different databases. You have tell , which database and which backupset. Modify your run block:
    SET DBID <DBID of the database,for which you want to restore the controlfile>;
    RESTORE CONTROLFILE FROM <name_of_backupiece_which_contains_the_controlfile backup>';
    Werner

  • FOR EXPERTS!! How to restore controlfile from tape using TSM??

    Hi ,
    I have a backup of my database (controlfiles, datafiles and archives) on tapes (TSM).
    I'm doing some tests and i delete all my controlfiles.
    Now i'm trying to restore the control file using the following:
    RMAN>set DBID=1489198124;
    RMAN>run{
    allocate channel t1 device type sbt_tape parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo_capdb15p.opt)';
    restore controlfile from autobackup;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 05/10/2007 16:25:30
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
    The autobackup is OFF now (i will put this ON later and become a production enviroment).
    How can i get the controlfile backup from tape. I have this backup on tape made by RMAN using TIVOLI STORAGE MANAGER.
    Tks,
    Paulo.

    This is the command:
    run {
    allocate channel t1 device type sbt_tape parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo_capdb15p.opt)';
    backup current controlfile;
    This is my backups!!!
    RMAN> list backup of controlfile;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    5234 Incr 0 7.25M SBT_TAPE 00:00:06 10-MAY-07
    BP Key: 5236 Status: AVAILABLE Compressed: NO Tag: SEMANAL
    Handle: BKP_HOT_SEMANAL_02ihckld_1_1 Media: 35240
    Control File Included: Ckp SCN: 215589 Ckp time: 10-MAY-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    5254 Incr 1 7.25M SBT_TAPE 00:00:04 10-MAY-07
    BP Key: 5260 Status: AVAILABLE Compressed: NO Tag: SEMANAL
    Handle: BKP_HOT_SEMANAL_05ihcksm_1_1 Media: 35240
    Control File Included: Ckp SCN: 215769 Ckp time: 10-MAY-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    5315 Incr 0 7.25M SBT_TAPE 00:00:05 10-MAY-07
    BP Key: 5327 Status: AVAILABLE Compressed: NO Tag: SEMANAL
    Handle: BKP_HOT_SEMANAL_0aihcld9_1_1 Media: 35212
    Control File Included: Ckp SCN: 216284 Ckp time: 10-MAY-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    5454 Incr 0 7.25M SBT_TAPE 00:00:04 10-MAY-07
    BP Key: 5459 Status: AVAILABLE Compressed: NO Tag: SEMANAL
    Handle: BKP_HOT_SEMANAL_0gihcmjn_1_1 Media: 35240
    Control File Included: Ckp SCN: 217433 Ckp time: 10-MAY-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    5553 Incr 0 7.11M DISK 00:00:01 10-MAY-07
    BP Key: 5556 Status: AVAILABLE Compressed: NO Tag: SEMANAL
    Piece Name: /oracle/product/10.2.0/db/dbs/BKP_HOT_SEMANAL_0nihcv0m_1_1
    Control File Included: Ckp SCN: 260191 Ckp time: 10-MAY-07

  • Is it possible to restore database from a full backup without controlfile?

    Hi,
    I have done a full backup for the database oracle 11g using:
    run{
    allocate channel c1 type disk;
    set limit channel c1 kbytes 102400;
    sql 'alter system archive log current';
    backup full tag 'dbfull' format 'd:\dbbackup\f_%d_%u_%s_%p_%t' database include current controlfile;
    backup archivelog all delete input format 'd:\dbbackup\al__%d_%u_%s_%p_%t';
    release channel c1;
    but, I deleted all the datafiles include all control files.
    Is it possible to restore the database?
    Is there a way to restore the control file from the backup files?

    Thanks Werner!
    I finally find the correct backuppiece for the controlfile.
    D:\dbbackup
    2010-03-19 18:41 <DIR> .
    2010-03-19 18:41 <DIR> ..
    2010-03-19 18:41 5,711,872 AL__ORCL_04L8VSN6_4_1_714076902
    2010-03-19 18:41 104,857,600 F_ORCL_02L8VSJ0_2_10_714076768
    2010-03-19 18:41 104,857,600 F_ORCL_02L8VSJ0_2_11_714076768
    2010-03-19 18:41 104,857,600 F_ORCL_02L8VSJ0_2_12_714076768
    2010-03-19 18:41 24,535,040 F_ORCL_02L8VSJ0_2_13_714076768
    2010-03-19 18:39 104,857,600 F_ORCL_02L8VSJ0_2_1_714076768
    2010-03-19 18:39 104,857,600 F_ORCL_02L8VSJ0_2_2_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_3_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_4_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_5_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_6_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_7_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_8_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_9_714076768
    2010-03-19 18:41 9,830,400 F_ORCL_03L8VSMP_3_1_714076889 ---->the controlfile backup piece.the file name contains '03' instead of '02'(datafile).
    After run 'start nomount', I restore the controlfiles using 'restore controlfile from 'd:\dbbackup\F_ORCL_03L8VSMP_3_1_714076889';
    The key point is to find the right backup file piece for the control file.

  • Restoring controlfile from rman

    Hi
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
    on OEL4
    I have lost all the control files (infact deleted knowingly to simulate ). i have a full database backup in recovery catalog. I do not know the dbid of database.
    I am not able to connect to target database from rman it shows.
    RMAN> connect target sys/prod@PROD
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    ORA-12528: TNS:listener: all appropriate instances are blocking new connectionsIs there anyway i can restore controlfiles from rman ? or i need to create controlfiles manually.
    Thanks
    Edited by: user8896122 on Jan 3, 2010 6:03 AM

    You can try on the machine hosting the database:
    C:\Users\Pierre>rman target /
    Recovery Manager: Release 10.2.0.1.0 - Production on Sun Jan 3 15:29:02 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database (not started)
    RMAN> startup nomount
    Oracle instance started
    Total System Global Area     805306368 bytes
    Fixed Size                     1289996 bytes
    Variable Size                213909748 bytes
    Database Buffers             587202560 bytes
    Redo Buffers                   2904064 bytes
    RMAN>and then you can try to connect to recovery catalog.

  • Error 150:30 after restoring CS4 from Time Machine backup

    I just got myself a new Imac with OS X Maverick and set it up using a time-machine-backup. My Adobe CS4 now has a Problem with the license and shows me error: 150:30?
    Do I need to uninstall CS4 and reinstall? Is there any easier solution to this problem?
    Thank you anyone for some help.
    chris

    Thanks a lot for your help......everything back to normal after reeinstallation.
    chris
    Am 29.09.2014 um 23:28 schrieb John Waller <[email protected]>:
    Error 150:30 after restoring CS4 from Time Machine backup
    created by John Waller in Adobe Creative Cloud - View the full discussion
    Do I need to uninstall CS4 and reinstall?
    Unfortunately yes.
    Also run the Cleaner Tool prior to reinstalling
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Restoring from Time Machine backups invariably breaks the activation mechanism (Error 150:30) and there's no easy way to fix a 150:30 error other than via re-installing.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6775090#6775090
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe Creative Cloud by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Can you help I was having problems with my iPod so I restored it but I accidentally set it up as a new iPod is there any way to restore it from an old  backup when I right click iPod in iTunes there isn't one anyway to recover one or find it on computer

    Hi can you help I was having problems with my iPod so I restored it but I
    accidentally set it up as a new iPod is there any way to restore it from an old
    backup when I right click iPod in iTunes there isn't one anyway to recover one
    or find it on computer

    The following says how to restore from backup.
    iOS: How to back up
    If you go to iTunes>Preferences>Devices you can see if you have an iTunes backup. You need one dated before or the exact time you started the restore.

  • HT201250 Circle and cross through iTunes icon afte the seagate hard drive replaced and restored data from time machine backup.

    Circle and cross through iTunes icon: had the seagate hard drive replaced and restored data from time machine backup. Why does the iTunes icon have a circle and cross through it? As though incomplete? tried everything and still Circle and cross through iTunes icon.

    No it isn't something you'd find on the computer, it has to be custom installed from the 10.6 installer disc or Software Update if it wasn't before.  It allows you to use older PowerPC applications on your Mac.   On the other hand double check the version of iTunes you have does not require 10.7 minimum either.

  • HT201250 (1) Where is the "Time Machine menu" and the choice to "Enter Time Machine" (mentioned in the "Restoring data from Time Machine backups" section)?

    1) Where do I find the "Time Machine menu" and the choice to "Enter Time Machine" (as mentioned in the "Restoring data from Time Machine backups" section in the Mac Support article "Mac Basics: Time Machine")?
    2) How would I restore e.g. a particular photo from a backup I made with Time Machine? I can see how this is done with Word documents, but can't see how to do it with photos?

    Welcome to Apple Support Communities
    1. The Time Machine icon is on the menu bar.
    2. If you want to do that with individual photos, it's the same way as for documents. If you want to do it with iPhoto, you have to restore the whole iPhoto library, not only one photo

  • How do I restore files from time machine backups made before reformatting macbook air?

    How do I restore files from time machine backups made before reformatting macbook air?

    The section titled "Restoring data from Time Machine backups" in the following may help: http://support.apple.com/kb/HT1427

  • How to restore Data from past iCloud backup? I lost my spreadsheets from Numbers, need help.

    How to restore Data from past iCloud backup?
    Is there a way where i can retrieve my spreadsheets from the past iCloud backup of numbers?

    Your Numbers documents were synced with iCloud so they would be stored on the server rather than being included in the backup.  If you were signed into your iCloud account on a Mac that you were backing up with Time Machine, you could restore them from your Time Machine backup.

  • Spfile restore from RMAN Tape backup to different server

    Hi All,
    First of all let me thank you to the forum from which I keep updating my knowledge on oracle.
    I am having issues when trying to restore spfile from controlfile autobackup to different server. Problem and other details are below:
    Target version : 10.2.0.2
    Netbackup : 6.5.6
    Taken the tape backup through rman on server ABC and trying to restore the spfile from controlfile autobackup to server XYZ. Tape backup has been taken today morning and trying restore now.
    Both servers ABC and XYX have been added (as clients) to netbackup policy.
    Below is the syntax I used for restoring spfile and getting error as mentioned.
    RMAN> run {
    2> set controlfile autobackup format for device type 'SBT_TAPE' to '%F';
    3> allocate channel ch00 device type 'sbt_tape'
    4> parms='ENV=(NB_ORA_SERV=Mediaserver,NB_ORA_CLIENT=XYZ)';
    5> restore spfile to pfile '/oracle/product/10g/dbs/inittest.ora' from
    6> autobackup maxseq 5 maxdays 3;
    7> }
    executing command: SET CONTROLFILE AUTOBACKUP FORMAT
    allocated channel: ch00
    channel ch00: sid=36 devtype=SBT_TAPE
    channel ch00: Veritas NetBackup for Oracle - Release 6.5 (2010042405)
    Starting restore at 03-AUG-2011
    channel ch00: looking for autobackup on day: 20110803
    channel ch00: looking for autobackup on day: 20110802
    channel ch00: looking for autobackup on day: 20110801
    channel ch00: no autobackup in 3 days found
    released channel: ch00
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 08/03/2011 14:03:26
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
    Not sure where I am doing wrong. The same can be restored onto same host (I.E ABC) without any issues .
    Request your help and guidance.
    Thanks,
    SSS

    I don't know whether you can restore to a different server. The easier way should be
    RMAN> restore spfile to pfile 'YOUR_PFILE_NAME' from autobackup;
    then copy this to the new host.
    Check this link
    restore spfile to another host
    Hope this helps

  • RMAN error when restoring controlfile from tape

    Hi,
    We have a Production database with instance name PROD.
    We use Symantec Netbackup software to backup this database to tape library.
    We want to test some recovery scenarios on a test server. So we want to restore the production backups from Tape to this test server.
    We did the following:
    Cloned the ORACLE Home to the Test Server.
    Changed the db_name parameter to PROD and also set ORACLE_SID to PROD.
    then we connected to RMAN and ran the following command to restore the control files:
    RMAN> run {
    set dbid 4155532403
    set controlfile autobackup format for device type 'sbt_type' to '%F';
    set until time "to_date('16/12/2012:10:13:37','dd/mm/yyyy:hh24:mi:ss')";
    allocate channel t1 device type 'sbt_tape';
    SEND 'NB_ORA_SERV=riysvbkp-001,NB_ORA_CLIENT=lh-erp';
    restore controlfile to '/testerp/dbexec/tmp/cf1.ctl' from autobackup;
    executing command: SET DBID
    database name is "PROD" and DBID is 4155532403
    executing command: SET CONTROLFILE AUTOBACKUP FORMAT
    executing command: SET until clause
    allocated channel: t1
    channel t1: SID=171 device type=SBT_TAPE
    channel t1: Veritas NetBackup for Oracle - Release 7.1 (2011082510)
    sent command to channel: t1
    Starting restore at 17-DEC-12
    channel t1: looking for AUTOBACKUP on day: 20121216
    channel t1: AUTOBACKUP found: c-4155532403-20121216-01
    channel t1: restoring control file from AUTOBACKUP c-4155532403-20121216-01
    released channel: t1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 12/17/2012 08:34:41
    ORA-19870: error while restoring backup piece c-4155532403-20121216-01
    ORA-19507: failed to retrieve sequential file, handle="c-4155532403-20121216-01", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
    Failed to process backup file <c-4155532403-20121216-01>
    Here you can see that AUTOBACKUP is found but RMAN is unable to process the backup piece.
    I am not able to see any errors in the log files. Please advise.
    Thanks,
    Muneer.

    Thanks.
    The earlier error is gone and now I am getting the following error:
    channel t1: looking for AUTOBACKUP on day: 20121216
    channel t1: AUTOBACKUP found: c-4155532403-20121216-01
    channel t1: restoring control file from AUTOBACKUP c-4155532403-20121216-01
    released channel: t1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 12/17/2012 14:34:25
    ORA-19870: error while restoring backup piece c-4155532403-20121216-01
    ORA-19507: failed to retrieve sequential file, handle="c-4155532403-20121216-01", parms=""
    ORA-27029: skgfrtrv: sbtrestore returned error
    ORA-19511: Error received from media manager layer, error text:
    Backup file <c-4155532403-20121216-01> not found in NetBackup catalog

  • RMAN restore from monthly tape backup

    hello!
    i have one more question regarding rman and tape backups: we don't want to store the rman recovery information in a separate database, so all the information is in the control files. but for revision we need to save one full backup per month. in addition to the databases we need files from different servers etc. on this tape-backups. so we decided to keep one tape set per month in a safe place -> is it possible to restore a rman backup from this tapes, e.g. 3 years afterwards (on a different machine)? thanks.
    bye,
    christian

    Hi christian,
    Can you give more info?
    As I understand it you do not want to use a recovery catalog ("we don't want to store the rman recovery information in a separate database").
    But if you store the rman backup info in the controlfile only you will limit the amount of rman information to your init parameter control_file_record_keep_time.
    Do you make rman backups to tape directly using a MML or do you make rman backups to disk which than get copied to tape (OS backup)?
    Regards,
    Tycho

  • Restore controlfile from backup location

    Hi All,
    I have a RMAN backup and want to recover my data from backup. RMAN backup has taken by someone but during restore to another DB server I am confused at controlfile point. I can see two controlfile in RMAN backup. Do I need to add both controlfile in restore command or any one controlfile would be okay? Please suggest.
    I run below command - rman > restore control file from '<backup location>';
    Thanks...
    Edited by: user12115 on Jun 15, 2012 5:23 AM

    I have a RMAN backup and want to recover my data from backup. RMAN backup has taken by someone but during restore to another DB server I am confused at controlfile point. I can see two controlfile in RMAN backup. Do I need to add both controlfile in restore command or any one controlfile would be okay? Please suggest.
    I run below command - rman > restore control file from '<backup location>';In you log file one of backup set contains of data files another backup set contains Controlfile + SPFILE(optional)
    Or else you can check from source database
    RMAN> list backup of controlfile;
    Note that backup piece according to date, and you can use that piece name to restore controlfile.

Maybe you are looking for

  • What does it take to get Firefox 28 to play videos on YouTube?

    ''locking as a dupe of https://support.mozilla.org/en-US/questions/991198'' Searching support for two nights has led me to an answer because the help is almost always outdated. YouTube videos will not play using Firefox on my new desktop computer. I

  • The monitor of my nano(5th) has broken,but my appleCare has expired.

    What can i do, if i still want to use nano, except buying a new one? because it is quite heavy for me to buy one, so any way to fix it?

  • Sql Loader Skipping fields in a csv file

    Hi, I have a comma delimited flat file with more fields than I need and am curious if there is a loader technique to skip some of the fields. E.g. Given a three field file, I want to associate the 1st and 3rd fields with table columns and ignore the

  • Apple Mail consuming lots of CPU

    Since I've upgraded my MacBook Pro from Snow Leopard (10.6.8) to Mountain Lion Apple Mail has been behaving strangely – Activity Monitor shows Mail consuming about 100% CPU for hours at a time. Mail is often very sluggish at displaying messages. I've

  • Reg. table partition

    Hi Shall anyone explain about table partition. What it is and when it can be used. regards Sridhar [email protected]