From control file to RMAN catalogue

Dear buddies,
Right now my RMAN backup runs using the control file. How could I change it to catalogue?
Please guide me.
Thanks in advance.

If you already created the catalog then register the database in that catalog as
RMAN> register database ;
If you have not created the catalog then create the catalog and register your database below link help you
http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmcatdb.htm
--neeraj.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Sequence from Control file

    Can I call sequence from Control file( Sql Loader)
    Plz help.

    As an option to what Warren suggested, you can also specify an actual sequence name in the control file itself.
      LOAD DATA
      INFILE datafile.dat
      APPEND
      INTO TABLE <table_name>
      FIELDS TERMINATED BY '|'
      TRAILING NULLCOLS
        (<column_name> CHAR,
         <column_name> CHAR,
         <column_name> "seq_name.nextval")

  • 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

  • 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

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

  • Which control file does RMAN use?

    On March 1, full backup along with control file was taken
    On March 3, full backup along with control file was taken
    On March 5, there is a media failure (some datafile is corrupt, but control file is intact).
    So, RMAN restores March 3 full back up, and applies archived logs. But my question is: which controlfile does it use? The one on march 3? The one on march 5? Or Both?

    The first choice is always the actual,current controlfile. Backed up controlfiles are only used, when all current controlfiles are lost.
    Werner

  • Datafile information deleted from control file

    Hi,
    I created undo tablespace and associated a path with it.I dropped the tablespace,but did not drop the datafiles.
    the dba_data_files view does not show those files.
    In the OS,those files exist,but i am not able to drop datafile.
    When I do,
    SQL> alter database datafile '\usr\lib\oracle\xe\oradata\XE\undo.dbf' offline drop;
    alter database datafile '\usr\lib\oracle\xe\oradata\XE\undo.dbf' offline drop
    ERROR at line 1:
    ORA-01516: nonexistent log file, datafile, or tempfile "\usr\lib\oracle\xe\oradata\XE\undo.dbf"
    Please help...
    The files are there physically.

    01516, 00000, "nonexistent log file, datafile, or tempfile \"%s\""
    // *Cause:  An attempt was made to use ALTER DATABASE to rename
    //          a log file, datafile, or tempfile; or to change attributes
    //          of a datafile or tempfile (e.g., resize, autoextend,
    //          online/offline, etc.); or to re-create a datafile.
    //          The attempt failed because the specified file
    //          is not known to the database's control file
    //          or is not of a type supported by the request.
    // *Action: Specify the name or number of an existing file
    //          of the correct type, as appropriate.
    //          Check the relevant V$ table for a list of possible files.

  • Remove RMAN information from target database control file

    Dear Gurus,
    Can any one inform me that how I can remove RMAN related information from Target database control file without recreating the control file.
    Regards,
    asif

    I want to remove all RMAN related infromation from control file including the destination specification where backup sets were being created becuase that destination is no more available,
    configuration information also need to be removed from control file without recreating the control file.
    kindly help,
    regards,
    asif

  • RMAN-06067: RECOVER DATABASE required with a backup or created control file

    Hi,
    Oracle version :10.2.04
    I recovered control files
    RMAN> restore controlfile to '/oracle/ora10gr4/dbs/nis.ctl';
    Starting restore at 21-AUG-12
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: restoring control file
    output filename=/oracle/ora10gr4/dbs/nis.ctl
    channel ORA_DISK_1: reading from backup piece /data_idx1/ORAMIG/OMIGTEST/cfc-260103938-20120821-03
    channel ORA_DISK_1: restored backup piece 1
    piece handle=/data_idx1/ORAMIG/OMIGTEST/cfc-260103938-20120821-03 tag=TAG20120821T152259
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
    Finished restore at 21-AUG-12after this i got the below error when i tried to open DB.
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1:
    '/data_idx1/ORAMIG/OMIGTEST/DATA_FILES/system_1_OMIGTEST.dbf'So i tried the following.
    RMAN> restore datafile '/data_idx1/ORAMIG/OMIGTEST/DATA_FILES/system_1_OMIGTEST.dbf';
    Starting restore at 21-AUG-12
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to /data_idx1/ORAMIG/OMIGTEST/DATA_FILES/system_1_OMIGTEST.dbf
    channel ORA_DISK_1: reading from backup piece /data_idx1/ORAMIG/OMIGTEST29_1_791910787
    channel ORA_DISK_1: restored backup piece 1
    piece handle=/data_idx1/ORAMIG/OMIGTEST29_1_791910787 tag=TAG20120821T151306
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:15
    Finished restore at 21-AUG-12
    RMAN> recover  datafile '/data_idx1/ORAMIG/OMIGTEST/DATA_FILES/system_1_OMIGTEST.dbf';
    Starting recover at 21-AUG-12
    using channel ORA_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 08/21/2012 16:21:45
    RMAN-06067: RECOVER DATABASE required with a backup or created control fileCan anyone pls help me with this error?
    Thanks

    Hi,
    Try this command after restore control file.
    RMAN>  restore database;
    RMAN> recover database;
    RMAN> alter database open resetlogs;Paste here result, if you are get error.
    Regards
    Mahir M. Quluzade
    www.mahir-quluzade.com

  • Control file backup using RMAN

    Hi,
    I need to take the backup of control file using RMAN and I am using ASM non RAC.
    DB : 10.2.0.4.0
    oS : SunOS rmohsitut01 5.10 Generic_144488-17 sun4u sparc SUNW,SPARC-Enterprise
    I have tried bellow commands
    ======
    RMAN> backup format '/tmp/backup/control.back' current controlfile;
    Starting backup at 21-JUL-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=19983 devtype=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: sid=9983 devtype=DISK
    allocated channel: ORA_DISK_3
    channel ORA_DISK_3: sid=19982 devtype=DISK
    allocated channel: ORA_DISK_4
    channel ORA_DISK_4: sid=9982 devtype=DISK
    allocated channel: ORA_DISK_5
    channel ORA_DISK_5: sid=19981 devtype=DISK
    allocated channel: ORA_DISK_6
    channel ORA_DISK_6: sid=19980 devtype=DISK
    allocated channel: ORA_DISK_7
    channel ORA_DISK_7: sid=9981 devtype=DISK
    allocated channel: ORA_DISK_8
    channel ORA_DISK_8: sid=19979 devtype=DISK
    allocated channel: ORA_DISK_9
    channel ORA_DISK_9: sid=19978 devtype=DISK
    allocated channel: ORA_DISK_10
    channel ORA_DISK_10: sid=9980 devtype=DISK
    allocated channel: ORA_DISK_11
    channel ORA_DISK_11: sid=19985 devtype=DISK
    allocated channel: ORA_DISK_12
    channel ORA_DISK_12: sid=9979 devtype=DISK
    allocated channel: ORA_DISK_13
    channel ORA_DISK_13: sid=19977 devtype=DISK
    allocated channel: ORA_DISK_14
    channel ORA_DISK_14: sid=19976 devtype=DISK
    allocated channel: ORA_DISK_15
    channel ORA_DISK_15: sid=9978 devtype=DISK
    allocated channel: ORA_DISK_16
    channel ORA_DISK_16: sid=19975 devtype=DISK
    allocated channel: ORA_DISK_17
    channel ORA_DISK_17: sid=19974 devtype=DISK
    allocated channel: ORA_DISK_18
    channel ORA_DISK_18: sid=9986 devtype=DISK
    BACKUP CURRENT CONTROLFILE TO ':/tmp/control.bak'; RMAN allocating channels but backup is not happening.
    Any idea ?
    --Thanks in Advance                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi,.
    I have given the bellow command
    RMAN> BACKUP AS COPY CURRENT CONTROLFILE FORMAT '/tmp/control_stdby_backup.ctl';
    Starting backup at 21-JUL-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=19985 devtype=DISK
    allocated channel: ORA_DISK_2
    channel ORA_DISK_2: sid=9981 devtype=DISK
    allocated channel: ORA_DISK_3
    channel ORA_DISK_3: sid=19977 devtype=DISK
    allocated channel: ORA_DISK_4
    channel ORA_DISK_4: sid=9980 devtype=DISK
    allocated channel: ORA_DISK_5
    channel ORA_DISK_5: sid=9979 devtype=DISK
    allocated channel: ORA_DISK_6
    channel ORA_DISK_6: sid=9978 devtype=DISK
    allocated channel: ORA_DISK_7
    channel ORA_DISK_7: sid=19976 devtype=DISK
    allocated channel: ORA_DISK_8
    channel ORA_DISK_8: sid=9986 devtype=DISK
    allocated channel: ORA_DISK_9
    channel ORA_DISK_9: sid=19975 devtype=DISK
    allocated channel: ORA_DISK_10
    channel ORA_DISK_10: sid=9977 devtype=DISKBut it keeps on allocating channels and never ending
    Please help ..
    Edited by: Vijay.Cherukuri on Jul 21, 2012 7:19 PM

  • Rman backup control file

    hii i am working on oracle 10g 10.2.0.4.0 on solaris 10 have asm and rac setup(2 node rac).
    i have only one control file--+DATA_DG1/ftssdb/controlfile/current.270.664476369
    i am backing up these control file with rman
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backup/rman_node1/%F';
    c-31850833-20100909-00 is a backed up piece of control file.
    now suddenly one system admin deleted that control file...how can i recover my database using rman backup??

    You can found these entries like :
    CREATE CONTROLFILE REUSE DATABASE "DBNAME" NORESETLOGS NOARCHIVELOG ==depends what is your db log mode
    MAXLOGFILES 32
    MAXLOGMEMBERS 2
    MAXDATAFILES 30
    MAXINSTANCES 8
    MAXLOGHISTORY 800
    LOGFILE
    GROUP 1 '/u01/oracle/7.1.6/dbs/log1p716.dbf' SIZE 500K,
    GROUP 2 '/u01/oracle/7.1.6/dbs/log2p716.dbf' SIZE 500K,
    GROUP 3 '/u01/oracle/7.1.6/dbs/log3p716.dbf' SIZE 500K
    DATAFILE
    '/u01/oracle/7.1.6/dbs/systp716.dbf' SIZE 40M,
    '/u01/oracle/7.1.6/dbs/tempp716.dbf' SIZE 550K,
    '/u01/oracle/7.1.6/dbs/toolp716.dbf' SIZE 15M
    # Recovery is required if any of the datafiles are restored backups,
    # or if the last shutdown was not normal or immediate.
    RECOVER DATABASE
    # Database can now be opened normally.
    ALTER DATABASE OPEN;
    Edited by: user00726 on Sep 9, 2010 4:42 AM

  • Loss of control file

    Hi
    My database is running on solaris 10. database verrison is 10.2.0.3.0
    when connecting ot db after databases get started. it throws error
    ORA-00205: error in identifying control file, check alert log for more info
    and when I checked in alert log file
    Thu Dec 25 18:39:04 2008
    Errors in file /testdb/..n/../admin/../udump/mft_ora_7988.trc:
    ORA-19502: write error on file "/oradb/../../arch/arch1_2162_623164752_MFT.log", blockno 30721 (blocksize=512)
    ORA-27063: number of bytes read/written is incorrect
    after browsing google I infer that we lost control file.
    I dont have it backup
    how do i recover it
    Thanks in advance.

    Do you have backup control file or auto backup control file by rman or not.
    If you have backup, try recover controlfile from rman backup( you should know DBID).
    Anyway If you don't have rman backup. so recreate controlfile (if you have backup control file to trace, you can use it):
    1. Take a full backup of the database, including all datafiles and redo
    log files.
    2. Connect / as sysdba or as sys user and do a STARTUP NOMOUNT.
    3. Issue the CREATE CONTROLFILE statement.
    More information on Oracle.
    http://www.oracle.com/pls/db102/homepage
         Example:
         CREATE CONTROLFILE REUSE DATABASE "TESTDB" NORESETLOGS NOARCHIVELOG
         MAXLOGFILES 50
         MAXLOGMEMBERS 3
    MAXDATAFILES 300
    MAXINSTANCES 8
    MAXLOGHISTORY 500
         LOGFILE
         GROUP 1 '/oradata/testdb/log1.dbf' SIZE 100M,
              GROUP 2 '/oradata/testdb/log2.dbf' SIZE 100M,
              GROUP 3 '/oradata/testdb/log3.dbf' SIZE 100M
         DATAFILE
              '/oradata/testdb/system01.dbf' SIZE 400M,
              '/oradata/testdb/sysaux01.dbf' SIZE 500M,
              '/oradata/testdb/undotbs01.dbf' SIZE 100M ;
    4. Perform media recovery on the database.
         RECOVER DATABASE
    5. Open the database.
         ALTER DATABASE OPEN;
    Good Luck.

  • Problem in identifying control file when creating physical standby

    hi there,
    (database version: 10.2.0.4
    plateform linux)
    I'm using the command as below to create physical standby database from backup:
    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 restorei have already tried crosscheck but still giving same error
    thanks

    Hello;
    So this is what I would do :
    Backup Primary ( change to your directory as need )
    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 complete details of this method see :
    http://www.visi.com/~mseberg/duprman2.html
    Best Regards
    mseberg

  • Creating a control file copy with ASM

    Configuration is Oracle 10.2, RAC, and ASM (Automatic Storage Management). I would like to create a second copy of the control file.
    If this wasn't ASM, I could just bring down the database, copy the control file using an operating system command, modify the pfile to reference both the original and new copy, and then restart the database.
    Since this is ASM, I cannot use an operating system command to copy the control file, and RMAN "BACKUP" (which is the only way I know to make a copy of the control file) will only work if the database is up. When I "restore" the control file using RMAN and change the pfile to reference both control files I get a message like the following when attempting to start the database:
    ORA-00214: control file '+ASMGROUP1/db1/controlfile/current.271.566646845'
    version 2241 inconsistent with file
    '+ASMGROUP1/db1/controlfile/current.268.566661765' version 2236
    Soooooo, how do I make and implement a second copy of a control file using ASM.
    Thanks

    Hi.
    This is not testet so presede with caution as it is meant as a discussion ;-)
    As I see it there is no logical way to extend the instance by adding a controlfile.
    The following procedure might work (has not been tested)
    I think you have to make a controlfilebackup with the database closed in normal mode using RMAN.
    Further you might be able to edit the pfile with create pfile from spfile and further create spfile from pfile. Extending the controlfile parameter to represent number and names of controlfile needed.
    With this done, the database is closed normal with a controlfile copy presented somewhere on the filesystem.
    startup mount;
    restore controlfile from '<backup controlfile location>'
    alter database mount;
    alter database open;
    Any thoughts about this procedure guys?
    Rgds
    Kjell Ove

  • Issue with create controlfile script that was generated from trace file

    Hi All,
    I am racking my brans here as cannot seem to fatham this one out. Having backed up control file to trace, then deleted all datafiles, control files, and redo log files, I then ran the following and received the below error:
    SQL> STATUP NOMOUNT
    ORACLE instance started.
    Total System Global Area 289406976 bytes
    Fixed Size 1248576 bytes
    Variable Size 88081088 bytes
    Database Buffers 192937984 bytes
    Redo Buffers 7139328 bytes
    SQL> CREATE CONTROLFILE SET DATABASE "TEST" RESETLOGS ARCHIVELOG
    2 MAXLOGFILES 16
    3 MAXLOGMEMBERS 3
    4 MAXDATAFILES 100
    5 MAXINSTANCES 8
    6 MAXLOGHISTORY 292
    7 LOGFILE
    8 GROUP 1 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\REDO01.LOG' SIZE 50M,
    9 GROUP 2 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\REDO02.LOG' SIZE 50M,
    10 GROUP 3 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\REDO03.LOG' SIZE 50M
    11 DATAFILE
    12 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSTEM01.DBF',
    13 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDOTBS01.DBF',
    14 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSAUX01.DBF',
    15 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\USERS01.DBF'
    16 CHARACTER SET WE8MSWIN1252;
    CREATE CONTROLFILE SET DATABASE "TEST" RESETLOGS ARCHIVELOG
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in identifying file
    'C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSTEM01.DBF'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    I am able to restore a control file using [RMAN> restore controlfile to '....' ] and then mount the database without problems one the CF restore has taken place, it is just when I attempt to create control file using the able commands that I get the preceding error.
    As this control file statement that is attepting to create a control file has never had any information about datafiles is this why I am seeing the error?
    Have checked metalink & web but yet to find a reason why this is occuring. Please advise.
    Thanks,
    Andrew

    Hi,
    You deletd all the data files that is the issue. So it is complaining that it can not find system tablespace datafile. If you just wanted to recreate the controlfile then just delete control file. Why did you delete data files.
    Regards
    Generetaed control trace flle is used to re-create the control file. This not not a way to create/restore data files. They should exist for control file to be created.
    Edited by: skvaish1 on Nov 5, 2009 4:36 PM

Maybe you are looking for