No autobackup of control file for rman

This is what I used for a backup of database. I do not have controlfile autobackup set, I back it up using rman commands. Backup is made to a third party media manager.
I tried to restore and it cannot startup mount the database, it can only nomount the database. I am assumming this is because it cannot find the control file.
Is it possible to recover the controlfile if autobackup not on ? I did make a backup current controlfile with the rman script below .. Is it possible to get back the database at all ..
SQL> Connected to an idle instance.
SQL> ORACLE instance started.
Total System Global Area 1286066176 bytes
Fixed Size 2221160 bytes
Variable Size 805309336 bytes
Database Buffers 469762048 bytes
Redo Buffers 8773632 bytes
ORA-00205: error in identifying control file, check alert log for more info
This is the backup script.
rman target xxx/xxx nocatalog << eof
run {
allocate channel t1 type 'sbt_tape' parms
'ENV=(tdpo_optfile=xxxxxxxxxxxx)';
backup as compressed backupset database plus archivelog delete input;
release channel t1;
quit
eof
rman target xxxx/xxxx nocatalog << eof
run {
allocate channel t1 type 'sbt_tape' parms
'ENV=(tdpo_optfile=xxxxxxxxxxxxx)';
backup current controlfile;
release channel t1;
quit
eof
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default

joecbc wrote:
I did find this in my ORACLE_HOME .. I was able to do the resrore controlfile command as below .. Not certain how the file named control02.ctl got there, maybe from my backup I did yesterday .. anyway the database is restored, thanks.
RMAN> restore controlfile from '$ORACLE_HOME/fast_recovery_area/RMANT/control02.ctl';
Starting restore at 05-OCT-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=212 device type=DISK
channel ORA_DISK_1: copied control file copy
output file name=/data99/oradata/RMANT/control01.ctl
output file name=/u11/app/oracle/fast_recovery_area/RMANT/control02.ctl
Finished restore at 05-OCT-12You have mutiplexed controlfile in two different location:
/data99/oradata/RMANT
/u11/app/oracle/fast_recovery_area/RMANT
This controlfile "control02.ctl" was your current controlfile, you have controlfile in two different location "/data99/oradata/RMANT" and "/u11/app/oracle/fast_recovery_area/RMANT"
So, be aware you have lost only this file "/data99/oradata/RMANT/control01.ctl" and the "control02.ctl" file is not a backup of controlfile, but is your current controlfile.
You restored control01.ctl from control02.ctl
Check it using command above
sqlplus / as sysdba
Select  name, status from v$controlfile.
or
show parameter controlEdited by: Levi Pereira on Oct 5, 2012 1:05 PM

Similar Messages

  • Batch file for Rman

    hi,
    i want to backup the tablespace by batch file in windows and shell script.i am using control file for rman
    I created two files in windows
    first one is test.bat,second one is trail1.txt
    test.bat contains
    rman target sys/sastha
    *@c:\Oracle\Ora92\d.bat*
    trail1.txt contains
    shutdown immediate;
    startup mount;
    backup tablespace users;
    alter database open;
    exit;
    exit
    but when i executed first file run but it didn't call second file.where i made the mistake.
    thanks
    with regards,
    Edited by: user3266490 on Apr 15, 2009 5:15 AM

    user3266490 wrote:
    hi,
    i want to backup the tablespace by batch file in windows and shell script.i am using control file for rman
    I created two files in windows
    first one is test.bat,second one is trail1.txt
    test.bat contains
    rman target sys/sastha
    *@c:\Oracle\Ora92\d.bat*
    trail1.txt contains
    shutdown immediate;
    startup mount;
    backup tablespace users;
    alter database open;
    exit;
    exit
    but when i executed first file run but it didn't call second file.where i made the mistake.
    thanks
    with regards,
    Edited by: user3266490 on Apr 15, 2009 5:15 AMtest1.bat contains no reference to trail1.txt. It does reference d.bat. What's up with that?

  • Lost 2 of 3 Control Files for 8i - Can I recover?

    I had a hard drive crash and lost 2 of my 3 CONTROL files for my 8.1.6 database. I do have a backup, but I also have a 9i database on this machine and am afraid I will have to reinstall both of them. Is there a way that I will be able to restore my database (aka rebuild the control files) from just ONE Control File?
    Any help would be much appreciated. Thanks

    That's the reason you have 3 control files - so that you can recover from losing one of them. In theory (and also in practice) all 3 control files are exact copies of each other. Just copy the remaining one to the location(s) where Oracle is expecting to see the other 2 controlfiles.

  • Control file for the sql*loader

    hi
    i'm doing my project in database management as the part of my project i have to write the control file for the sql*loader so, any one please clear the funda...so that i can get back to my project work...help me with sample code ..

    Refer chapter 3 and 5 on this url for sql loader and its control file references :
    http://download-west.oracle.com/docs/cd/A91202_01/901_doc/server.901/a90192/toc.htm
    or
    http://download-east.oracle.com/docs/cd/A91202_01/901_doc/server.901/a90192/toc.htm
    You may also refer sql loader examples on this page:
    http://otn.oracle.com/sample_code/products/intermedia/htdocs/avi_bulk_loading.html
    Chandar

  • Control file for SQL*Loader

    Hello,
    I have the following file (2 line) which I want to intend in an oracle database with the SQL*Loader.
    tommy050+3423
    tom 070-0006
    The file consists of two lines and three columns.
    Column1 has always 5 digits and is a String. Additional empty digits will be filled with blanks. Here: “tommy” and “tom “
    Column2 has three digits and is a number. Here: “050” and “070”.
    Column 3 is also a number and consists of four digits. Additionally there is a fifth digit for the leading sign ("+" or "-"). Here: “+3423” and “-0006”.
    This file I want to import in my table “MyTab”.
    MyTab(
         thing          VARCHAR2(5)
         number     NUMBER(3)
         amount     NUMBER
    How would the control file for the SQL*Loader look like for this example?
    Regards
    Homer

    This is a start (untested)
        LOAD DATA
        INFILE 'sample.dat'
        BADFILE 'sample.bad'
        DISCARDFILE 'sample.dsc'
        APPEND
        INTO TABLE MyTab
          ( thing POSITION(1:5)  CHAR ,
           NUMBER    POSITION(6:8)  INTEGER,
           amount POSITION(9:12) INTEGER  )Can you have a column named number?

  • 12c Create Control File for Entire CDB (CDB-root + PDBs)

    Hi,
    In 12c, I understand that there is a single redo log and a single control file for an entire CDB. My question is what datafiles should I use to create control file for the entire CDB. According to Managing Control Files, I suppose I should use all the datafiles (the result of query from CDB-Root: select name from v$datafile), but in practice, the control file creation process can only be successful when I use CDB-Root databfiles. Thanks in advance for any advice.

    The actual error message is duplicate tablespace (system, sysaux), but the root-CDB and PDBs should have separate system and sysaux. The following is the script I used.
    CREATE CONTROLFILE REUSE DATABASE "CDB" RESETLOGS  ARCHIVELOG
        MAXLOGFILES 16
        MAXLOGMEMBERS 3
        MAXDATAFILES 1024
        MAXINSTANCES 8
        MAXLOGHISTORY 292
    LOGFILE
      GROUP 1 '/cdbdata/cdb/redo01.log'  SIZE 50M BLOCKSIZE 512,
      GROUP 2 '/cdbdata/cdb/redo02.log'  SIZE 50M BLOCKSIZE 512,
      GROUP 3 '/cdbdata/cdb/redo03.log'  SIZE 50M BLOCKSIZE 512
    DATAFILE
      '/cdbdata/cdb/system01.dbf',
      '/cdbdata/cdb/sysaux01.dbf',
      '/cdbdata/cdb/undotbs01.dbf',
      '/cdbdata/cdb/pdbseed/system01.dbf',
      '/cdbdata/cdb/users01.dbf',
      '/cdbdata/cdb/pdbseed/sysaux01.dbf',
      '/cdbdata/cdb/pdb1/system01.dbf',
      '/cdbdata/cdb/pdb1/sysaux01.dbf',
      '/cdbdata/cdb/pdb1/pdb1_users01.dbf'
    CHARACTER SET WE8MSWIN1252

  • Control file for Oracle Restore

    Hello All,
    We are making use of only ABAP stack of SAP ECC 6.0 Sr3 version
    Database version is Oracle 10.2
    how can i generate control file for ABAP stack only for database restore?
    Please Guide
    Best Regards,
    Amol Dounde

    Hi Amol,
    We discussed the issue in my previous threads;
    http://scn.sap.com/thread/3223223
    Best regards,
    Orkun Gedik

  • Concatenate positions in control file for sql*loader utility.

    Is there a way to concatenate several character positions in a control file for sql*loader???
    example... field1 position(1:3) || position(5:7) ????
    I would rather not create any unnecessary temp tables for a straight load...

    How about...
    /code
    field1 position(1:7) char "substr(:field1, 1, 3) || substr(:field1, 5)"

  • Control file and Rman

    Hello,
    I have 2 disctinct servers.
    oracle 10gr2 in each one with the same linux red hat 4 version.
    the second server is just to TEST if the backup create with the first one, works fine.
    So the install in each server is exactlly the same...
    same files, same path etc.
    Scenario:
    1 from srv one I execute a full backup with RMAN
    2 I copy the file in server 2
    3 I move a datafile in order to create an error
    4 I test : restore database in server 2...
    I get the followin error:
    RMAN-03002: failure of restore command at 02/24/2008 21:15:37
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 8 found to restore
    and this command return no result:
    RMAN> list backupset;
    RMAN>
    the file created with server 1 have been copied in the declared path into server 2...
    I have execute a crosscheck backup too
    RMAN> crosscheck backup;
    using channel ORA_DISK_1
    RMAN>
    Must I copy the controle file too? in this case will I have an inconsistent error?
    Thanks to help
    Cheers

    You must have
    controlfile autobackup on
    (If you don't change the format it will be in $ORACLE_HOME/dbs, and the format will be c-<database id>-<yyyymmdd>_<piece>.ctl).
    You must copy that file, as it has information about your most recent backup, the backup you just made.
    Hth
    Sybrand Bakker
    Senior Oracle DBA

  • Problems creating control file in RMAN duplicate database

    There is so much detail involved in this operation that I don't know what might be useful, so I'll start simple. I'm attempting to clone a database on the same host using RMAN "duplicate database". I finally got all the setup done, the OS authentication hurdles hurdled, etc. and entered the command:
    duplicate target database to COPYCH2M until time "to_date('March 15 2012 12:00:00', 'Mon DD YYYY HH24:MI:SS')";
    The first time I got:
    ORA-19504: failed to create file "/u01/app/oracle/oradata/COPYCH2M/control01.ctl"
    ORA-27040: file create error, unable to create file
    Linux-x86_64 Error: 2: No such file or directory
    There was nothing in the Oracle instructions about manually creating the directory, but I did so, thinking that might be the problem. And it created the control files! But then I got the following:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 05/21/2012 15:59:25
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06136: ORACLE error from auxiliary database: ORA-00201: control file version 11.2.0.0.0 incompatible with ORACLE version 11.1.0.1.0
    ORA-00202: control file: '/u01/app/oracle/oradata/COPYCH2M/control01.ctl'
    Sounds straightforward, if frustrating, right? Apparently you can't duplicate a database that's not in the exact same version. But:
    1) The backuppiece we got the control file from was from last November.
    2) The version of Oracle has not been updated since that time.
    How can a file created by this version be incompatible with this version? Where is it even getting 11.1?
    Thanks, I'm hoping this is easy but I can post more info if needed.

    >
    There was nothing in the Oracle instructions about manually creating the directory, but I did so, thinking that might be the problem. And it created the control files! But then I got the following:
    >
    The database is limited as to what it can create. Since you defined where you wanted the controlfiles to go (pfile/spfile), it's up to you to make sure the directory is valid and exists. :)
    >
    How can a file created by this version be incompatible with this version? Where is it even getting 11.1?
    >
    As for your controlfiles, make sure the compatible parameter is set the same on both the source and the target unless you are using the default (11.1.0.1 for you, and you aren't)
    Keep going, you'll get there. RMAN duplicate is a great feature.
    Good luck.

  • Bursting control file for Printer not working in WINDOWS ENVIRONMENT

    Hi,
    We are trying to print xml publisher report output (PDF) using bursting control file. Is not wokring.
    We are using ebs (R12.1.1) on Windows environment.
    Any pre-requisite setup (ie. cups config) should be done before printing using control file. Please guide me i am not having knowledge in printer setup and printer part..
    Thanks in advance
    --Ben                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Hussein,
    Yes, I am able to print seed concurrent report (o/p -text) to that printer (method:- giving the printer name and copies by clicking " Option " in SRS window.. )
    When i do the same for xml publisher publisher report to the same printer , its not working using bursting control file.
    I too made the test in xml publisher report without bursting control file , there i faced another new issue. Let me explain
    1. We are using RDF as data source . here o/p :-" XML "
    2. We are using RTF as layout. In template definition, i chose the default o/p type as :- "HTML"
    3. When i submit the request, i choose the printer which is working fine for printing seeded report. (method:- giving the printer name and copies by clicking " Option " in SRS window.. )
    4. My printer getting prints HTML tag, instead of desired o/p. I wondered after seeing the printout.
    5. I cross checked by clicking view output, its showing me the exact html output as per RTF layout.
    Dont know wat happening ??? Help me out.
    i did the same for changing default output type in template definition to RTF,PDF.. its printing source code of the output type instead of printing output.
    Thanks & Regards,
    --Ben                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • I am getting error while creating Control file for a fla file upoad in HANA

    Hi Experts,
    I am getting the following error when I try to create crtrol file for a flat file extraction in SAP HANA.
    Could not execute 'import data into table P935718."COPATBL" from 'COPATBL.csv' record delimited by '\n' fields ...'
    SAP DBTech JDBC: [257] (at 14): sql syntax error: incorrect syntax near "into": line 2 col 1 (at pos 14)
    Here is the code I have used to create control file after I creating the table.
    import data
    into table P935718."COPATBL"
    from 'COPATBL.csv'
        record delimited by '\n'
        fields delimited by ','
        optionally enclosed by '"'
    error log 'P935718.COPATBL.err'
    p935718 is my user ID, COPATBL is my table created, COPABL.CSV is a flat file.
    Please help me in this regard.
    Thanks,
    Guna

    Hello,
    guessing from the error message it looks that you are trying to execute "import data" as SQL command.
    Please note that import data is NOT SQL command but it is syntax for control file. You need to create file with this syntax on server and then use command: IMPORT FROM '/<path>/<filename>.ctl'
    In a shortcut:
    1.- create comma separated CSV file with your data - <source cvs>.csv
    2.- upload CVS file to HANA server
    3.- create the control file <filename>.ctl:
    import data
    into table <schema>."<table name>"
    from '<source cvs>.csv'
    record delimited by '
    fields delimited by ','
    optionally enclosed by '"'
    error log '<file name>.err'
    4.- execute command:
    IMPORT FROM '/<path>/<filename>.ctl'
    Please check following threads:
    How to load CSV files into HANA
    Will HANA supports Bulkload
    Tomas

  • Need help in writing the control file for SQLLOADER

    Is it possible to error out the Sqlloader in case the data fields in the data file for a row are more than the fields stated in the control file?
    i.e. My data file is something like
    aaa,bbb,cc
    dd,eee
    And my ctl file has just 2 columns in it. Is it possible to write a control file which will cause the Sqlloader to error out?
    Thanks...

    Nisha,
    Again I posted test example in your other post but here is how can do that
    CREATE TABLE mytest111 (
       col1 NUMBER,
       col2 NUMBER,
       col3 NUMBER
    LOAD DATA
    TRUNCATE INTO TABLE MYTEST111
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    TRAILING NULLCOLS
    col1 integer external,
    col2 integer external
    #mytest.dat
    1,2,3
    1,2
    SQL*Loader: Release 10.2.0.1.0 - Production on Fri Apr 10 11:40:39 2009
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Control File:   mytest.ctl
    Data File:      mytest.dat
      Bad File:     mytest.bad
      Discard File:  none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array:     64 rows, maximum of 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    Table USIUSER.MYTEST111, loaded from every logical record.
    Insert option in effect for this table: TRUNCATE
    TRAILING NULLCOLS option in effect
       Column Name                  Position   Len  Term Encl Datatype
    COL1                                FIRST     *   ,  O(") CHARACTER           
    COL2                                 NEXT     *   ,  O(") CHARACTER           
    Table MYTEST111:
      2 Rows successfully loaded.
      0 Rows not loaded due to data errors.
      0 Rows not loaded because all WHEN clauses were failed.
      0 Rows not loaded because all fields were null.
    Space allocated for bind array:                  33024 bytes(64 rows)
    Read   buffer bytes: 1048576
    Total logical records skipped:          0
    Total logical records read:             2
    Total logical records rejected:         0
    Total logical records discarded:        0
    Run began on Fri Apr 10 11:40:39 2009
    Run ended on Fri Apr 10 11:40:40 2009
    Elapsed time was:     00:00:00.99
    CPU time was:         00:00:00.06
    {code}
    Regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Control file for United States Geometry

    Has anyone built a control file to load all of the United States? I have tried dumping all of the STATES GEOM data out of the Demo, but to clean it up and use it in a control file to load it into a new table I need to dump it into Excel. Excel hits its limit on column numbers when trying to create the Row for Alaska.
    does anyone have any other ideas on how I can do this.
    Thanks in advance!
    -Scott

    Hi again Richard,
    Again dumping the GEOM data from STATES table in the demo
    the output looks like this:
    Arizona AZ
    SDO_GEOMETRY(3, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 3, 1), SDO_ORDINATE_ARRAY(-114.0498, 37.000423, -113.48438, 37, -112.8986, 37.000401, -112.5396, 37.000683 ........................etc..
    To format the data from the demo so I can create a bulk load control file, it needs to be in the form of:
    BEGINDATA
    2003|Arizona|AZ|-112.5396|37.000683|-112|37.000977|-111.41205|37.001514|-111.13302|/
    etc.....
    this is what I am trying to accomplish, and why I would need Excel, or another tool, to help with the correct formatting.
    The reason for this is that the GEOM data needs to be loaded into a different table on a different server, I only have the demo running on my local machine. I need to create this control file so I can create my own table on the production server and develop from that version of the database.
    Hope that clears things up, thanks again.
    -Scott

  • Creating a standby control file for cloning a standby database

    Hi
    I am in the process of trying to document the cloning of a standby database. I am trying to amalgamate three different documents - one for a normal clone, one for the creation of a SB database, and the other a formal Oracle document - the Business Continuity doc.
    Among the several things that confuse me, is the issue of creating (or not) a standby control file.
    I am not doing any kind of data file deletion / copying from source to target, as the SB database is updated all day with data file changes. I am doing a complete copying over of the APPL_TOP and techstacks.
    My question then, is this: should I be worried about creating a standby control file? I am told by our Senior here that "you can get away with not doing it", which sounds like too much of a risk to me.
    I am under a bit of pressure for this and I am not 100% sure about certain issues (see my other post for knowing how many DATA_TOPS we have on the SB, for instance).
    Thanks for listening.
    AIX 5.2.
    Oracle 10g.
    DA

    Do you already have a Standby running ? (then it may be using a standby controlfile).
    Yes. And there is already a standby control file there. It seems to me, that if the data (logs) transfers are done each minute or whatever between source and SB, and the SB is a copy of the db, then we dont need to worry about any kind of data files, since they should be identical. The only things I will need to change are the configuration files like the ifile in both dbs and tns_names, listener, tnsnames.ora, and the init.ora.
    b. Are you creating a document about the process of creating standby from production ? If you plan to use DataGuard, you will need a standby controlfile. Otherwise , it depends on how you configure the standby.
    No. I am creating a doc for how to clone from Production to a SB environment. A reason behind this is that the Apps side of the SB is about 9 patches behind the Production box, and we need to update it. I believe this is the main reason for doing this.
    c. Just to check : You are NOT using Storage Mirroring -- ie D.R. ?
    No, no DR on this environment.
    Thanks.
    DA

Maybe you are looking for

  • Baixa performance do SAP b1

    Olá experts, Tenho o SAP B1 2007B PL 21 instalado e após uma migração de servidor (2x Xeons X5980 + 16GBRAM + Raid5 8 HD's SAS) as estações começaram a demorar de 5 a 7 minutos para logar no SAP e em torno de 10 minutos para trocar de base. Temos em

  • Print Module: Auto-Rotate to fit and Photo Info Text

    When in the print module with "Auto-Rotate to fit" selected, A landscape images correctly rotates to fit the page, but the text that is selected in the "Photo Info" setting does not rotate. Thus, the text appears along the left side of the image . An

  • Error when using SQL Developer to IMPORT Access data into Oracle

    Hello, I am using SQL Develoepr to export Access mdb file into Oracle. When I try to use Tools ---? Migration---> Microsssfot access exported --> I am getting an error message upon attaching the Access database file, the error states "Error#40179 - X

  • Unable to charge Microphoto with USB AA Battery Char

    Hi All, Prior to purhcasing the microphoto, I went down to creative HQ store with my USB AA Portable Charger to test if my portable charger can charge the Microphoto. The staff were very helpful and let me test on unit, and also inform me that as lon

  • DotNET Runtime Error

    Hi Guys Good day. II have seen a Dot Net Setup error on the production Server Event Log.  Below is the Error Message. The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local computer may not have the necessary registr