RMAN backup control file

HII I am working on oracle 10g 10.2.0.4.0 on solaris 10 have an asm and rac configuration (2 node rac).

I only have a single control file--+DATA_DG1/ftssdb/controlfile/current.270.664476369

I'm back up these files to control with rman

CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT for DEVICE TYPE DISK TO ' / backup/rman_node1/%F';



c 31850833-20100909-00 is one supported by piece of control file.

now, suddenly, a system of administration deleted this file control... How can I recover my database using rman backup?

RMAN > SET 3386862614 DBID
RMAN > RUN {
RESTORE AUTOMATIC BACKUP CONTROLFILE;
}
or
RMAN > SET 3386862614 DBID
RMAN > RUN {
CONTROLFILE AUTOBACKUP FORMAT SET
FOR DEVICE TYPE DISK TO ' / backup/rman_node1/%F';
RESTORE AUTOMATIC BACKUP CONTROLFILE;
}

check out the link:
http://arjudba.blogspot.com/2008/05/How-to-restore-controlfile-from-backup.html

Published by: rajeysh on Sep 9, 2010 16:37

Tags: Database

Similar Questions

  • RMAN-20033 control file sequence # too low & ORA-00230

    The two RMAN below errors occasionally I think that the cause is if an archive backup is running during a database backup, the controlfile is supported by both and can (but not always) cause these errors. The backup of the database is generally successful and that's just the backup controlfile who complains. I looked at how to avoid this, but it is not easy. Some backups of large database, especially for a full backup, run it for hours so archives have yet to be backed up and deleted.

    It might have started when ON CONFIGURE CONTROLFILE AUTOBACKUP has been set up. I don't know if this can be changed for backups of archive without affecting full/comú backups. Any ideas are appreciated.


    From control file and SPFILE Autobackup July 23, 10
    handful of piece = c-3756288473-20100723-2nd comment = 2.0, MMS Version 5.4.1.0 API Version
    File control finished and Autobackup SPFILE to July 23, 10
    output channel: T1
    output channel: T2
    output channel: T3
    output channel: T4
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03008: error when executing automatic resynchronization of the recovery catalog
    RMAN-20033: control file sequence # too low


    From backup 6 August 10
    channel T1: starting full datafile backupset
    channel T1: specifying datafile (s) in backupset
    output channel: T1
    output channel: T2
    output channel: T3
    output channel: T4
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03009: failure of the backup command on channel T1 at 2010-08-06 11:43:52
    ORA-00230: forbidden operation: snapshot controls unavailable file enqueue

    Dear DBA2008,

    Please find the explanation of the error first;

    ORA-00230: operation disallowed: snapshot control file enqueue unavailable
    Cause: The attempted operation cannot be executed at this time because another process currently holds the snapshot control file enqueue.
    Action: Retry the operation after the concurrent operation that is holding the snapshot control file enqueue terminates. 
    

    There could be an enqueu for the snapshot controlfile and he should be released in order to continue operating.

    The other mistake is;

    Oracle Error :: RMAN-20033
    control file SEQUENCE# too low
    
    Cause
    the control file sequence is less than the one of the previous resync
    
    Action
    make sure that the right control file is used
    

    Thus, there could be another session which was try to resynchronize the catalog or simply access the snapshot controlfile.

    Can you connect please for the usual recovery with the connection string manager and type;

    RESYNC CATALOG;
    

    Do you still take the enqueue snapshot controlfile error?

    Hope that helps.

    Ogan

  • Retrieve by using the backup control file

    Hello

    I was reading a book called Pro Oracle Database Administration by Darl Kuhn. There, under the theme of "The valuation of the loss of all control files", noted that all data files and control files are restored from a backup, because if we do not restore the data files the RCS in control files would be lower than the data in these scenarios files. Since online redo logs and archived newspapers is applied to the data files to roll forward in a current consistent state and does not roll forward to a control file.

    It is then mentioned to use 'recover the database by using the backup control file' then apply the logs (archive and redo if necessary).

    However I personally tested this script in a test environment and to bring all the backup control file could issue the same command as above and recover the database.

    My question is I know again and archives are applied only to the data files. So how does the control file are synchronized back when we do not restore the backup data files.

    Thank you

    If we do not restore the data files, the RCS in control files would be lower than the data files. Since online redo logs and archived newspapers is applied to the data files to roll forward in a current consistent state and does not roll forward to a control file.

    It would be incorrect you have determined. You can only restore the control files. You can manually create a control file and always do the restore.

    My question is I know again and archives are applied only to the data files. So how does the control file are synchronized back when we do not restore the backup data files.

    The control file is updated as well.

    See you soon,.
    Brian

  • Why open DB with RESETLOGS option after either complete or CAMILLE with a backup control file?

    Hi all

    I'm newbie DBA and totally confused when reading about the recovery.

    Why open DB with RESETLOGS option after either complete or CAMILLE with a backup control file?

    Using while will happen after we open DB using resetlogs in above mentioned mode of recovery.. .apart from resetting the log sequence 1?

    Kind regards

    Ritu

    Hi Ritu,

    Google is a very rich source of information...

    I found this article in Hemant which I suppose is very informative for you... Read everything including the comments!

    Hemant Oracle DBA blog: OPEN RESETLOGS without making a recovery

    HTH,

    Thierry

  • hot backup control file?

    I wonder and wants to know... we can put hot backup control file... If so, then isn't the content of the controlfile changed after backup?
    alter database backup controlfile to 'd:\backups\cntrlfilebackup.dbf reuse';
    alter database backup controlfile to trace as 'd:\backups\cntrlfile_trace.txt reuse';
    

    Hemant K Collette

  • Create the new database of complete hot RMAN, atrchivelog and backup control files

    Hi all

    I'm trying to create the new database U1234 of P1234 of full hot RMAN, atrchivelog and control P1234 file backup.

    Here are my steps

    (1) to restore the control file

    #! / bin/sh
    ORACLE_SID = P1234
    export ORACLE_SID
    RMAN nocatalog target / < < EOF | Tee restorecontrol.out
    startup nomount pfile=/u01/oradba/admin/U1234/scripts/restore/restore071009U1234/initP1234.ora;
    the value of DBID 6767676;
    run
    {
    allocate channel d1 type disk;
    controfile catering to ' / u02/oradba/U1234/control/P1234_control01.ctl';
    Restore controlfile to ' / orarman/restore/P1234/cf_P1234_c-00';
    change the editing of the database;
    }
    EXPRESSIONS OF FOLKLORE

    (2) database stop then restart the database with the new contraol file using pfile.

    (3) restore data files

    #! / bin/sh
    ORACLE_SID = P1234
    export ORACLE_SID
    RMAN nocatalog target / < < EOF | Tee restore_dbfiles.out
    Run {}
    the value of newname for datafile 1 to ' / u05/oradba/U1234/dbfile/U1234_system01.dbf';
    the value of newname for datafile 2 to ' / u05/oradba/U1234/dbfile/U1234_undotbs01.dbf';
    the value of newname for datafile 3 to ' / u05/oradba/U1234/dbfile/U1234_sysaux01.dbf';
    the value of newname for datafile 4 to ' / u06/oradba/U1234/dbfile/U1234_users_d01.dbf';
    the value of newname for datafile 5 to ' / u06/oradba/U1234/dbfile/U1234_tools_d01.dbf';
    the value of newname for datafile 6 to ' / u08/oradba/U1234/dbfile/U1234_audt_x01.dbf';
    the value of newname for datafile 7 to ' / u07/oradba/U1234/dbfile/U1234_audt_d01.dbf';
    the value of newname for datafile 8 to ' / u07/oradba/U1234/dbfile/U1234_audt_d02.dbf';
    the value of newname for datafile 9 to ' / u08/oradba/U1234/dbfile/U1234_lh_x01.dbf';
    restore the database;
    switch datafile;
    }
    EXPRESSIONS OF FOLKLORE


    ORA-27063: number of bytes read or written is incorrect
    SVR4 error: 28: no space is available on the device

    Now, I missed the space during the restoration of data files and want to restore remaining who is 3 and 4 of datafile datafile.

    Can you please let me know how I can restore it.

    I need to change the names of database after the successful restoration.

    DBVERSION 10.2.0.1
    operating system: solaris 10

    Thanks in advance.

    Hello..

    Do you have free space? If Yes, then you can try: -.

    RUN {}
    SET NEWNAME for DATAFILE 3 to ' / u05/oradba/U1234/dbfile/U1234_sysaux01.dbf';
    RESTORE THE 3 DATA FILE;
    DATAFILE 3 SWITCH;
    }

    [http://www.oracle-base.com/articles/9i/DBNEWID.php]

    Anand

  • Creating a new controlfile with RMAN backup data files

    Hello

    I use oracle 10g (10.2.0.1) in RHEL5 server. I am trying to restore a RMAN backup from one server to another server again with the new name of the comic. I took on the RMAN backup spfile and created her pfile and edited the file pfile with new dbname and directory structure and launched the db in nomount with new pfile. Today I restored the backup controfile RMAN has tried to put the database in State of Mount. But it failed due to the error below

    RMAN-03002: failure of alter db command at 21:44:56 05/11/2012
    ORA-01103: name "ORADB" in the control of the database file is not 'DEVDB '.

    So I stop the database and started the db in nomount with new pfile and tried to create the controlfile with new db name, but he didn't like it is looking for the data files.

    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in file identification
    ' / u01/app/oracle/oradata/DEVDB/datafile/o1_mf_system_80jq0kfw_.dbf'
    ORA-27037: unable to get file status
    Linux error: 2: no such file or directory
    Additional information: 3

    All my data files in my RMAN backup. How to get the data files of RMAN backup in the above scenario?

    Kind regards
    007

    restaurer restore as ORADB, then rename the database with DBNEWID
    http://docs.Oracle.com/CD/B19306_01/server.102/b14215/dbnewid.htm

    or use duplicate instead of restore

  • 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

  • BACKUP CONTROL FILE

    Hi all

    11.2.0.1

    AIX 6.1

    I want to save my text control file as in

    SQL > alter system backup controlfile to ' / u01/a.txt ';

    But the result is not readable

    Why is this so the command

    SQL > alter system backup controlfile to trace;

    The result is readable, but it is very difficult to find

    Help, please...

    Thank you

    zxy

    It is certainly, ALTER DATABASE BACKUP CONTROLFILE (to not "changing the system")?

    Read the documentation... oh, Yes, you have made a habit of NOT reading the documentation.

    The syntax for a text trace file is

    BACKUP CONTROLFILE ALTER DATABASE to TRACK AS ' / u01/a.txt ';

    Hemant K Collette

  • trap State of RMAN backup log file.

    Database: 10.2.0.2 enterprize edition
    Operating system: SUN solaris 5.10

    We will perform backups RMAN, level 0 weekend and incremental backups of level 2 and level 1 week. We will continually monitor the log through a HPOV tool file. This tool will send errors in the log file to the HPSMH ticket management tool.

    Now my concern is that we get several alerts every time that a channel failure and the canal failed is running with the other channel. Now, we want to check the overall backup status, if it is successful or not by checking the newspaper at a time.

    Please give me any suggestion to overcome this obstacle. We execute the RMAN backup with shell scripts and output will be appended to the log file.

    TIA

    The RMAN return code is returned by the RMAN executable: http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmtroub.htm#i1006541.

  • extract the rman backup data file

    Hello
    I want to search when logical corruption occurs in my database, so I want to extract my rman backup and test a file with db_verify.
    But I don't want to recover the database. How to extract a file without recovery and destroing database work?

    thnx
    Podkov

    You must perform the RESTORE in an auxiliary instance - preferably on another server.

    Note: If you do it on the same server, make sure that
    a. you do not connect to the same database instance
    b. you set NEWNAME so that the data file is extracted to a different location

  • Log of RMAN backup of files looking for bad archived newspapers

    I have an RMAN backup, which is a database called EBIZ01PD. The backup is a failure because he's trying to find the archived logs that belong to a different db named EBIZRED that is located on a different server. I'm new with RMAN and any help would be great.

    [run {}
    allocate channels ch1 type 'sbt_tape '.
    PARMS = "BLKSIZE = 262144, ENV = (CV_mmsApiVsn = 2, CV_channelPar = ch1, ThreadCommandLine = BACKUP jm - 45 - a 2:233 - cl 43 - ins 40 - 22-j 17828 - jt 17828:4:1 - ball 1 - bap 0 - rap 0 - SPC 0 - VMR 0 - ms 1 - newspapers - cn nvciEBIZDB - Instance001 - vm nvciebizdb.nvci.org vm)" "
    TRACE 0.
    setLimit channel ch1 maxopenfiles 8;
    SQL 'alter system archive log current;
    backup
    filesperset = 32
    diskratio = 0 (archivelog all delete input);
    }
    "exit";
    ]
    RMAN Log:]
    Recovery Manager: Release 10.2.0.4.0 - Production Thu Jan 22 04:00:49 2009
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    RMAN >
    connected to the recovery catalog database
    RMAN >
    connected to target database: EBIZ01PD (DBID = 1694328251)
    RMAN > 2 > 3 > 4 > 5 > 6 > 7 > 8 > 9 > 10 >
    allocated channel: ch1
    channel ch1: sid = 778 devtype = SBT_TAPE
    channel ch1: CommVault Systems for Oracle: Version 7.0.0 (BUILD76)


    from full resynchronization of the recovery catalog
    full complete Resync
    from full resynchronization of the recovery catalog
    full complete Resync
    from full resynchronization of the recovery catalog
    full complete Resync
    SQL statement: alter system archive log current
    from full resynchronization of the recovery catalog
    full complete Resync
    From backup 22 January 09
    Current archived log
    from full resynchronization of the recovery catalog
    full complete Resync
    archived journal D:\ORACLE\ORAARC\EBIZRED\ARC00054_0674426118.001 not found or at odds with catalog
    try another file archivelog thread 1, sequence 54
    output channel: ch1
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the backup command to 2009-01-22 04:16:23
    RMAN-06059: journal archived expected not found, lost of archived newspaper compromised recoverability
    ORA-19625: error identification of file E:\ORACLE\ORAARC\EBIZRED\ARC00054_0674426118.001
    ORA-27041: could not open the file
    04002 - OSD: could not open the file
    S/O-error: (OS 3) the system cannot find the path specified.
    RMAN >
    Complete recovery manager.

    Hi Chris,
    Could do a and retry the backup.
    Can you post setting destination arch for EBIZ01PD ?
    The dbid for the EBIZ01PD and the EBIZRED would also be intresting .
    Do you use a recovery catalog?
    Kind regards
    Tycho

  • Backup control files on the eve of the database

    Hello

    One of my friends told me that controlfile cannot be saved with RMAN.

    Is this true?


    Kind regards
    Achyot

    deleted

  • RMAN backup using control as repository via networker file

    Hi guys,.

    I use the control as the rman repository file. Currently I have this backup running at 20:00 every night:

    backup format full filesperset 4 ' / Data_%d_%U/' (database);
    SQL 'alter system switch logfile;
    SQL 'alter system archive log current';
    overlap archivelog all;
    backup format '% s_ %%t p_ arch_' archivelog all;
    delete archivelog all completed before ' sysdate-3'; "

    And the log backup archive running from 07:00, 11:00, 16:00.


    Have a few queries:

    1. understand that with the above, backup control files will also be included as RMAN automatically includes the control file and the SPFILE in backups of data file 1.
    So in all cases when my control file is accidentally deleted from the server, I always can I restore from the backup right?
    I think I need set the db first as a control the file id is my deposit. If the control is absent, it can identify the control file for restore by setting db IDs?
    2. my automatic backup of control is set to off. What is the difference between the control file backup taken by autobackup compared to 1?
    understand controlfile autobackup is good because it will automatically backup if there is no change in the db (as new file created, etc.). Any other difference?
    3.
    Plateforme BACKUP CURRENT CONTROLFILE
    ❐ a control within a file backup by using the CONTROLFILE CURRENT INCLUDE of the BACKUP command
    What is the difference with this backup from controlfile backup to point 1 and 2?

    4. Finally, if my control + bow + datafiles, redo file is deleted by mistake at 18:00. I've restored the control taken to yesterday 20:00 file. The control file consisting only of 20:00 and before backup information, how to restore the rest of the newspapers arch taken by 07:00, 11:00, 16:00?



    Thank you

    Since you talk about networker, I presume that you are copying backups from disk to tape as a separate order of networker. Do not forget to include the controlfile record as well during the copy on tape!

    1. Yes, you can restore the controlfile and spfile from the backup. But you will need to manually determine what backup piece contains the backup controlfile and spfile. (In the scenario where you assume the controlfile is lost, you cannot issue a BACKUP LIST to identify the backuppieces, so you will have files from search logs to identify the backuppiece!)

    2. a controlfile autobackup will be created in db_recovery_file_dest using OMF. If you do not have it defined, the controlfile autobackup is epxected to go in $ORACLE_HOME/dbs - although the location of the actual target can be dependent on version and platform.

    3. a backup BACKUP CONTROLFILE creates a separate backupset and backuppiece for the controlfile. In OMF, it goes in the backup directory, not in the AutoSave directory.

    4. without a repository, if your archivelog backups are on the disc, you can catalog THEM (i.e. run 'CATALOGUE START WITH /disklocation' command) in the controlfile you restorted to the backup from 20:00. You cannot catalog backuppeices tape is advicable to use a repository when you back up directly to tape.

    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

Maybe you are looking for