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

Similar Messages

  • How to include another partition in tape backup

    Hi
    I use a shell script written by my sysadmin to take backup of our oracle system on tape. now i moved some datafiles on another partition and hence want to include that partition also in tape backup.
    for fs in $(cat /tmp/dailybkupfs | awk '{print $1}')
    do
    # For / replace the / with root for log filename
    if [[ "$fs"  = "/" ]]
    then
    fn="root"
    else
    # replace any / in fs name with _ for use in log filename
    fn=$(echo $fs | sed 's:/::g')
    fi
    if umount ${fs}
    then
    echo "${fs} unmounted successfully" >>/tmp/logs/summary
    else
    echo "${fs} unmount failed" >>/tmp/logs/summary
    fi
    if ufsdump 0uf prddb:/dev/rmt/0n ${fs} >${log}.${fn}.${dt} 2>&1
    then
    echo "Full Backup of ${fs} completed successfully" >> /tmp/logs/summary
    else
    echo "Full Backup of ${fs} failed" >> /tmp/logs/summary
    fi
    if mount ${fs}
    then
    echo "${fs} mounted successfully" >>/tmp/logs/summary
    else
    echo "${fs} mount failed" >>/tmp/logs/summary
    fi
    done
    echo "Full Backup of all DB file systems Complete" >> /tmp/logs/summary
    Also the dailybkupfs file has the following contents->
    /u01
    /u02
    /u03
    /u04
    /u05
    /u06
    Now to include /u07 partition for backup, I just need to include the /u07 partition in file dailybkupfs.right?
    Thanks
    Anmol

    I am concerned that the config file resides in /tmp.
    That filesystem normally gets cleared if the box reboots.
    So as far as I can tell, if your box is rebooted, the backups stop working..

  • My iPhon 5 s iOS 8.1.2 since 2days when i am receiving videos through watsapp it did not play and a letter appear said videos are not included in the iCloud backup how to make it included ?

    my iPhon 5 s iOS 8.1.2 since 2days when i am receiving videos through watsapp it did not play and a letter appear said videos are not included in the iCloud backup how to make it included ?

    You can recover Your music but not with original names.
    1. Go to Your iPod hard disk
    2. You must to see hidden files (if you don't see them go to in system explorer to Tools > Folder Options > View > and mark Show Hidden Files)
    3. Go to folder named iPod_Control
    4. Copy folder Music - this is Your music but not with originally names
    I'm must to say sorry - my English is not very good - I'm still learning
    I hope it helps

  • How to automate layer stack creation including layer masks based on filename?

    Hi
    Can someone help me to create a script that would automate the creation of layers including a layermask, based on filenames.
    E.g.
    Unwrap_001_diffuse.jpg
    Unwrap_001_mask.jpg
    Unwrap_002_diffuse.jpg
    Unwrap_002_mask.jpg
    The image with the suffix "_diffuse" would be the layer and the image with the suffix "_mask" would be the layermask.
    In the above example the script would create 1 psd with 2 layers.
    If there is no file with the ending "_mask", the script would only create a single layer with no layermask.
    Any help would be highly appreciated.
    Thank you
    Boris
    I

    For starters the Folder-selection dialog could be used if the images are all in one Folder.
    var theFolder = Folder.selectDialog ("select folder");
    And then the method getFiles could be used to get the files.
    var theFiles1 = theFolder.getFiles("*_diffuse.jpg");
    Loading the file as Layers can be done with the ScriptingListener code for File > Place for example and finding the corresponding mask files seems fairly easy.
    Are they grayscale or RGB?
    But why jpg anyway?
    Are those renderings?
    If so why not tiffs or some other non destructively compressed file format?

  • 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';

  • DBID for RMAN backup with format '%u'

    Hi all:
    (I've post this at c.d.o.s. too, but no answers...)
    This is Oracle 10.2.0.3 on Enterprise Linux 5.
    I've been given two backups from an Oracle Database: one 'cold' and
    one 'hot'. They both come from a lost server.
    The fact is that they have been made with the format '%u' (eight
    alphanumerics) and I must recover the database on a new server. I
    cannot get the DBID from the backup files name because of this format
    '%u'.
    The backups have been made with CONTROLFILE AUTOBACKUP ON (or so I'm told).
    How can I get the DBID to recover the DB on a new server?
    Thanks in advance.
    Cheers.
    Carlos.

    "I don't know where you read this, it's wrong. "Oracle® Database Backup and Recovery Advanced User's Guide
    10g Release 2 (10.2)
    2 RMAN Backups Concepts
    Control File and Server Parameter File Autobackups
    How RMAN Performs Control File Autobackups
    "The RMAN behavior when the BACKUP command includes datafile 1 depends on the CONFIGURE CONTROLFILE AUTOBACKUP setting. If control file autobackups are ON and the backup includes datafile 1, RMAN writes the control file and SPFILE to a separate autobackup backup set. If control file autobackups are OFF and the backup includes datafile 1, then RMAN includes the current control file and SPFILE in the same backup set as the datafiles."
    Cheers.
    Carlos.

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

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

  • How can i do a RMAN backup of my database from the network ?

    i'm using oracle 8i.1.7.3 with win server 2003
    i want to know how can i do a RMAN backup of my database (sever machine A) from the network.
    i'd like to save the backup in another machine (the same LAN, the same OS ).
    to do that i've mapped a logical device in my comptur (z):
    when i run rman command i got this error:
    channel ORA_DISK_1: starting piece 1 at .......
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command ON ORA_DISK_1 channel at .......
    00
    ORA-19504: failed TO CREATE file "\\remote\save\"
    ORA-27040: skgfrcre: create error, unable to create file
    OSD-04002: unable to open file
    O/S-Error: (OS 123) The filename, directory name, or volume label syntax is inco
    rrect.

    Hi,
    ORA-19504: failed TO CREATE file "\\remote\save\"make sure you have created this directory and change it's ownership (chown command)to oracle.
    also make sure that oracle user has permission to write to this direcotry (chmod command)
    hope this helps
    cheers, walrus

  • How to delete songs from itunes backup file

    how to delete songs from itunes backup file

    There is nothing to delete, as no iTunes content is included in any iPhone backup.

  • How do I create a dvd backup of library in the very latest iTunes,with windows xp?

    How do I create a dvd backup of library with itunes version 11.1.4.62? Using windows xp.

    Hi meatmailbox,
    Welcome to the Support Communities!
    The best way to backup your iTunes library is to an external hard drive.  The article below will explain how to do this.   If you want the files on a CD or DVD, you would need to create playlists.  I'll include that information as well.
    iTunes: Back up your iTunes library by copying to an external hard drive
    http://support.apple.com/kb/HT1751
    iTunes 11 for Windows: Create your own CDs and DVDs
    http://support.apple.com/kb/PH12348
    Cheers,
    - Judy

  • How can I use the iCloud backup files?

    Recently I lost my passcode and I had to reset my iPhone. Some of my data is on iCloud but I don't know how to use my camera roll again in my Photos. All I want is to know how can I store my pictures and videos from iCloud to my Photos.

    Your camera roll is included in your device backup by default, unless you excluded it in settings.  However, you can't view the photos and videos (or anything else) in the backup; you can only restore it to your device.  Later this fall, iCloud Photo Library will be introduced along with iOS 8.  At that time, you can start storing and accessing your photos and videos in iCloud (see https://www.apple.com/icloud/preview/).
    If you want to store your camera roll, import it to your computer using your usb cable as explained here: iOS: Import personal photos and videos from iOS devices to your computer.

  • How to include ratings in contact sheets in Bridge CS4??

    I'm trying to find out how to include my ratings and labels in a contact sheet, to share that with someone who is not going to use Bridge but ideally just a PDF. Is that at all possible? Thanks!

    Is that at all possible?
    To my knowledge not in the AOM settings, the options inhere are still a bit limited. But you can use the sort order for rating and in combination with batch rename you could be a bit creative by adding a mark like 1 star or 2 stars to the filename for the selected files. Or use same rated files per page.

  • How to include help file in application

    Hello,
    i developed an application using java swing. i need to include help file in my application. How to include it?
    Thanks,
    Sri

    Hi Sri,
    Use Java Help....
    There is some thing called as Help set. In a button action listener u have to call that.
    HelpSet helpSet = getHelpSet("path");
    HelpBroker helpBroker = helpSet.createHelpBroker();
    CSH.setHelpIDString (jButton,"filename");
    jButton.addActionListener(new CSH.DisplayHelpFromSource(helpBroker));
    Regards,
    Kumar

  • RMAN Active Cloning: how to include SPFILE on ASM

    O.S Version     HP-UX B.11.31 U ia64
    Oracle DB Version     11.2.0.3.0
         Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    Storage : ASM Diskgroups
    On RMAN active cloning of databases, how to include the SPFILE to be cloned on the ASM Storage?

    Hello;
    Check out the example here :
    http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmdupad.htm
    Under "Example 25-4 Duplicating from a File System to ASM (Active)"
    or
    Example 25-5 Duplicating from ASM to ASM (Active)
    Best Regards
    mseberg
    Edited by: mseberg on May 15, 2013 10:34 AM

Maybe you are looking for

  • Credit Check on Open Items number of day

    Hi We have setup automatic credit control and all seems to work fine,  we now want to expandon this to include open items. So we have created a static block on open items. The next step was to only include open itesm that have been open for longer th

  • Need Help Recovering Hard Drive Space on Disk Utility

    I recently wanted to resize my Boot Camp hard drive partition as I did not need it to be 194 gb. In the process I screwed something up and now that space that was once my Boot Camp Partition is now "free space." My Mac Partition still says that I hav

  • Lumia 620 screen crack

    hello!i have lumia 620 for 2 weeks.today i changed the sim and i have to take out the back cover.when i put the cover back,the screen has a crack from one side to other and it smells a bit burnt.i have also a screen protector.it didnt fall down ever.

  • Missing Audio Output in Macbook

    i have a circa 2006/7 black macbook, running OSX 10.5.8, 2.16 GHz intel core 2 Duo, 2GB 667 MHz DDR SDRAM.  we've had it for about four years now, so if this is it for this computer, i guess we'll have to deal with it.  earlier this evening, i was at

  • Delete personal image from group mail

    I sent a group email and was very upset to find that it went out with a picture of an 8-ball up in the corner. I have no idea where this came from, it was completely inappropriate, and I can't find any way to make sure this doesn't happen again. It i