restore / recover the control file

Hello
in 10g, I lost all the files of ctl and I want to restore/recovery of backups RMAN.
Oracle documentation:
6.4.1.4 Restoring a Control File When Using a Recovery Catalog
Restoring a lost control file from autobackup is easier when using a recovery catalog than when using only the control file to store the RMAN repository. The recovery catalog contains a complete record of your backups, including backups of the control file. Therefore, you do not have to specify your DBID or control file autobackup format.

To restore the control file, connect RMAN to the target database and the recovery catalog, and bring the database to NOMOUNT state. Then issue the RESTORE CONTROLFILE command with no parameters, as in this example:

% rman TARGET rman/rman CATALOG catdb/catdb
RMAN> RESTORE CONTROLFILE;
After that I should publish any statement to RECOVER or change the editing of the database and alter database open would be enough?

Thank you.
Is there a complete senario anywhere?

The restoration is correct.

Please see the following:

http://www.SC.EHU.es/siwebso/KZCC/Oracle_10g_Documentacion/server.101/B10734/rcmrecov.htm#1006247

Tags: Database

Similar Questions

  • recover the database unitl cancel using the control file

    I refreshed with db1 db2, copied all the newspapers dbfile and archive to the db2 server and setup/adjusted spfile, controlfile etc on the new db2 server and has
    recover the database unitl cancel using the control file.
    ALTER database open resetlogs.

    Now the customer want to refresh it after 2 days, I wonder of I need only archive newspapers or both? to do the same again?

    Published by: DBA2008 on November 11, 2009 09:49

    Yes, you can 'restore to cancel' several times.

  • ORA-00221: error on write in the control file

    Experts,

    Recently, I have been unable to connect to the console em12c and after reviewing the State of who, I got to know that my instance of database crashed.

    Status of the WHO

    . / emctl status SGD

    Oracle Enterprise Manager Cloud control 12 c Release 2

    Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.

    WebTier is in place

    Oracle Management Server does not work for the following reason:

    Unable to connect to the repository database. SGD will be automatically restarted once he identifies database and the listener are on the rise.

    I connected and checked the alert log which was below error e/s on the controlfile. I'm afraid to say that my control files are multiplexed not and I don't have a valid backup of controlfile.

    alert_log

    Errors in the /u01/app/oracle/diag/rdbms/trcoem/TRCOEM/trace/TRCOEM_lgwr_25655.trc file:

    ORA-00345: redo log write error block 39818 County 15

    ORA-00312: thread 1 1 online journal: ' / u01/app/oracle/oradata/TRCOEM/redo01.log'

    ORA-27072: IO file error

    Linux-x86_64 error: 5: input/output error

    Additional information: 4

    Additional information: 39818

    Additional information:-1

    Kill Jan 28 11:34:57 2014

    Errors in the /u01/app/oracle/diag/rdbms/trcoem/TRCOEM/trace/TRCOEM_ckpt_25659.trc file:

    ORA-00206: error in writing (block 3, block # 1) of the control file

    ORA-00202: control file: ' / u01/app/oracle/oradata/TRCOEM/control01.ctl'

    ORA-27072: IO file error

    Linux-x86_64 error: 5: input/output error

    Additional information: 4

    Additional information: 3

    Additional information:-1

    Errors in the /u01/app/oracle/diag/rdbms/trcoem/TRCOEM/trace/TRCOEM_ckpt_25659.trc file:

    ORA-00221: error about writing about a control file

    ORA-00206: error in writing (block 3, block # 1) of the control file

    ORA-00202: control file: ' / u01/app/oracle/oradata/TRCOEM/control01.ctl'

    ORA-27072: IO file error

    Linux-x86_64 error: 5: input/output error

    Additional information: 4

    Additional information: 3

    Additional information:-1

    Kill Jan 28 11:34:57 2014

    CKPT (ospid: 25659): put an end to litigation because of the error 221

    Please help me what should be the solution to fix this error. Is this just a mistake of e/s on the controlfile, or do I have a disk failure?

    var http://www.filedropper.com/messages

    Version of the OS: RHEL 5 (64-bit)

    Database Version: 11.2.0.3 (64-bit)

    Thank you

    Fran,

    Syslog does not display the IO error.

    I followed the steps below to solve the problem.

    1] stop the database

    [2] restore control01.dbf to the backup location.

    [3] mount the database
    [4] recover database until cancel

    [5] Alter database open resetlogs.

    Also, takes a full cold of RMAN backup of the database, the multiplex control files and recovery logs.

  • ORA-00338: 3 log thread 1 is more recent than the control file

    Hello

    I met the error ORA-00338 while performing the recovery of incomplete data:

    ORA-00283: cool cancelled due to errors
    ORA-00338: 3 log thread 1 is more recent than the control file
    ORA-00312: wire 3 1 online journal: "+ DG_REDO/dbase/onlinelog/group_3.267.814820795".
    Complete recovery manager.

    I made this recovery on oracle 10g, database of ASM.

    1. What are the possible causes of this error ORA-00338?

    2. This error occurs at the beginning of the media recovery, RMAN is applying logs archived. If RMAN does newspapers "Online REDO" after applying "archived" logs required for recovery or in front of them?

    3 rman is how this journal in line 3 is more recent than the control file? How can I me SNA of the journal online & file control in my environment?

    Here are some details related to checkpoint scn / change # info. I found in my environment:
    Before recovery:
    view
    v$ datafile: 642935
    v$ datafile_header: 642935
    v database $: 642935
    Journal of v$: 640956

    After the recovery fails (ORA 338 :()
    v$ datafile: 640917
    v$ datafile_header: 640056
    v$ database: 640906
    Journal of v$: 640906

    You could try the incomplete recovery has to do only the RESTORE DATABASE with RMAN.
    Then, using the SQLPLUS command line, issue a RECOVER database with the HELP of BACKUP CONTROLFILE until CANCEL. See which he records guests for and monitor messages in the alert.log

    Hemant K Collette

  • Is there a way to recover the deleted files without using any software?

    Is there a way to recover the deleted files without using any software?

    Is there a way to recover the deleted files without using any software?

    # Software is necessary.

    First check the recylcl tray. If she isn't here, read the following:

    "Deleting" a file does not delete actually it brand just space be used. There are third-party programs that can sometimes recover deleted files. The problem is that the space used by the file is likely to be replaced very quickly, and this makes the unrecoverable file.

    So your chances of successfully recover this file are decent, if you try it again immediately after deleting it and quickly down. If you have used the computer since then (for example to read this answer and write that question), your chances may be very weak now.

    But if the file is large enough, it's still worth a try. Stop using the computer in question immediately, if you haven't done so already. Download an undelete program (in here is one: http://www3.telus.net/mikebike/RESTORATION.html but there are many other choice; do a search) on a friend's computer and bring it to you on a diskette, CD, or drive to the thumb.

    If that fails, your only recourse is to bring or send the drive to a professional file recovery company. This kind of service is very expensive and may or may not work in your case.

  • Problem to identify the control file when creating physical standby

    Hello

    (database version: 10.2.0.4)
    linux platform)

    I use the command below to create physical database from a backup before:
    rman target / auxiliary sys/tiger@paceview
    
    Recovery Manager: Release 10.2.0.4.0 - Production on Tue Sep 4 18:05:53 2012
    
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    
    connected to target database: PACEVIEW (DBID=2092349485)
    connected to auxiliary database: PACEVIEW (not mounted)
    
     run {
     allocate auxiliary channel c1 device type DISK;
     set until sequence 38;
     duplicate target database for standby dorecover nofilenamecheck;
     }
    
    
    released channel: ORA_DISK_1
    allocated channel: c1
    channel c1: sid=35 devtype=DISK
    
    allocated channel: c2
    channel c2: sid=36 devtype=DISK
    
    executing command: SET until clause
    
    Starting Duplicate Db at 04-SEP-12
    
    contents of Memory Script:
    {
       set until scn  138180211934;
       restore clone standby controlfile;
       sql clone 'alter database mount standby database';
    }
    executing Memory Script
    
    executing command: SET until clause
    
    Starting restore at 04-SEP-12
    
    channel c1: restoring control file
    ORA-19625: error identifying file /backup/rman/paceview/DEL1_standby.ctl
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    ORA-19600: input file is control file  (/backup/rman/paceview/DEL1_standby.ctl)
    ORA-19601: output file is control file  (/PGHProdDB/oradata/paceview/control1.ctl)
    failover to previous backup
    
    released channel: c1
    released channel: c2
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/04/2012 18:01:44
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06024: no backup or copy of the control file found to restore
    I already tried to cross but always give same error
    Thank you

    Hello;

    That's what I'd do:

    Primary backup (change in your directory as needed)

    RMAN RUN {
    allocate channel d1 type disk;
    backup format '/u01/backups/PRIMARY/df_t%t_s%s_p%p' database;
    sql 'alter system archive log current';
    backup format '/u01/backups/PRIMARY/al_t%t_s%s_p%p' archivelog all;
    backup current controlfile for standby format '/u01/backups/PRIMARY/sb_t%t_s%s_p%p';
    release channel d1;
    }
    

    Move the backup and duplicate like this:

    rman target sys/password@PRIMARY auxiliary /
    
    RMAN> run {
    allocate channel C1 device type disk;
    allocate auxiliary channel C2 device type disk;
    duplicate target database for standby nofilenamecheck;
    }
    

    For details of this method, see:

    http://www.Visi.com/~mseberg/duprman2.html

    Best regards

    mseberg

  • How to recover the original file names?

    Hello! Please help me.


    Accidentally, I changed the names of the videos that I used for Adobe Premiere. So now, every time I open the folder Adobe Premiere, videos are missing and replaced with a red screen "media disconnected". Is there any way I can recover the original file names without having to do it manually one by one?


    I tried to go back to a restore point, but it does not work. I can't locate too because I don't remember which video is which.


    I already edited almost 50 videos in this project it would take me a loooot of time to start all over again. :((


    Hope you can help me.

    If I understand you correctly, you changed the name of the file in Windows and can't remember what used to be file names. You have modified these in Premiere Pro, and now the project files, that you created do not know where to find the video files.

    Is this correct?

    If so, I may have a simple solution for you.

    Assuming that you're not maxing out every file so that they are all exactly the same length, the number of minutes and seconds and images should get you where you want to go. Almost as unique as a fingerprint on my PC, but I never capture a bunch of videos which are identical in time - although it is possible to do, I guess.

    Open a project file. Checking the properties of each file should reveal the name of file theoriginal and duration, which is also available directly on the thumbnail image (see image below).  Open the media browser, then look at the times on each clip. This should be enough to help you either republish or change the Windows name to what it was originally. It's always one at a time, but it shouldn't take too long. A pen and paper could help 50 videos.

  • TT0779: transaction must restore because the log file is full

    Hello!

    We had a strange problem. We use TT in cacahe to connect oracle, and we have a few cache groups, who are using time based aging. Insert us records into them, and 'old' records are unloaded by aging. Once timesten began recording messages like this every second (the system was working well before that):

    07:28:48.51 Err: 233506: subd: regular aging failed, error TT0779: query refused; transaction must restore because the log file system is full - file 'dbAPI.c', lineno 10103, procedure 'sb_dbAging '.

    The error is not only associated with aging, some other 'data management' operations also fail with errors like that.

    All files from TT (TT logs, transaction logs, etc.) are located on a file system that has 40 GB of free disk space (and no file systems are filled on the machine).

    TTversion:
    TimesTen release 7.0.5.0.0 (64-bit Aix) (appdbtt:17001) 2008-04 - 04 T 00: 39:00Z
    Admin of the Forum: timesten
    Instance home directory: / oracle/product/TimesTen/appdbtt
    Base directory of demon: / oracle/product/ttDaemon
    Active access control.

    Any help is appreciated thanks in advance :).

    This isn't really a good way to stop it. This stops the demon main instance of TT, even if there are data stores active. It's a bit like making a kill-9 on some of the main processes of Oracle DB! That's why you got the files .trace and .inval.

    For closed properly and one individual data store need you:

    1. ensure that any application accessing the data store process disconnected (tTStatus should show no connection of the application).

    2. stop the replication or cache if used agents.

    3. If you use the ramPolicy defaul setting (inUse) the data store will now offload the memory. If you use ramPolicy 'manual', issue the command ttAdmin of ramUnload to unload the data store. If you use the strategy "always." change the policy manual and unload the previously mentioned such data store.

    If you want to stop the main demon then you need to repeat steps 1 to 3 for each data store in the instance before stopping the main demon.

    Since we don't know what the problem is that it is very difficult to tell if the upgrade to 11.2.1.3.0 will fix it. I suspect that it is unlikely to do. Your license allows probably to this upgrade if you have a valid active support contract (but best to check) but noted that the upgrade from 7.0 to 11g is not a commonplace patch because there has been a lot of changes in 11g compared to 7.0. You must carefully plan the upgrade and thorough testing, and you may need to make changes in demand and or DBA procedural changes too.

    Chris

    Chris

  • When a file turns to an ink file, how can I recover the functional file

    When a file turns to an ink file, how can I recover the operational files. ??

    Right-click on the link, check the location of the open file, find the file and either make a new shortcut or double-click the executable.

  • How can I specify location of the control file when the manual creation of DB?

    DB version: 11.2.0.4

    OS: Oracle Linux 6.6

    The CREATE DATABASE command creates the control file.

    CREATE DATABASE command is executed once you start the instance in NOMOUNT State as shown below.

    SQL > startup nomount pfile=$ORACLE_HOME/dbs/initBRCPRD.ora

    SQL > create database 'BRCPRD '.

    MaxInstances 32

    MAXLOGHISTORY 1

    maxLogFiles 192

    maxlogmembers 3

    ..

    .

    .

    < snipped >

    When you create the database manually, we can define the control_files parameter in the init.ora as below and control file will be created at this location. Right?

    control_files = ("" / u01/oradata/BRCPRD/BRCPRD_control01.ctl","/u01/oradata/BRCPRD/BRCPRD_control02.ctl "")

    When I was generating the DB using DBCA GUI creation scripts, it asks to enter the location of the Online redo logs and control files.

    I entered my desired location. But, I couldn't find CONTROL_FILES parameter in the init.ora file generated the DBCA. This is why I got confused. I think that DBCA is internally somehow. So thought I'd post it here.

    Hi John, OP

    Just checked the init.ora file created by DBCA. Although the parameter CONTROL_FILES is undefined, db_create_file_dest = '+ DATA_DG1' was created. OMF default location is defined by the db_create_file_dest parameter.

    So, I could safely use this script for the manual creation of DB, and during the CREATE DATABASE command execution, oracle will place CONTROL_FILES + DATA_DG1 using the format;

    +DiskGroup/dbname/filetype/filetypetag.file.incarnation

  • Add other fields to sql * source file loader without including them in the control file

    Hello

    We have a file that we receive every day to an external resource. We load the file into Oracle using Sql tables * Loader!

    My question is, if external resources added more fields at the end of the file and I USED to change the control file to load (almost there will be right there without any use!)

    Will I get an error SQL * loader?

    or else, it will be fine!

    Thank you

    /HESI

    In general, SQL * Loader will simply ignore the extra fields at the end of the line.  However, there are exceptions to all rules.  To do a correct delimiter after the last field you load.  The additional fields must dressed not in the next line, unless you have authorized to do this.  If the end of the characters of the line of the source operating system do not match at the end of the characters in the line of the target operating system, then you need to deal with this in one of the various ways.  These are a few examples.

  • Impossible to copy the control file.

    Hi everyone, I am trying to clone my database and get this error when you try to copy the control file.  I apologize if it's very beginner to here but I'm really stuck and need a hand!  Thank you.

    SQL > @D:\oracle\product\test\cloneinfo\test_ctl.sql

    ORA-01081: cannot start already running ORACLE - he stop first

    CREATE CONTROLFILE SET DATABASE "mediated" RESETLOGS ARCHIVELOG

    *

    ERROR on line 1:

    ORA-01503: CREATE CONTROLFILE failed

    ORA-00200: control file could not be created

    ORA-00202: control file: ' D:\ORACLE\PRODUCT\ORADATA\TEST\TEST_CONTROL01. CTL'

    ORA-27038: created file already exists

    OSD-04010: < create > option specified, the file already exists

    START: RECNO: = SYS. DBMS_BACKUP_RESTORE. SETCONFIG ("CONTROLFILE AUTOBACKUP', 'ON'")

    ; END;

    *

    ERROR on line 1:

    ORA-01507: database not mounted

    ORA-06512: at "SYS." "X$ DBMS_BACKUP_RESTORE ', line 4400

    ORA-06512: at line 1

    ALTER DATABASE OPEN RESETLOGS

    *

    ERROR on line 1:

    ORA-01507: database not mounted

    SQL > select name from v$ datafile

    2;

    Select name from v$ datafile

    *

    ERROR on line 1:

    ORA-01507: database not mounted

    Each of us has started early, don't worry.

    (1) analyze the errors:

    ORA-01081: cannot start already running ORACLE - he stop first

    your database are open? Check it with--> sqlplus > select status from v$ instance;

    (2) following error:

    ORA-00202: control file: ' D:\ORACLE\PRODUCT\ORADATA\TEST\TEST_CONTROL01. CTL'

    ORA-27038: created file already exists

    OSD-04010: option specified, file already exists

    Explain to: https://forums.oracle.com/message/9629124

    (3) to create controlfile your database should be in status "Nomount". So:

    SQL > shutdown immediate;

    SQL > startup nomount;

    4) more info on: CREATE CONTROLFILE

    If you have more problems, let us know.

  • How to recover the data file in Oralcle 10 g...? No backups and no newspaper archiving

    All,

    I need to recover the data file 2, which is for the undo tablespace and it is in the State to recover and I need to recover the data files now.

    But the bad news is we have no backup at all and we have no archive logs (log archiving is disabled in the database)...

    In this case how can I recover the data file...?


    SQL > select a.file #, b.SID, a.status from v$ datafile a, v$ tablespace b where a.ts #= b.ts #;

    FILE NAME STATUS NO.
    ---------- ------------------------------------------------------------------------------------------ -------
    1 /export/home/oracle/flexcube/product/10.2.0/db_1/oradata/bwfcc73/system01.dbf SYSTEM
    * RETRIEVE /export/home/oracle/logs/bw/undotbs01.dbf 2 *.
    3 /export/home/oracle/flexcube/product/10.2.0/db_1/oradata/bwfcc73/sysaux01.dbf online
    4 /export/home/oracle/datafiles/bw/bwfcc73.dbf online
    5 /export/home/oracle/datafiles/bw/bwfcc73_01.dbf online

    SQL > archive logs list;
    Database log mode no Archive Mode
    Automatic archival disabled
    Destination of archive USE_DB_RECOVERY_FILE_DEST
    Sequence of journal online oldest 4940
    Current log sequence 4942

    Hello

    First, you must open a ticket with oracle Support and explore the options

    You can use this note to fix:
    RECOVERY OF A LOST IN A [ID 1013221.6] UNDO TABLESPACE DATA FILE

    If you are unable to drop Undo tablespace as Undo Segment recovery must

    You can download the trace file following the opening of the ticket

    SQL>Alter session set tracefile_identifier='corrupt';
    
    SQL>Alter system dump undo header "";
    
    Go to udump
    
    ls -lrt *corrupt*
    
    Upload this trace file
    
    Also upload the alert log file
    

    Kind regards
    Levi Pereira

    Published by: Levi Pereira on November 29, 2011 13:58

  • Deleted data file update the control file?

    Hello!

    I deleted a file from data in a tablespace. It was done on purpose because I have no more need. Unfortunately
    I have not updated the database control file, now I get an error message:

    ORA-01157: impossible to identify or to lock the 202 data file - see DBWR trace file
    ORA-01110: data file 202: "D:\ORACLE\PRODUCT\10.2.0\ORADATA\MINOTAUR\TMP_01.DBF."

    How update the control file to get rid of this error?

    I use Windows and exit DB 10.2.0.2.

    Thank you very much for your help!

    Christian

    I think that I made a mistake of reading here.
    Looks like you have deleted a TMP file.

    You then have to join v$ tablespace with v$ tempfile in the statement.

    It's a 10 G (or higher) database?

    Try to drop the tablespace that belongs to this data file, otherwise recreate the controlfile (needs database is offline)

    HTH
    FJFranken

  • problem in the control file created by file LKM to Oracle (SQLLDR)

    I have a fixed file ABC.txt and it has three fields/columns of length, C1: = 4, C2: = 10 & C3: = 6 & I use LKM to Oracle (SQLLDR) file to load data into the target oracle table.

    I received the following error message in step CALL SQLLDR at km
    "org.apache.bsf.BSFException: exception of Jython: Traceback (innermost last):
    File "< string >", line 3, in? »

    Then I checked the registry of file control and found that the start value position & final value was not defined in the control file that is created automatically by LKM
    "
    SQL * Loader-350: error of syntax on line 14.
    Expects an integer positive, found ': '.
    C1_C1 POSITION (:) '


    The control created by ODI file & the position value is missing.

    OPTIONS)
    SKIP = 0,
    ERRORS = 0,
    DIRECT = FALSE
    )
    DOWNLOAD THE DATA
    INFILE 'C:/SNAPON/EOL.txt '.
    BADFILE "C:/SNAPON/ABC.bad."
    DISCARDFILE 'C:/SNAPON/ABC.dsc '.
    DISCARDMAX 1
    IN THE TABLE SNAPON_W.C$ _0ABC
    (
    C1_C1 POSITION (:),
    C2_C2 POSITION (:),
    C3_C3 POSITION (:)
    )

    '
    Anyone know why the position value is not created in the control file.

    Published by: neeraj_singh on March 3, 2011 01:25

    Hi Neeraj,

    It happens because you have not selected the area of mapping as STAGUING running.

    Open your interface, click each column of your data target store, make sure that "run them One" is marked on the "transit Zone".

    Then run your interface.

    Thank you
    Fati

Maybe you are looking for