Controlfile backup to trace

How we can use controlfile backup in the tarcefile, suppose i want to use that trace file to multiplex my existing control_files.....

I multiplexed it this way...works fine...
I tried alter database backup controlfile to
'<dest>'; and then update the control_files to the
'<dest>' for control file.......It did accept it ,
did show up in control_files ...any idea why.....or i
thing we can't use backups directly....?What the command "alter database backup controlfile" did is dump out a text file which you can use to create controlfile in the event of disaster or if you want to change DB NAME etc.. It's not byte to byte backup of controlfile. Nor it can be used to multiplex controlfiles.
check the content of file in your <dest> using any text editor you will know.

Similar Messages

  • Need of resetlogs in recovery from controlfile backup...

    Hi,
    Suppose we are recovering with controlfile backup, we have all archivelogs and online redologs.
    After restoring the controlfile and recovering the database why there is need of *"open with resetlogs"*, because when we have all archivelogs and redologs the DB should recover to the point of failure.
    Plz help and clarify.
    Ashutosh.

    Suppose we are recovering with controlfile backup, we have all archivelogs and online redologs.
    After restoring the controlfile and recovering the database why there is need of "open with resetlogs", because when we have all archivelogs and redologs the DB should recover to the point of failure.My understanding is when we were performing incomplete recovery we need to open with resetlogs is it true or not.. Can you please correct if I'm wrong.
    http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10770/rcmsynta7a.htm
    Thanks in advance for spending your valuable time. :)

  • RMAN:  create only one copy of controlfile backup

    OS: AIX 5.3L and Oracle 10g R2
    When I run my RMAN backup, if I have configure controlfile autobackup ON and run a rman script with full db backup, the rman always generates two copies of controlfile backup at the same location. My Q are
    1. how can I just generate one copy?
    2. if it generates 2 copies, can I have one copy at one lolcation and second copy at other loaction?
    I once entered the "CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/remote/solar/flash_recovery/baan_standby/cf_%F'; ", it will alter my default location again, thenstill produced 2 copies at the same location.

    I cannot get Firefox to run now. I backed up my Profile to another drive. Cannot create a new one as Firefox will not run. It says there is another copy running. However, I have deleted all Firefox and Mozilla files and downloaded new. When I try to run it, I get the message to close Firefox as two cannot run at once.
    I did create a new Mac account logon and can run Firefox there, so something in the other account is showing Firefox is running.
    I also checked in ACTIVITY MONITOR and in SETUP and there is no Firefox or Mozilla running.
    So, where can this bug be hiding????

  • Controlfile backup/restore questions

    I am trying to clarify RMAN behavior with repect to controlfile obsolecence:
    Here are some details of the environment:
    10G R2
    NOCATALOG mode
    controlfile autobackup on
    Daily full backup
    Hourly archivelog backups
    daily cleanup process (DELETE FORCE OBSOLETE)
    flash_recovery_area assigned
    REDUNDANCY set to 3
    The above setup results in hourly controlfile backups as well as controlfile backups before and after the full backup.
    What I have noticed is that the controlfile backups taken for the prior day are purged with each new successful full backup. Wouldn't those earlier controlfile backups be needed to restore the full backups taken before today? Especially since this is a NOCATALOG scenario. Or is that the case only when db structural changes take place such as an add or delete datafile.
    Thanks

    I haven't seen a recommendation from Oracle on this. What/whom are you refering to when you say it is strongly recommended?The Backup and Recovery Basics guide says:
    A recovery window-based backup retention policy provides the most certain recoverability for your data.
    Recovery window-based policy is explicitely based on guaranteed point in time recovery for a given timeframe whereas redundancy-based policy does not guarantee point in time recovery for a given timeframe.

  • Recovery with controlfile backup.

    Oracle 10.2.0.3 on IBM AIX 5.3.
    1) Controlfile backup(binary backup of controlfile or RMAN auotmatic backup of control file) was taken at 01/21/2009.
    2) I have full RMAN hot backup taken on 01/22/2009.There is no other backup available other than the backup taken on 01/22.
    3) Can I restore/recover DB to 01/21/2009 using control file backup of 01/21/2009, I have all the archived logs generated from 01/20, Flashback is disabled on the DB.
    If yes then how?

    I have RMAN automatic backup of control file and document says..
    You can restore the autobackup to the default or a new location. RMAN replicates the control file to all CONTROL_FILES locations automatically.Because the repository is not available when you restore the control file, you must use the SET DBID command to identify the target database. The DBID is used to determine the location of control file autobackups.
    But I have no backup prior to the control file backup..I will not be able to do incomplete recovery also, as the datafiles are more recent than my control files and Oracle can only roll forward in case of recovery.

  • Not generating controlfiles backup trace file

    Hello frndssss
    when i am issing this command ,
    sql>alter database backup controlfile to trace;
    output its showing : Database is altered .
    when I am looking the trace files in UDUMP dirrectory there is no file exist there
    what might be the reason ? my before trace files open mode is notepad

    thanks sajiv ,,,, now I m able to get backup trace file of a controlfile , but this i can do to generate 1 trace file that 2 we have to specify our name ,
    I need permanent solution for this and it has to trace at Udump location which i specified in parameter file ,
    see my dump destination
    SQL> show parameter dump_dest
    NAME TYPE VALUE
    background_dump_dest string C:\ORACLE\PRODUCT\10.2.0\ADMIN
    \ORCL\BDUMP
    core_dump_dest string C:\ORACLE\PRODUCT\10.2.0\ADMIN
    \ORCL\CDUMP
    user_dump_dest string C:\ORACLE\PRODUCT\10.2.0\ADMIN
    \ORCL\UDUMP
    when I am giving this command ,
    alter database backup controlfile to trace;
    it has to go to udump dest ..... May I right , the process will be like this

  • Controlfile backups and deletions

    10gr2 RAC, ASM on Oracle Enterprise Linux.
    Currently, we have the autobackup of our controlfile set to ON. Retention policy is set to 10 days (7 days to secondary storage and 3 most current in FRA). We backup every night to the FRA and backup the backupsets after 3 days to secondary storage. The idea being that if we lose the FRA in some disaster scenario, we can restore from our secondary storage. The problem we're finding is that the autobackups of the controlfile on the secondary storage get deleted and reused. If we ever have to restore from secondary storage, there is no controlfile to restore from anymore. Is there a way to remedy this? If I do an "include controfile" with the backup backupset command, does this "LOCK" the controlfile in place? Please let me know if further explanation is needed. Your help is greatly appreciated...thanks!

    jjmdb, how about just copying the older backup set to tape outside of rman? You could then restore the tape backup to disk and from the disk restore the control file and using it perform recovery. You would also need to include the necessary archived redo logs as part of the backup set if the desire is to have point in time recovery points available for restoration to a new location for key periods like year-end, quarter-end.
    Personally I see very little reason to maintain more than a couple of backups for the purpose of recovery of the production database. We would always use the most recent backup to restore and forward recover from unless it tuned out one of the files was damaged in which case we would go back to the prior backup and try to forward recover from there. If that is not successfull we would be in the situation where we be in the situation where we would be looking at one of the utilities that can read and salvage data directly from Oracle data files.
    HTH -- Mark D Powell --

  • Query RMAN catalog to view my controlfile backup in backup piece

    version: 11.1.0.7
    We need to restore an year old database and its backup is availble in TAPE, RMAN directly takes backup to TAPE.
    we have dropped the database, Now there is a requirement to restore the database.
    we Know DBID, I can restore the db once i can restore the contolfile.
    However we did not have controlfile auto backup. whenever there is FULL/incremental backup cotnrolfile is included in that backup. now we have the rman catalog for that database. so How I can query rman catalog to find which backup piece containing the latest controlfile? once we know the backuppiece info, we can restore controlfile from that piece
    any help on this?

    user8860934 wrote:
    version: 11.1.0.7
    We need to restore an year old database and its backup is availble in TAPE, RMAN directly takes backup to TAPE.
    we have dropped the database, Now there is a requirement to restore the database.
    we Know DBID, I can restore the db once i can restore the contolfile.
    However we did not have controlfile auto backup. whenever there is FULL/incremental backup cotnrolfile is included in that backup. now we have the rman catalog for that database. so How I can query rman catalog to find which backup piece containing the latest controlfile? once we know the backuppiece info, we can restore controlfile from that piece
    any help on this?Connect with recovery catalog through rman and
    set dbid <yourdbid>
    list backup of controlfile;In this case you will see all backups of controlfile.And according time this backup you can restore database using
    rman>restore controlfile from 'backupset_location';

  • How to include DBID in controlfile backup filename

    Hi,
    I've googled over this issue a lot...actually, for disaster recovery purposes, I want to have dbid somewhere "visible" (I know there are some workarounds to find the dbid of the db, also I log the RMAN execution and the dbid is there, but i prefer to have it ready at hand) so I found that F% parameter puts the dbid in filename. But RMAN throws error when I use this parameter and says F is an unknown one.
    Any ideas?

    Hello;
    Test :
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> SELECT DBID FROM V$DATABASE;
          DBID
    3806912436
    SQL> Recovery Manager: Release 11.2.0.3.0 - Production on Mon Dec 31 10:05:49 2012
    Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
    connected to target database: RECOVER2 (DBID=3806912436)
    connected to recovery catalog database
    RMAN> configure controlfile autobackup ON;
    old RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN> configure controlfile autobackup format for device type disk to 'B_%F';
    new RMAN configuration parameters:
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'B_%F';
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN> Check
    RECOVER2 >ls -al /u01/app/oracle/product/11.2.0.3/dbs/B_c-3806912436*
    -rw-r----- 1 oracle oinstall 10223616 Dec 31 10:09 /u01/app/oracle/product/11.2.0.3/dbs/B_c-3806912436-20121231-00Adding %I seems to help the most, the problem with FORMAT is, it does not put the file where I like it. You can hard code it, but it's not exactly what I want.
    '/disk1/control_files/autobackup_%F';
    Best Regards
    mseberg
    Edited by: mseberg on Dec 31, 2012 11:13 AM
    Edited by: mseberg on Dec 31, 2012 11:28 AM

  • Rman want really old logsequence for recover

    Hello,
    Red Hat x86 - 5
    Oracle 10.2.0.2
    I have restored a database to a new host from tape, not a duplicate, but a controlfile restore, and then restore.
    run
    ALLOCATE CHANNEL ch0 TYPE 'SBT_TAPE' PARMS 'ENV=(NB_ORA_SERV=xxxxx, NB_ORA_CLIENT=xxx, NB_ORA_POLICY=xxx)';
    ALLOCATE CHANNEL ch1 TYPE 'SBT_TAPE' PARMS 'ENV=(NB_ORA_SERV=xxxxx, NB_ORA_CLIENT=xxx, NB_ORA_POLICY=xxx)';
    restore database CHECK READONLY;
    RELEASE CHANNEL ch0;
    RELEASE CHANNEL ch1;
    }It works fine, and when i try to start recover with this command, the time stamp is after last backup, but not after last archived redo log is backed up (hence all redo logs is on tape)
    run
    ALLOCATE CHANNEL ch0 TYPE 'SBT_TAPE' PARMS 'ENV=(NB_ORA_SERV=xxxxx, NB_ORA_CLIENT=xxx, NB_ORA_POLICY=xxx)';
    ALLOCATE CHANNEL ch1 TYPE 'SBT_TAPE' PARMS 'ENV=(NB_ORA_SERV=xxxxx, NB_ORA_CLIENT=xxx, NB_ORA_POLICY=xxx)';
    set until time "to_date('June 22 2010 23:55:00','Mon DD YYYY HH24:MI:SS')";
    RECOVER DATABASE;
    RELEASE CHANNEL ch0;
    RELEASE CHANNEL ch1;
    }This should work fine, however he ask for some really old crappy log:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 06/28/2010 16:12:13
    RMAN-06053: unable to perform media recovery because of missing log
    RMAN-06025: no backup of log thread 1 seq 41538 lowscn 101774536598 found to restore
    RMAN-06025: no backup of log thread 1 seq 41537 lowscn 101774528933 found to restore
    RMAN-06025: no backup of log thread 1 seq 41536 lowscn 101774024733 found to restoreThis 415** logs are really old, probably 2-3 years, from some old datafile we dropped before i think (before my time)
    I have tried to manually restore the logsequences i need, and it work fine, so netbackup and commands are fine, this one work:
    run
    ALLOCATE CHANNEL ch0 TYPE 'SBT_TAPE' PARMS 'ENV=(NB_ORA_SERV=xxxxx, NB_ORA_CLIENT=xxx, NB_ORA_POLICY=xxx)';
    ALLOCATE CHANNEL ch1 TYPE 'SBT_TAPE' PARMS 'ENV=(NB_ORA_SERV=xxxxx, NB_ORA_CLIENT=xxx, NB_ORA_POLICY=xxx)';
    set archivelog destination to '/flasharea2/flash_recovery_area/xxxx/';
    restore archivelog from logseq 41871 until logseq 41875;
    RELEASE CHANNEL ch0;
    RELEASE CHANNEL ch1;
    }So how can i know why he wants some old logsequences, and how can i identifiy to what this belong, and what can i do to stop this from happening?
    Thanks for any help!

    Chinar wrote:
    This 415** logs are really old, probably 2-3 years, from some old datafile we dropped before i think (before my time)
    How you dropped datafile? did you use offline drop? If yes thus reason is this.Hello, the one who dropped it does not work here anymore, but it seems like it was offline drop!
    If find this in controlfile (backuped to trace):
    -- Take files offline to match current control file.
    ALTER DATABASE DATAFILE '/data2/oracle/xxx/data-file-name' OFFLINE DROP;How can i fix this? :(

  • Add date to backup controlfile to trace command

    A little background:
    I'm writting a rman script and want to include a controlfile to trace and a pfile.
    The commands I'm using are:
    alter database backup controlfile to trace as 'd:\oracle\backup\controlfile.bak';
    create pfile='d:\oracle\backup\pfile.bak' from spfile;
    However, I want the file to be controlfile.bak.theDate, ie controlfile.bak.20090323, as I want to keep so many days worth and not overwrite the file.
    How can I add the date in this way?
    Thanks in advance.

    I'm writting a rman script and want to include a controlfile to trace and a pfile.The commands I'm using are:
    alter database backup controlfile to trace as 'd:\oracle\backup\controlfile.bak';
    create pfile='d:\oracle\backup\pfile.bak' from spfile;
    However, I want the file to be controlfile.bak.theDate, ie controlfile.bak.20090323, as I want to keep so many days worth and not overwrite the file.
    How can I add the date in this way?>
    But why do you want to do so when RMAN itself can take the controlfile backup and of the pfile automatically.Why do want to get the trace of controlfile.In you script simply add
    backup current controlfile format '/location/ctl_%d_%T';
    backup spfile format 'location/sp_%d_%T';
    %d ---> The name of the database.
    %T ---> The year, month, and day (YYYYMMDD)
    Every time you take a backup, the controlfile and spfile with unique name will be present along with the database backup.
    Anand

  • Recovering using backup controlfile

    Hello,
    When we do database recovery (not until some time in the past, but until "now") using binary backup of controlfile why do we need to open it with resetlogs?
    The scenario is: we have all the datafiles, archived redo and online redo logs, but all of the controlfile are lost. We have backup of controfile and we need to restore and recover it. I've read we need to open the db with resetlogs then. Why?
    I heard we don't need to do this if there was backup of the controlfile to text trace. I also don't understand why.
    Thanks in advance for help
    Aliq

    Navneet wrote:
    Hi,
    In case when controlfile i lost and restored from the bcakup, Datafiles are uptodate with the redo log files but controlfiles are behind,
    WHen we say "Recover databse using backup controlfile" this means we are applying the archives to the datafiles as well as controlfiles. But datafiles are uptodate aor they will remain untopuched and controlfile wil be updated to the recnt redo.
    Now the quetion is why we need reetlogs even when we are doing complete recovery?
    So the reasin for this is controlfile needs to be updated with some datastructure updatations and those updations are performed during resetlog option. These data structure updatation may contain some changes in the properties of datafiles,blocks, or somethng internal processes of ORacle.
    So we need to use resetlogs.
    Regards,
    NavneetNavneet,
    Control flies are going to get updated from the datafile info which are going to get update from the archived logs.We never apply archive logs to the control file , they are meant for datafiles only.
    Now the quetion is why we need reetlogs even when we are doing complete recovery?
    So the reasin for this is controlfile needs to be updated with some datastructure updatations and those updations are performed during resetlog option. These data structure updatation may contain some changes in the properties of datafiles,blocks, or somethng internal processes of ORacle.
    So we need to use resetlogs.
    Hmm well I am afraid that its plainly wrong. Resetlog is required because we are stopping the recovery in between. This means whatever we have done and is stored in the archived logs , we can't apply it all. Now we have thrown datafiles and control file back in the time but redo logs never come back. So we are starting from fresh with resetlogs which will make the seuence numbers 0,1 and lets open the db. After the db is open, the sequence numbers are matched with the stored ones in the controlfile and datafile.
    Aman....

  • Error, Backup Controlfile

    Hello,
    When I tried to make a trace of controlfile, it works very well
    sql> alter database backup controlfile to trace
    But, when I tried to make a copy of the controlfile, it fails
    sql> alter database backup controlfile to 'E:\oracle\db\adm\bdump\control_bkp.ctl'
    ERROR at line 1:
    ORA-01587: error during controlfile backup file copy
    ORA-27091: skgfqio: unable to queue I/O
    ORA-27070: skgfdisp: async read/write failed
    OSD-04006: ReadFile() failure, unable to read from file
    O/S-Error: (OS 1117) The request could not be performed because of an I/O
    device error.
    The Oracle user has enough privileges to write and read files at dumps directories. And there is a lot of space on disk.
    The version of oracle software is:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    PL/SQL Release 9.2.0.8.0 - Production
    CORE     9.2.0.8.0     Production
    TNS for 32-bit Windows: Version 9.2.0.8.0 - Production
    NLSRTL Version 9.2.0.8.0 - Production
    Operating system is Windows Server 2003
    Any ideas about the error?

    the output of E:\ORACLE\DB\ADMIN\UDUMP is
    a lot of files *.trc. Here I can see the trace for the backup controlfile.
    the output of E:\ORACLE\DB\ADMIN\UDUMP is
    is empty. I saw in command window(cmd) that oracle create the filecontrol while execute the alter database backup controlfile to 'path\control_bck.ctl'. But when the command fails, Oracle automatic delete the file.

  • BACKUP CONTROLFILES ?

    Hi, I am new to oracle.
    I want to know how to use backing up control files.
    And want to usage of ALTER DATABASE BACKUP CONTROLFILE TO TRACE;
    and ALTER DATABASE BACKUP CONTROLFILE TO '/oracle/backup/control.bkp'.
    Can I use these bkp file to recover database incase of loss of control files.
    Please help.Thanks.
    Regards,
    Manoj.

    Whenever the database is altered, the control file should be backed up.
    alter database backup controlfile to 'filename' | trace
    This command has two versions.
    One backs up the control file in a binary format while the other backs it up in a human readable form.
    It is required if the database is running in archive log mode and a structural change was made to the database.
    Backup in a binary format:
    alter database backup controlfile to '/path';
    alter database backup controlfile to '/path' reuse;
    Backup in a human readable format:
    alter database backup controlfile to trace;
    alter database backup controlfile to trace as '/path';
    alter database backup controlfile to trace as '/path' reuse;
    Regards
    Kumar
    iDataMax
    Edited by: SYSMAN2 on Sep 27, 2008 11:59 AM

  • How to extract controlfile from backup set?

    Hi
    If I use this "INCLUDE CURRENT CONTROLFILE" in backup command direct to tape and no catalog, How to extract controlfile from backup set from tape?
    Thanks,
    Taohiko
    Edited by: taohiko on Sep 17, 2009 7:54 AM

    yes
    list backup of controlfile
    will show you where controlfile backup piece reside with backup piece name
    after then
    restore controlfile from 'backup_piece_naem_with_its_full_path_from_above_command_result';Khurram

Maybe you are looking for

  • Adding Image to J Panel

    Hi Everyone, I am in the process of learning swing. I am playing around with this code(Not mine) and would like to know How can I go about and add a background image to this clock application. I have been trying everything but I cant get it working.

  • Valuation - Company Code Currency

    When I am trying to define company coded currency for the leding ledger it says valuation  1 (group valuation) is  not allowed for the company code. What is Valuation...why should different valuations mentioned for different curriencies.

  • Hide 1st page in form, is it possible?

    Hello,   I have a 4 page form that I have pages 2-4 hidden until a selection is made from page 1. My question is, is there a way to hide the 1st page after the selection is made which shows other pages in the form? When I try to hide the 1st page, it

  • Transfer office to Macbook Air

    Hi, I would like to know how can I simply (if possible) transfer the Office file (word, excel, power point, ...) from my Powerbook G4 to my new Macbook Air (limited connectivity). I just read on Google that the Migration assistant does not accept to

  • Sessions persist even after logout?

    Another problem I am having is that sessions seems to persist even after the portal user has logged out. When I log back in, some settings (which I configured in the previous session) are still set - but I want it reset to the default state. It holds