How to restore SPFILE & Control File ???

Dear Experts,
Please bear with me for this simple question.
I am regularly taking backup's to tape using Tivoli MML. My backup's are all successful. We do not have recovery catalog database configured. Below is my full database backup script:
OS: Windows 2008 R2 64-bit
DB: Oracle 11g R2 (11.2.0.2)
run
allocate channel c1 type SBT_TAPE parms 'ENV=(TDPO_OPTFILE=C:\Program Files\Tivoli\TSM\AgentOBA64\tdpo.opt)';
allocate channel c2 type SBT_TAPE parms 'ENV=(TDPO_OPTFILE=C:\Program Files\Tivoli\TSM\AgentOBA64\tdpo.opt)';
backup as compressed backupset format '%d_%u.bkp' database ;
sql "alter system switch logfile";
backup as compressed backupset format '%d_%u.alg' archivelog all delete input;
release channel c1 ;
release channel c2 ;     
}and below is the log of the full database bakcup:
allocated channel: c1
channel c1: sid=58 devtype=SBT_TAPE
channel c1: Data Protection for Oracle: version 5.5.2.0
allocated channel: c2
channel c2: sid=57 devtype=SBT_TAPE
channel c2: Data Protection for Oracle: version 5.5.2.0
sql statement: alter system switch logfile
Starting backup at 26-OCT-11
channel c1: starting compressed full datafile backupset
channel c1: specifying datafile(s) in backupset
input datafile fno=00001 name=D:\ORACLE\ORADATA\ABCDB\SYSTEM01.DBF
input datafile fno=00004 name=D:\ORACLE\ORADATA\ABCDB\USERS01.DBF
input datafile fno=00008 name=D:\ORACLE\ORADATA\ABCDB\HR_DATA
input datafile fno=00009 name=D:\ORACLE\ORADATA\ABCDB\PROC_DATA
channel c1: starting piece 1 at 26-OCT-11
channel c2: starting compressed full datafile backupset
channel c2: specifying datafile(s) in backupset
input datafile fno=00003 name=D:\ORACLE\ORADATA\ABCDB\SYSAUX01.DBF
input datafile fno=00005 name=D:\ORACLE\ORADATA\ABCDB\SYS_DATA
input datafile fno=00002 name=D:\ORACLE\ORADATA\ABCDB\UNDOTBS01.DBF
input datafile fno=00007 name=D:\ORACLE\ORADATA\ABCDB\GL_DATA
input datafile fno=00006 name=D:\ORACLE\ORADATA\ABCDB\AUD_DATA
channel c2: starting piece 1 at 26-OCT-11
channel c2: finished piece 1 at 26-OCT-11
piece handle=ABCDB_4mmq31ib.bkp tag=FULLDB_26OCT2011_2 comment=API Version 2.0,MMS Version 5.5.2.0
channel c2: backup set complete, elapsed time: 00:00:15
channel c2: starting compressed full datafile backupset
channel c2: specifying datafile(s) in backupset
including current control file in backupset
channel c2: starting piece 1 at 26-OCT-11
channel c1: finished piece 1 at 26-OCT-11
piece handle=ABCDB_4lmq31ib.bkp tag=FULLDB_26OCT2011_2 comment=API Version 2.0,MMS Version 5.5.2.0
channel c1: backup set complete, elapsed time: 00:00:19
channel c2: finished piece 1 at 26-OCT-11
piece handle=ABCDB_4nmq31ir.bkp tag=FULLDB_26OCT2011_2 comment=API Version 2.0,MMS Version 5.5.2.0
channel c2: backup set complete, elapsed time: 00:00:10
Finished backup at 26-OCT-11
Starting Control File and SPFILE Autobackup at 26-OCT-11
piece handle=c-2814270906-20111026-00 comment=API Version 2.0,MMS Version 5.5.2.0
Finished Control File and SPFILE Autobackup at 26-OCT-11
sql statement: alter system switch logfile
Starting backup at 26-OCT-11
current log archived
channel c1: starting compressed archive log backupset
channel c1: specifying archive log(s) in backup set
input archive log thread=1 sequence=267 recid=160 stamp=765559302
channel c1: starting piece 1 at 26-OCT-11
channel c2: starting compressed archive log backupset
channel c2: specifying archive log(s) in backup set
input archive log thread=1 sequence=268 recid=161 stamp=765559508
input archive log thread=1 sequence=269 recid=162 stamp=765559508
input archive log thread=1 sequence=270 recid=163 stamp=765560395
channel c2: starting piece 1 at 26-OCT-11
channel c1: finished piece 1 at 26-OCT-11
piece handle=ABCDB_4pmq31jj.alg tag=ARCHIVE_26OCT2011_@ comment=API Version 2.0,MMS Version 5.5.2.0
channel c1: backup set complete, elapsed time: 00:00:08
channel c2: finished piece 1 at 26-OCT-11
piece handle=ABCDB_4qmq31jj.alg tag=ARCHIVE_26OCT2011_@ comment=API Version 2.0,MMS Version 5.5.2.0
channel c2: backup set complete, elapsed time: 00:00:08
channel c1: starting compressed archive log backupset
channel c1: specifying archive log(s) in backup set
input archive log thread=1 sequence=271 recid=164 stamp=765560433
input archive log thread=1 sequence=272 recid=165 stamp=765560434
channel c1: starting piece 1 at 26-OCT-11
channel c1: finished piece 1 at 26-OCT-11
piece handle=ABCDB_4rmq31jr.alg tag=ARCHIVE_26OCT2011_@ comment=API Version 2.0,MMS Version 5.5.2.0
channel c1: backup set complete, elapsed time: 00:00:04
Finished backup at 26-OCT-11
Starting Control File and SPFILE Autobackup at 26-OCT-11
piece handle=c-2814270906-20111026-01 comment=API Version 2.0,MMS Version 5.5.2.0
Finished Control File and SPFILE Autobackup at 26-OCT-11
released channel: c1
released channel: c2
RMAN>I want to restore SPFILE and controlfile on a new host. I did the following to restore:
1) started database instance in nomount mode from RMAN (it started db with dummy parameter file)
2) Set the dbid
3) restore SPFILE/controlfile
But the command says, I have to restore from autobackup. There is no autobackup controlfile available on this server. How do i tell the restore command to restore SPFILE & Controlfile from the tape library?
Appreciate your help in this regard.
Thanks
Prem

Dear ,
Do the following for restore process from backup;
RMAN> restore spfile from autobackup;
note : if given error like this:
RMAN 06172 ,
So you should specify the path where the bkppice availabe
RMAN> restore spfile from 'write the location here';
or
RMAN> restore spfile from autobackup db_flash_recovery_dest=' the location of flash recovery';
Then
SQL > Startup nomount ............... it should read the spfile
and then restore the Controlfile
RMAN> restore controlfile from autobackup;
Hopes it help you
Regards

Similar Messages

  • How to restore a control file without having its backup

    Hi,
    Can any one please suggest me how to restore a control file without having its backup.
    Thanks

    To add to what SB said, in years past the instructions for re-creating the control file manually were contained in the DBA Administration manual. It used to be and may still be common to be taking and saving a "backup control file to trace" for this purpose.
    If you lost only the primary copy of the control file and it is an OS file then while the database is shutdown you can copy the secondary over the primary and then use if to start the database. If the control file is stored in ASM then there should be a way to perform the copy via ASM.
    If you use rman for backups then a copy of the control file should be part of the backup process and you can retrieve it from the backup set then perform recovery using the backup control file though I do note the OP said something to the effect no backup exists. Still, I have knows of instances where the DBA did not realize that the backup set contained the control file and the spfile so I think this is worth mentioning just in case.
    HTH -- Mark D Powell --

  • How to restore the control fie? without having RMAN catalog.

    Hi ,
    can anyone help me out here.???
    How can i restore the control file.if i dont have the RMAN catalog.
    Please provide me steps that'll be helpful. I am frsher in oracle DBA
    Please mail me: [email protected]
    Regards
    Vikas Singh

    Hi Vikas,
    You can restore the control if you have the full backup of your database in some location.
    Lets assume you have the full backup piecs in loc "/u02/backup/..bkp"
    steps:
    shut abort;
    startup nomount;
    catalog start with "/u02/backup/..bkp"
    restore spfile from '/u02/backup/..bkp";
    restore controlfile from "/u02/backup/..bkp"
    shut immediate;
    startup mount;
    alter database open;
    Once the db is up with controlfile immediately take the full database backup of your database.
    Let me know having issue after following this.
    -- rohit
    http://dbarohit.blogspot.in/

  • Restore a control file 10gR2

    i got a backset but rman is not restoring the control file from backup set

    So what error you are getting??
    How you are restoring??
    What type of backup do you have??
    Do you have controlfile autobackup??
    Can you see the backups using RMAN??
    Daljit Singh

  • Lightroom - how to restore backed up files (not Lightroom catalogue) from one external drive to another?

    How to restore backed up files (not lightroom catalogue) from one external drive to another.
    I recently backuped my photo files from one external drive to another. The backup (carbon copy cloner) pointed to some corrupt files on the original drive.
    I have deleted those files and am finding good copies of them  in Time Machine backups.
    I want to get rid of the original external drive; use the recent backup as my main external and then back it up onto a brand new drive.
    What I am not sure about is how to point lightroom to the backups so it knows to look on the new drive instead of the old drive and all those exclamation marks and question marks go away.
    There are close to 60,000 images in numerous folders all with one 'parent folder.'
    My best guess is from Lightroom Help - Create and Manage Folders -  Locate Missing Folders
    Can I point to the one parent folder and all the subfolders will come back?
    Is this the process to recover files into lightroom and will there be a problem with so many photos?

    http://www.computer-darkroom.com/lr2_find_folder/find-folder.htm

  • How to restore a deleted file from the iCloud

    How to restore a deleted file from the iCloud

    first you right click on the ipad (on the left in itunes): restore from backup.
    It will restore to factory ALL data anda apps
    At some point it will offer restoration from itunes, but you will only see backups made on your computer.
    If you wish to restore from icloud you forget itunes on your computer, go to the ipad and follow the instructions. At some point you will be asked to choose from icolud or confgiure it as a new ipad.
    it works

  • How to recreate the control files

    Can someone tell me how to recreate the control file?
    Thanks in advance
    Himanshu

    Hi, You can use the following statement.
    CREATE CONTROLFILE
    SET DATABASE prod
    LOGFILE GROUP 1 ('/u01/oracle/prod/redo01_01.log',
    '/u01/oracle/prod/redo01_02.log'),
    GROUP 2 ('/u01/oracle/prod/redo02_01.log',
    '/u01/oracle/prod/redo02_02.log'),
    GROUP 3 ('/u01/oracle/prod/redo03_01.log',
    '/u01/oracle/prod/redo03_02.log')
    NORESETLOGS
    DATAFILE '/u01/oracle/prod/system01.dbf' SIZE 3M,
    '/u01/oracle/prod/rbs01.dbs' SIZE 5M,
    '/u01/oracle/prod/users01.dbs' SIZE 5M,
    '/u01/oracle/prod/temp01.dbs' SIZE 5M
    MAXLOGFILES 50
    MAXLOGMEMBERS 3
    MAXLOGHISTORY 400
    MAXDATAFILES 200
    MAXINSTANCES 6
    ARCHIVELOG;
    Thanks

  • MAC OSX 10.3.6 having Boot Problems(Gray Screen with Spinning wheel all the Time) ,How to restore all the files without Mac Startpup Disc,still is not possible i want to download full CD from Apple Site, Is It Possible to Download!

    Hi Frnds,Small Favour for me,...
    MAC OSX 10.3.6 having Boot Problem(Gray Screen with Spinning wheel all the Time) ,How to restore all the files without Mac Startpup Disc,still is not possible i want to download full CD from Apple Site, Is It Possible to Download!, Windows 7 is working perfectly , can i restore any files in MAC OSX 10.3.6 through Windows 7, or i need the MAC OSX 10.3.6 Bootable Files i need to enter the MAC OSX....

    Hi Frnds,Small Favour for me,...
    MAC OSX 10.3.6 having Boot Problem(Gray Screen with Spinning wheel all the Time) ,How to restore all the files without Mac Startpup Disc,still is not possible i want to download full CD from Apple Site, Is It Possible to Download!, Windows 7 is working perfectly , can i restore any files in MAC OSX 10.3.6 through Windows 7, or i need the MAC OSX 10.3.6 Bootable Files i need to enter the MAC OSX....

  • Restore Backup control file doubt ?

    when restoring backup control file why we need to set the DBID first?
    Thankx..

    When using a recovery catalog and attempting to restore a lost control file, you encounter an error if there are other databases are registered in the recovery catalog with the same name as your target database. To resolve this error, you must uniquely identify the database by DBID for the restore operation. This requires determining the correct DBID for your database, and then using the SET DBID command to identify the target database before the RESTORE CONTROLFILE.

  • How to restore specific backup file from RMAN?

    Hi,
    I am just begginer with Oracle DB so I do not have a lot knowledge.
    I created two backups at April the 8th and April the 10th.
    I did following from RMAN.
    shutdown immediate
    startup mount
    configure channel 1 device type disk format '/opt/oracle/backup/std_%U';
    backup database
    startup
    output was:
    including current control file in backupset
    including current SPFILE in backupset
    it created two files: std-0so6l0vn(2 GB) and std_0to6l106 (7 MB).
    First question - first file is backup and what is the second file???
    Today I created also backup and it also created two files: std_0uo6morg (2GB) and std_0vo6morv (7MB)
    Now I want to return backup from 2 days ago (*std-0so6l0vn*) but can't;
    I do the the following:
    shutdown immediate
    startup mount
    restore database from '/opt/oracle/backup/std_0so6l0vn'
    but getting error - only SPFILE or control file can be restored from autobackup.
    How to restore my backup from two days ago? It looks to me so complicated and hardly understandable.
    What command to execute from RMAN to succeed in restore?
    Thank you

    I still can not restore database; I tried Honza method.
    i try
    startup nomount
    restore controlfile from 'restore controlfile from /opt/oracle/backup/sss_11o7efd9_1_1';
    And getting message:
    no autobackup found or specified handle is not a valid copy or piece
    list backup returns:
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    19 Full 6.80M DISK 00:00:01 19-APR-13
    BP Key: 19 Status: AVAILABLE Compressed: NO Tag: TAG20130419T025522
    Piece Name: /opt/oracle/backup/sss_11o7efd9_1_1
    Control File Included: Ckp SCN: 3178467 Ckp time: 19-APR-13
    SPFILE Included: Modification time: 02-APR-13
    show all returns:
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
    configuration for DISK channel 2 is ignored
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    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 CHANNEL 1 DEVICE TYPE DISK FORMAT '/opt/oracle/backup/sss_%U';
    CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT '/opt/oracle/backup/sss_%U';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/opt/oracle/product/10.2.0/dbs/snapcf_ctginst1.f'; # default
    Please help I really must restore database but can't do it.

  • How to make the control file consistent when I re-mulitplexing them

    Oracle 10g R2 on the AIX 5.3L
    My current control files (three) from the default set-up are all located in the same directory (/dbbaan/oradata/<SID>/). If I want to change some of the multiplexing of the control file to different directory to avoid the media failure,
    1. I copy one or two control files to different directory.
    2. create a new init_sid.ora from spfile
    2. edit the init_sid.ora file and change the locations of the control file
    3. shutdown/restart the DB using the init_sid.ora.
    4. create the spfile from the pfile
    5 shutdown/restart the DB with new spfile ( "SQL> startup")
    My question is: since there is always time lag between copying and recreating the new init_sid.ora, while the control file(s) are constantly updating, how can Db guarrente the consistency of the DB when I restart the DB (the control file specified in the init_sid.ora may be some time old) ? or does it matter?
    I did above and my DB restart without problem.

    Another problem concerns me. What happen if one of
    multiplexed control file location, which I use a NFS
    of another server, goes down and is not available
    during the operation ( After I restart up the DB)? I
    am sure I will see the error of that control file in
    the alert log.If one of the control files not accessible during operation, Oracle will crash. So you better make sure all of your control file location are reliable and accessible.

  • How to remove bursting control file?

    Hi,
    I attached a bursting control file to a data definition to test the functionality. Now I want to get rid of it, unfortunately I don't see a delete button or anything similar in XML Publisher Administrator. How can I delete the file?
    Thanks,
    Arthur

    Hi Arthur,
    unfortunately, you can't set any inactive_date or delete the file on the whole. But you can, if you have access to the database the following option, to vanish the file:
    DELETE
    FROM XDO_LOBS
    WHERE LOB_CODE=<DATA_DEFINITION_CODE>
    AND LOB_TYPE='BURSTING_FILE';

  • How to create .ctl (control file) to calide excel rows in ssis ?

    In my package i have a requirement to use .ctl control file to valide excel rows. can anyone tell me how to create a .ctl file which will have all of this information. 

    A few assumptions 1st:
    1) I understood the .ctl file can be any ASCII (flat) file of arbitrary format; and that
    2) You will drive the validation rules.
    Since you seem like want to apply the validation as the first step in your package I advocate plugging the Script Transformation task in which happens to expose the "ProcessInputRow" method that in turn allows a developer to intercept each row for inspection.
    This is where you will need to apply much thinking to how to make the validation rules applied in retrospect to the incoming data.
    You drive the code (logic). More through help is a click away here http://www.codeproject.com/Articles/193855/An-indespensible-SSIS-transformation-component-Scr which only covers how to make the row-by-row processing possible.
    If you expected SSIS to have this functionality provided for free - unfortunately this is not happening.
    One of many reason is, what you want to do is extremely laborious.
    Arthur My Blog

  • How to restore/retrieve my files from external HD backed up by Time Machine

    I'm recently a victim of car theft and my MacBook Pro, iPad 2 and external hard drive was stolen from the car. A friend of mine is lending me his MacBook Air to temporary use until I get a new MBP. I use Time Machine and Time Capsule to do frequent back up of all my files. I am attempting to restore my files on this MacBook Air, but I need assistance in trying to retrieve files/information from the external hard drive that I have attached to my MacBook Pro. My previous research on Time Machine/Time Capsule is that it will also back up external hard drive as long as they are attached/mounted to my MacBook Pro during back-ups.
    How do I restore/retrieve the files or folders from my external hard drive using Migration Assistant. Do I need to get another external hard drive? Should I get the same exact brand and type of external hard drive?
    I hope that someone can help me with this? Like most of us, my entire life's work in on my computer and hard drive. I need to be able to retrieve this valuable information.
    Thank you everyone for taking the time to help m

    Sorry you had such an experience.. not the first I have heard..
    Having your entire life on the laptop is a concern!!
    The pondini knowledgebase will give you an excellent starting point. as recovery is not necessarily simple in this scenario.. as the external drive might or might not have been backed up depending on the settings..
    http://pondini.org/TM/FAQ.html
    Look at Q14-20
    Particularly 16 to restore to alternative location.
    You will probably need another disk, just because the disk in the air is small. It does not have to be the same size or model.. just get one big enough to restore everything.

  • How to restore back up files?

    hello,
    I backed up the files from my cell and after the update I want to put them back but the pc suite doesnt has the option of restore back up files or content copier.  I used Nokia ovi suite, don't know which version but i downloaded it with the compatibility of my phone i.e nokia 6303i classic. If anyone knows how can i put back my backup mainly the messages then please let me know. 

    Select 'Backup' (Money Safe with an Arrow Icon) in the Nokia PC Suite window.. Here you will see two options... Back-up as well as Restore...
    --------------------------------------------------​--------------------------------------------------​--------------------------------------------------​--If you find this helpful, pl. hit the White Star in Green Box...

Maybe you are looking for

  • How to calculate totals based on year (date) and comparing othe columns in the same table please

    Hello Good Evening, Could you please help me here how to write condition for self table year records, such 2012 name and acctno match with 2013 name and acctno then total, provided below, create table #tab1 (MasterKey int, AcctNo varchar(12),name var

  • Photoshop Elements 7 files from pc to Photoshop Elements 13 on a mac?

    I have loads of Photoshop Elements 7 .psd files and my catalogue on my old Windows based pc which I want to copy across to Photoshop Elements 13 on my new mac. How do I do this? Please tell me it's easy! I'm new to the mac so please don't assume even

  • Low resolution Logic Pro icon

    Just upgraded to Lion and downloaded Logic Pro from the app store. I am wondering how to get rid of the low resolution icon that it gave me upon download. I have already replaced it multiple times with high resolution icons, no dice. Still pixelated/

  • Search help for standard field BASEG-ZUONR

    Hi Guys, I am working on the standard transaction FB60 for vendor invoice posting.In this transaction item level we have the field Assignment Number BSEG-ZUONR. I need to provide the search help for this field.In SAP we don't have search help for thi

  • Error in bdc-urgent

    Hi experts, if i schedule my BDC(call transaction) program in sm36 it shows the error as frontend function cannot be execute in background. message number (FES002) . please guide me Thanks, ashok