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.

Similar Messages

  • Restore spfile from rman backup ---- error.

    Hi,
    I am trying to execute recovery on new machine ...
    I have done the following steps..
    I have one database as ora10g2 as peroduction database on one machine as hosta
    I have created a catalog on another machine cora10g2 (hostb)
    I have taken a full backup from hosta as per following ...
    the following command execute from hosta machine.
    $ rman target sys/<passwd>@ora10g2 catalog rman/rman@cora10g2 ...
    Backup completed ...
    Now I am trying to restore this backup on hostb machine where i have already rman catlog database ..
    I have done the following setting ...on host b
    set oracle_sid=DUP
    and execute following command ...
    rman target / catalog rman/rman@cora10g2
    RMAN> set dbid 2760732370
    executing command: SET DBID
    database name is "BAAN10G2" and DBID is 2760732370
    RMAN>
    RMAN>
    RMAN> startup force nomount ;
    startup failed: ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file '/oracle/dbs/baan10g2/dbs/initbaan10g2.ora'
    starting Oracle instance without parameter file for retrival of spfile
    Oracle instance started
    Total System Global Area 159383552 bytes
    Fixed Size 1977112 bytes
    Variable Size 67114216 bytes
    Database Buffers 83886080 bytes
    Redo Buffers 6406144 bytes
    RMAN>
    RMAN>
    RMAN>
    RMAN> show all ;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/rman/backup/control/cntrl_%F';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 4 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/baanora3/rman/ora10g2/bkup_db_%d_s%s_P%p_t%t' MAXPIECESIZE 1024;
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    RMAN>
    RMAN>
    RMAN> list backup of spfile ;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2420 Full 7.33M DISK 00:00:01 14-JUN-07
    BP Key: 2426 Status: AVAILABLE Compressed: NO Tag: TAG20070614T182935
    Piece Name: /rman/backup/control/cntrl_c-2760732370-20070614-00
    SPFILE Included: Modification time: 14-JUN-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2509 Full 7.33M DISK 00:00:01 15-JUN-07
    BP Key: 2515 Status: AVAILABLE Compressed: NO Tag: TAG20070615T130416
    Piece Name: /rman/backup/control/cntrl_c-2760732370-20070615-00
    SPFILE Included: Modification time: 15-JUN-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2694 Full 7.33M DISK 00:00:01 15-JUN-07
    BP Key: 2739 Status: AVAILABLE Compressed: NO Tag: TAG20070615T131703
    Piece Name: /rman/backup/control/cntrl_c-2760732370-20070615-01
    SPFILE Included: Modification time: 15-JUN-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2760 Full 80.00K DISK 00:00:01 15-JUN-07
    BP Key: 2763 Status: AVAILABLE Compressed: NO Tag: TAG20070615T163437
    Piece Name: /rman/spfile/spfile.ora
    SPFILE Included: Modification time: 15-JUN-07
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    2769 Full 7.33M DISK 00:00:02 15-JUN-07
    BP Key: 2771 Status: AVAILABLE Compressed: NO Tag: TAG20070615T163441
    Piece Name: /rman/backup/control/cntrl_c-2760732370-20070615-02
    SPFILE Included: Modification time: 15-JUN-07
    RMAN>
    RMAN>
    RMAN> restore spfile from autobackup ;
    Starting restore at 19-JUN-07
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=36 devtype=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: sid=35 devtype=DISK
    allocated channel: ORA_DISK_3
    channel ORA_DISK_3: sid=34 devtype=DISK
    allocated channel: ORA_DISK_4
    channel ORA_DISK_4: sid=33 devtype=DISK
    channel ORA_DISK_1: looking for autobackup on day: 20070619
    channel ORA_DISK_1: looking for autobackup on day: 20070618
    channel ORA_DISK_1: looking for autobackup on day: 20070617
    channel ORA_DISK_1: looking for autobackup on day: 20070616
    channel ORA_DISK_1: looking for autobackup on day: 20070615
    channel ORA_DISK_1: looking for autobackup on day: 20070614
    channel ORA_DISK_1: looking for autobackup on day: 20070613
    channel ORA_DISK_1: no autobackup in 7 days found
    channel ORA_DISK_2: looking for autobackup on day: 20070619
    channel ORA_DISK_2: looking for autobackup on day: 20070618
    channel ORA_DISK_2: looking for autobackup on day: 20070617
    channel ORA_DISK_2: looking for autobackup on day: 20070616
    channel ORA_DISK_2: looking for autobackup on day: 20070615
    channel ORA_DISK_2: looking for autobackup on day: 20070614
    channel ORA_DISK_2: looking for autobackup on day: 20070613
    channel ORA_DISK_2: no autobackup in 7 days found
    channel ORA_DISK_3: looking for autobackup on day: 20070619
    channel ORA_DISK_3: looking for autobackup on day: 20070618
    channel ORA_DISK_3: looking for autobackup on day: 20070617
    channel ORA_DISK_3: looking for autobackup on day: 20070616
    channel ORA_DISK_3: looking for autobackup on day: 20070615
    channel ORA_DISK_3: looking for autobackup on day: 20070614
    channel ORA_DISK_3: looking for autobackup on day: 20070613
    channel ORA_DISK_3: no autobackup in 7 days found
    channel ORA_DISK_4: looking for autobackup on day: 20070619
    channel ORA_DISK_4: looking for autobackup on day: 20070618
    channel ORA_DISK_4: looking for autobackup on day: 20070617
    channel ORA_DISK_4: looking for autobackup on day: 20070616
    channel ORA_DISK_4: looking for autobackup on day: 20070615
    channel ORA_DISK_4: looking for autobackup on day: 20070614
    channel ORA_DISK_4: looking for autobackup on day: 20070613
    channel ORA_DISK_4: no autobackup in 7 days found
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 06/19/2007 18:00:13
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
    RMAN>
    I am not able to restore spfile from rman backup ;;;

    Hi,
    I would like to know few things
    1. How are you setting the db_name ? you can set db_id at RMAN, how are you setting the db_name ?
    2. Do you have any default init file at default location ? if yes, is the db_name parameter set correctly in that file ?
    Since spfile is yet to be restored, you must set the db_name parameter correctly before you start spfile restore.This can be done with init file at default location which can even contain just one paremeter i.e db_name.

  • 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

  • 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

  • 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

  • Restore controlfile without RMAN Command

    Hii..!! RMAN Experts ..
    I have a RMAN Backup of my production database , Accidentally controlfile, datafiles, and redolog filies are lost .
    Important thing is : I want to Restore Controlfile Without RMAN Commands ...
    Is this possible,? If Yes How ??
    Please get me out of this Doubt., & provide me detail steps
    Will be very much thankful to you...

    937382 wrote:
    Hii..!! RMAN Experts ..
    I have a RMAN Backup of my production database , Accidentally controlfile, datafiles, and redolog filies are lost .
    Important thing is : I want to Restore Controlfile Without RMAN Commands ...
    Is this possible,? If Yes How ??
    Please get me out of this Doubt., & provide me detail steps
    Will be very much thankful to you...In an emergency situation, you can try using the SNAPSHOT CONTROLFILE.
    Oracle is very clear on this point and says that this file should not be used for any purpose, but breaking this rule, we can have success and bring a consistent controlfile.
    The snapshot control file is a copy of a database control file created in an operating system-specific location by RMAN. RMAN creates the snapshot control file so that it has a consistent version of a control file to use when either resynchronizing the recovery catalog or backing up the control file.
    The Default Location of SNAPSHOT CONTROLFILE is $ORACLE_HOME/dbs/snapcf_<DB_NAME>.f
    If we recently used RMAN most recent controlfile will be my SNAPSHOT CONTROLFILE.
    See this example:
    SQL> create pfile='/home/oracle/spfile.txt' from spfile;
    SQL> !
    oracle@aix:/home/oracle> cp /u01/app/oracle/product/11.2.0/dbhome_11203/dbs/snapcf_dbtst.f  /home/oracle/control.ora
    oracle@aix:/home/oracle> vi spfile.txt
    "spfile.txt" 27 lines, 957 characters
    *.control_files='/home/oracle/control.ora' ## Change this line
    SQL> startup mount pfile ='/home/oracle/spfile.txt'
    ORACLE instance started.
    Total System Global Area  768294912 bytes
    Fixed Size                  2225448 bytes
    Variable Size             293604056 bytes
    Database Buffers          465567744 bytes
    Redo Buffers                6897664 bytes
    Database mounted.
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    ### We can open reseting log if you have all datafiles restored.
    ### Or you can use RMAN command to restore your database from Controlfile Catalog.
    ### Also you can generate a command to create a new controlfile
    SQL> alter database backup controlfile to trace;Regards,
    Levi Pereira

  • 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

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

  • Restore tablespace from rman

    Hi everyone.
    Im using a 11.0.6.0 database running on RHEL 5.
    i have a full backup every saturday, and everyday a backup of archivelogs.
    Could i restore a tablespace from 2 days ago with rman or i only can restore it from last saturday? how?
    if i had 2 full backup, how to choose from wich one i want restore the tablespace?
    Thanks in advance
    Edited by: user13748341 on 14-jun-2011 6:52

    user13748341 wrote:
    Hi everyone.
    Im using a 11.0.6.0 database running on RHEL 5.I don't think so. Where did you find an 11.ZERO? Oracle's first release at 11 was 11.1
    >
    i have a full backup every saturday, and everyday a backup of archivelogs.
    Could i restore a tablespace from 2 days ago with rman or i only can restore it from last saturday? how?
    if i had 2 full backup, how to choose from wich one i want restore the tablespace?
    Thanks in advance
    Edited by: user13748341 on 14-jun-2011 6:52You RESTORE the files from the backup of those files
    You RECOVER the files to a point in time from the archivelogs since the backup from which you restored.
    Go to tahiti.oracle.com and spend some time in the Backup and Recovery manuals to get clear on the concept of "backup", "recover", and "restore".

  • Restoring archives from rman backups

    i have taken backup of all archive logs as follows
    backup archivelog all delete all input;
    how to restore th archives at their original location

    816669 wrote:
    i have taken backup of all archive logs as follows
    backup archivelog all delete all input;
    how to restore th archives at their original locationWhile you can directly have rman restore the archivelogs, please note that if an archivelog is needed for database recovery, rman will know to restore said archivelog anyway.

  • ORA-01152 when restoring from RMAN backupset in NOARCHIVELOG mode

    Hi all,
    I got the error ORA-01152 when I tried restoring an Oracle 10g R1 database from an RMAN backupset into a new server. The error returned when it reached to the level of opening the database in resetlogs.
    The database runs on NOARCHIVELOG mode and on Windows 2003 Server SP2 32-bit.
    Following is what I did in RMAN:
    set ORACLE_HOME=D:\oracle\product\10.1.0\db_1
    set ORACLE_SID=DAWA
    set PATH=D:\oracle\product\10.1.0\db_1\bin;%PATH%
    cd %ORACLE_HOME%\bin
    rman target sys/mypassword
    Recovery Manager: Release 10.2.0.1.0 - Production on Tue Feb 13 00:36:55 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database (not started)
    RMAN> startup nomount pfile=X:\temp\DawaPFILE.ORA
    connected to target database (not started)
    Oracle instance started
    Total System Global Area 1048576000 bytes
    Fixed Size 792200 bytes
    Variable Size 551807352 bytes
    Database Buffers 494927872 bytes
    Redo Buffers 1048576 bytes
    RMAN> restore controlfile from
    'X:\temp\Flash_Rec\DAWA\AUTOBACKUP\2011_07_16\O1_
    MF_S_756655133_7226R018_.BKP';
    Starting restore at 19-JUL-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=270 devtype=DISK
    channel ORA_DISK_1: restoring controlfile
    channel ORA_DISK_1: restore complete
    output filename=D:\ORACLE\ORADATA\DAWA\CONTROL01.CTL
    output filename=D:\ORACLE\ORADATA\DAWA\CONTROL02.CTL
    output filename=D:\ORACLE\ORADATA\DAWA\CONTROL03.CTL
    Finished restore at 17-AUG-11
    alter database mount;
    database mounted
    catalog backuppiece 'X:\temp\PUMHJATD_1_1';
    catalog backuppiece 'X:\temp\PTMHJ91Q_1_1';
    /* Rename the Redologfiles,so that they can be created in new locations
    the database is opened in resetlogs */
    SQL>conn sys as sysdba
    -- get registered files from SELECT * FROM V$LOGFILE
    SQL> alter database rename file
    'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO01.LOG' to
    'X:\oracle\oradata\dawa\REDO01.LOG';
    alter database rename file 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO02.LOG'
    to 'X:\oracle\oradata\dawa\REDO02.LOG';
    alter database rename file 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO03.LOG'
    to 'X:\oracle\oradata\dawa\REDO03.LOG';
    alter database rename file 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO04.LOG'
    to 'X:\oracle\oradata\dawa\REDO04.LOG';
    alter database rename file 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO05.LOG'
    to 'X:\oracle\oradata\dawa\REDO05.LOG';
    alter database rename file 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO06.LOG'
    to 'X:\oracle\oradata\dawa\REDO06.LOG';
    alter database rename file 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO07.LOG'
    to 'X:\oracle\oradata\dawa\REDO07.LOG';
    /* Now in RMAN: restore the datafiles
        to new locations and recover. */
    RMAN> run{
    set newname for datafile
    'E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS201' TO
    'D:\oracle\oradata\dawa\UNDOTBS201';
    set newname for datafile
    'E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS202' TO
    'D:\oracle\oradata\dawa\UNDOTBS202';
    restore database;
    switch datafile all;
    alter database open resetlogs;
    .../*  alter database open resetlogs returned the errors: */
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 08/18/2011 08:44:45
    ORA-01152: file 2 was not restored from a sufficiently old backup
    ORA-01110: data file 2: 'D:\ORACLE\ORADATA\DAWA\UNDOTBS206'Thanks in advance.

    SYS @ DAWA> shutdown immediate
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SYS @ DAWA> startup mount
    ORACLE instance started.
    Total System Global Area 1048576000 bytes
    Fixed Size                   792200 bytes
    Variable Size             551807352 bytes
    Database Buffers          494927872 bytes
    Redo Buffers                1048576 bytes
    Database mounted.
    SYS @ DAWA> recover database using backup controlfile until cancel;
    ORA-00279: change 329012 generated at 03/08/2005 16:24:46 needed for thread 1
    ORA-00289: suggestion :
    X:\ORACLE\ORADATA\FLASH_REC\DAWA\ARCHIVELOG\2011_08_18\O1_MF_1_6_%U_.ARC
    ORA-00280: change 329012 for thread 1 is in sequence #6
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00308: cannot open archived log
    'X:\ORACLE\ORADATA\FLASH_REC\DAWA\ARCHIVELOG\2011_08_18\O1_MF_1_6_%U_.ARC'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: 'X:\ORACLE\ORADATA\DAWA\SYSTEM01.DBF'You can download the alert log from here:
    http://ahmedbaraka.com/temp/alertdawa.log

  • Restoring and Recovering from RMAN cold backup

    DB Version: 11gR2
    os : Solaris
    Before dropping a DB we had taken an RMAN backup of the DB using
    RMAN> backup database;We hadn't set a FORMAT (like db_%d_S_%s_P_%p_T_%t) for this DB , so the backups went to ORACLE_HOME/dbs directory. The 2 backup files are
    /u02/app/oracle/11.2/db/dbs/01mo9fms_1_1
    /u02/app/oracle/11.2/db/dbs/02mo9fnc_1_1  -- spfile and control fileNow we need to recreate this DB on a new server.
    In the new server, we've placed the backup files in /u04/backup/rmanbkp .
    Since We hadn't set a FORMAT parameter for the original DB which we have dropped what format i will give during restore?
    Will RMAN automatically recognize the FORMAT of the backup piece and restore ?
    RMAN> run
    allocate channel c1 device type disk format 'i_dont_know_the_format';
    allocate channel c2 device type disk format 'i_dont_know_the_format';
    restore controlfile;
    restore database;
    }This the SHOW ALL output from the DB we have dropped .
    RMAN> show all;
    RMAN configuration parameters for database with db_unique_name BRCFTST 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
    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 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 LOAD TRUE ; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u02/app/oracle/11.2/db/snapcf_brcftst.f'; # defaultAs you can see we hadn't set the format explicitly , ie. the line
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT is missing

    Hi,
    Before dropping a DB we had taken an RMAN backup.I hope you were in mount mode.
    Will RMAN automatically recognize the FORMAT of the backup piece and restore ?No it won't.
    First you have to restore a controlfile in nomount mode with:
    restore controlfile from '/u04/backup/rmanbkp /02mo9fnc_1_1';
    and do alter database mount.
    Than you have to run "catalog start with '/u04/backup/rmanbkp'; " so the instance now knows where to find the pieces.
    Now you can run a restore database command.
    Than open the database with resetlogs.
    Regards,
    Tycho

  • Restore controlfile,database(PIT)  from  backups(non-defualt location)

    Hi,
    Below is the script i m using to do db point-in-time recovery. But the problem is the backups was taken in a non-defualt location and i want the restore and recovery to be happened from there. Mostly facing issue with controlfile recovery. Just don't know how to tell RMAN that my controlfile rman backup is in non-defualt location '/fulldbbackup/'
    backup Script
    run{
            allocate channel ch1 device type disk ;
            backup database TAG = 'DR_test_backup' format '/fulldbbackup/%D_RMAN_DATAFILE_BACKUP_%U.bak';
            sql 'alter system archive log current';
            backup archivelog all delete input TAG = 'DR_test_backup2' format '/fulldbbackup/%D_RMAN_ARCHIVELOG_%U.bak';
         backup current controlfile TAG='DR_test_backup' format '/fulldbbackup/%D_RMAN_CURRENT_CONTROL_BACKUP_%U.bak';
    ==============================================================
    rman target / nocatalog
    RMAN> sql "alter session set nls_date_format = ''dd.mm.yyyy hh24:mi:ss''";
    RMAN> CROSSCHECK BACKUPPIECE TAG = 'DR_TEST_BACKUP';
    using channel ORA_DISK_1
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/fulldbbackup/26_RMAN_CURRENT_CONTROL_BACKUP_0mnbvhlq_1_1.bak recid=22 stamp=784320186
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/fulldbbackup/26_RMAN_ARCHIVELOG_0lnbvhlm_1_1.bak recid=21 stamp=784320184
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/fulldbbackup/26_RMAN_ARCHIVELOG_0knbvhl2_1_1.bak recid=20 stamp=784320164
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/fulldbbackup/26_RMAN_ARCHIVELOG_0jnbvhkp_1_1.bak recid=19 stamp=784320154
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/fulldbbackup/26_RMAN_DATAFILE_BACKUP_0inbvhkf_1_1.bak recid=18 stamp=784320144
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/fulldbbackup/26_RMAN_DATAFILE_BACKUP_0hnbvhgn_1_1.bak recid=17 stamp=784320024
    Crosschecked 6 objectsRecovery Script (.ksh)
    #!/bin/ksh
    export ORACLE_SID=prod2
    echo $ORACLE_SID
    export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
    echo $ORACLE_HOME
    export PATH
    echo $PATH
    RMAN=$ORACLE_HOME/bin/rman
    $RMAN target sys/sys@prod2 nocatalog << EOF
    set dbid 1428819349;
    run {
    startup nomount;
    sql "alter session set nls_date_format = ''dd.mm.yyyy hh24:mi:ss''";
    allocate channel ch00 device type disk;
    allocate channel ch01 device type disk;
    set controlfile autobackup format for device type disk to '/fulldbbackup/26_RMAN_CURRENT_CONTROL_BACKUP_0mnbvhlq_1_1.bak';
    restore controlfile from autobackup;
    alter database mount;
    catalog start with '/fulldbbackup';
    set until time "to_date('26.05.2012 18:43:15','dd.mm.yyyy hh24:mi:ss')";
    restore database;
    recover database;
    alter database open resetlogs;
    release channel ch00;
    release channel ch01;
    exit;
    EOF
    echo "Completed"Thanks in advance

    You can restore control file by specifying the path explicitly.
    -- In the auxillary server
    Make sure you have the CONTROL_FILES parameter in the pfile. The control files will be restored to this path
    *.control_files='+LMNPROD_DG01/lmnprod/lmnprod_control01.ctl','+LMNPROD_DG01/lmnprod/lmnprod_control02.ctl','+LMNPROD_DG01/lmnprod/lmnprod_control03.ctl'Create spfile from pfile. Then
    SQL> conn / as sysdba
    Connected to an idle instance.
    SQL> startup nomount
    SQL> show parameter spfileStep5. Restore Control file
    The below command will create all the 3 control files mentioned in CONTROL_FILES parameter in the spfile.
    $ rman target /
    restore controlfile from '/path_where_bkp_piece_is_stored/RMAN_CURRENT_CONTROL_BACKUP_0mnbvhlq_1_1.bak';After restoring the control file and mounting the DB , you can use CATALOG command to catalog backup pieces

  • Why can't I restore the controlfile from autobackup?

    Running 10GR2
    Something that I have always had a problem with is the restore controlfile from autobackup command. RMAN is configured to run autobackyps of the controlfiles.
    I have setup a restore test and moved the backups over to the test machine. I have restored the spfile and modified the necessary init parameters. When I startup nomount and try to restore the controlfile from autobackup RMAN says it cannot find an autobackup controlfile.
    I have always gotten around this by explicitly naming the controlfile to restore but am wondering what is possibly incorrect in my config such that RMAN doesn't know where to find the controlfile autbackups.
    Thanks

    Do you have such a configuration?
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    You must not specify any other format,only '%F'.
    FRA structure should like <db_recovery_file_dest>/<SID>/AUTOBACKUP/<date>/<controlfile_backup>. Only when both is true, RMAN will find the autobackup, otherwise it searches in the OS dependent default location.
    Werner

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

Maybe you are looking for

  • Attachments open in same tab - i want them to open in a new tab

    I work in school recruiter (used for taking work applications for school system) and open a lot of attachments to applications. When I close the attachment, it closes me out of school recruiter. I need the attachments to open in a separate tab. Where

  • I can't upload our packaged app. Each time I attempt to upload the zip file the system uploads it and then it gets stuck on the "validating .....zip" part. :(

    I have created an app in accordance with your requirements. Most notably, the app runs well and error free in your provided simulator. However, as I attempt to submit the app on the https://marketplace.firefox.com/developers/submit/ page, immediately

  • Oracle 8i Lite import trouble

    Hello, Ok ill explain the problem first. I Exported whole DB from Oracle 8i, and now i have a file export.dmp. I want to import it to Oracle 8i Lite, but for now so success. I have a DB called test, defined in ODBC and created in Oracle Navigator. I

  • XSL and classpath

    I have an class deployed to the database (8.1.7) that is performing a XML query and then using processXSL to transform XML query result into standard form. I know this might not be standard but it solves some issues pretty neatly. My problem is that

  • Additional content formats

    we were told by our apple rep in the application process that we would be able to put up word documents to download, for the purposes of note taking. is this still in the works? will we be able to add word documents as well as pdfs to itunes U?