RMAN TAG with date stamp

We have daily RMAN backup with TAG FULL_BACKUP. So every day we have backupsets with the same tag. I would like to know if it possible to create some kind dynamic tag with every backup. For example: FULL_BACKUP_11012007
FULL_BACKUP_11022007 ...
We use UNIX AIX and Oracle 10g

Why would anyone use bash on AIX or any other Unix?Agreed for Unix (I use ksh too), but on Linux I use bash, and it works :
$ echo $SHELL
/bin/bash
$ cat back.sh
TAG=FULL_BACKUP_`date +%Y%m%d`
rman target / << EOF
run {
backup database tag $TAG;
EOF
$ ./back.sh
Recovery Manager: Release 10.2.0.3.0 - Production on Thu Nov 1 17:17:55 2007
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
connected to target database: DB102 (DBID=XXXXXXXXX)
RMAN> 2> 3>
Starting backup at 01-NOV-07
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=211 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=/home/oracle/base/oradata/db102/system01.dbf
input datafile fno=00003 name=/home/oracle/base/oradata/db102/sysaux01.dbf
input datafile fno=00004 name=/home/oracle/base/oradata/db102/users01.dbf
input datafile fno=00006 name=/home/oracle/base/oradata/db102/undotbs02.dbf
channel ORA_DISK_1: starting piece 1 at 01-NOV-07
channel ORA_DISK_1: finished piece 1 at 01-NOV-07
piece handle=/home/oracle/base/flash_recovery_area/DB102/backupset/2007_11_01/o1_mf_nnndf_FULL_BACKUP_20071101_3lmz1qfk_.bkp tag=FULL_BACKUP_20071101 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:01:46
Finished backup at 01-NOV-07
Starting Control File Autobackup at 01-NOV-07
piece handle=/home/oracle/base/flash_recovery_area/DB102/autobackup/2007_11_01/o1_mf_n_637521584_3lmz5254_.bkp comment=NONE
Finished Control File Autobackup at 01-NOV-07
RMAN>
Recovery Manager complete.
$ rman target /
Recovery Manager: Release 10.2.0.3.0 - Production on Thu Nov 1 17:19:57 2007
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
connected to target database: DB102 (DBID=XXXXXXXXX)
RMAN> list backup of database;
using target database control file instead of recovery catalog
List of Backup Sets
===================
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
15      Full    834.42M    DISK        00:01:38     01-NOV-07     
        BP Key: 15   Status: AVAILABLE  Compressed: NO  Tag: FULL_BACKUP_20071101
        Piece Name: /home/oracle/base/flash_recovery_area/DB102/backupset/2007_11_01/o1_mf_nnndf_FULL_BACKUP_20071101_3lmz1qfk_.bkp
  List of Datafiles in backup set 15
  File LV Type Ckp SCN    Ckp Time  Name
  1       Full 2485667575733 01-NOV-07 /home/oracle/base/oradata/db102/system01.dbf
  3       Full 2485667575733 01-NOV-07 /home/oracle/base/oradata/db102/sysaux01.dbf
  4       Full 2485667575733 01-NOV-07 /home/oracle/base/oradata/db102/users01.dbf
  6       Full 2485667575733 01-NOV-07 /home/oracle/base/oradata/db102/undotbs02.dbf
RMAN>

Similar Messages

  • EEnvelope with Date Stamp

    I am using the eEnvelope with Date Stamp to send
    secure email attachments.  It works great, however, the timestamp that appears on the
    envelope has no relationship to the time at which the enve
    lope was created.  Is this just the way it works or is there a way to make the time appear as the actual time of creation of the envelope?

    Hello rgille,
    Thank you for your post.
    You should know that these forums are specific to the
    Acrobat.com website and its set of hosted services, and do
    not cover the Acrobat family of desktop products.
    Any questions related to the Acrobat family of desktop
    products would be best suited in the Acrobat Forums:
    http://www.adobeforums.com/cgi-bin/webx/.3bbeda8b/
    Thanks!
    Pete

  • Query to extract HTML tag with data

    Hi All,
    I have a string.
    '<HTML><HEAD>THIS IS HEAD.</HEAD><BODY>THIS IS BODY.<P>THIS IS P1.</P>NIMISH<P>THIS IS P2.</P></BODY></HTML>'
    I want to extract a html tag including its opening & closing tab with data as
    if i say P1
    then the output should be
    '<P>THIS IS P1.</P>'
    for P2
    then the output should be
    <P>THIS IS P2.</P>
    please help me in writing this query with regular expression
    i have tried it as following but it is not giving desired result:
    WITH T AS
    SELECT
        '<HTML><HEAD>THIS IS HEAD.</HEAD><BODY>THIS IS BODY.<P>THIS IS P1.</P>NIMISH<P>THIS IS P2.</P></BODY></HTML>' STR
    FROM   
        DUAL
    SELECT REGEXP_SUBSTR(STR, '<P>.+P2.+</P>') FROM T
    Thanks & Regards
    Nimish GargEdited by: Nimish Garg on May 7, 2012 5:49 PM

    Nimish Garg wrote:
    My requirement is to extract a <tag>data</tag> from a HTML/XML string
    where data contains any specified value.HTML is not XML.
    And that is a critical distinction to make. HTML parsing is horribly complex. XML is quite easy. For HTML you have to code your own parser in PL/SQL. XML can be parsed using the XMLTYPE class/data type in PL/SQL.
    So if you need to find a single specific tag in HTML - I would not try to treat it as XML. I may not even try to use regular expressions.
    I would do a basic substring search for the start of the tag. Read the data following the tag. Ensure that there are no nested or embedded tags in the data. Until the end tag is read. Because HTML is that much abused - and because that is an accepted norm as parsers used by browsers deals with that abuse without complaining.
    Proper HTML is mostly a myth in my experience of "screen scraping" web servers for data extraction as they do not have web services supplying the data.

  • Certificate of Completion with Date Stamp

    Greetings,
    Is it possible to make a form that will automatcally add a date stamp to it.? Here is the scenario: a user completes a series of questions through an eLearning module. At the end of it, they click on a button/link that takes them to a page that has a PDF in it. The PDF has a fillable form so they enter their name into it and at some point, maybe when they get to the pdp, it is time/date stamped for that user. They print the PDF out and give it to their supervisor.
    Make sense?
    Maybe it's not possible to get the stamp to be added as soon as they get to the PDF, maybe they have to push a button on the PDF to have it added? I don't know what is possible or if it is possible. We would just like to have some way to get a date stamp onto the PDF. The PDF doesn't have to be downloaded, it only needs to be printed as hardcopy, although having an option to have the PDF emailed to the user might be an option as long as it can only be printed.
    Comments, suggestions?

    Yes, it's possible, with a bit of JavaScript. You can have the date field automatically populated when the form is first opened or after they enter their name. For the latter, you could add the following script to the Validate event of the name field:
    // Get a reference to the date field
    var f = getField("date");
    if (event.value) {
        f.value = util.printd("mm/dd/yyyy", new Date());
    } else {
        f.value = "";
    Replace "date" with the actual name of your date field. You can also use a different date format, but this should get you started. If you want it to populate when the document is opened, it's a bit more complicated, but post again if this is what you want.

  • Shaky handheld footage with Date Stamp: Warp Stabilizer keeps failing.

    I suspect it's because the Date Stamp doesn't move while the camera shakes. WS has failed, despite trying a mix of options. Any advice?
    Is WS likely to even work when footage is shaky but the Date Stamp isn't?

    Thanks to all for the suggestions.
    Steve, You're right...I pretty much knew the answer, but was hoping there was some "magic method" I wasn't aware of. It seldom hurts to ask. The footage is a home-shot heritage interview from the mid-90s, and was brought to me as 1 of 3 chapters on a DVD.. I believe the interviewee may now be deceased, and while the date of the interview could well have been limited to the DVD label and insert, this was obviously a home-spun project. I'm simply trying to remove some of the flaws, e.g. camera shake and weak audio, as the customer is distributing it to a number of family members.
    Songline, your description is what I expected to happen, and, in one of my attempts, did exactly as you describe.
    Richard, What I ended up doing was to stabilize the footage (No Motion, Position, Stabilize-Crop-Auto Scale) then in "Motion", Position and Scale up enough to keep the Date Stamp out of frame. (I think that works best, as the original shot was head-to-knees and too wide for an engaging heritage interview). I did a side-by-side comparison with untouched footage for the customer to see and choose which he wants.
    It's not perfect, but much more watchable than the original.
    Thanks again.

  • Print photos with date stamp on them with a HP 6600

    Does anyone know if the HP6600 printer is capable of printing photos with the date stamp on them?

    Hello @Joseph_TX ,
    Welcome to the HP forums.
    I understand that you want to know if a way to configure the HP ePrint.
    I would like to help.
    Unfortunately there is no way to reconfigure the ePrint.
    When you send an email to the printers ePrint address, it will print the body of the email and any attachments.
    It will not print the subject line or who the email is from.
    Also the ePrint feature will not resize pictures sent.
    What you send is what you get.
    You can get more control over ePrint with the ePrint app, but I don't believe that will suit your needs.
    Please call our Cloud Services at 855-785-2777.
    If you live outside the US/Canada Region, please click the link below to get the support number for your region. http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
    Hours:
    Mon-Fri. 8am - 11pm, Sat. 9am-8pm - EST
    Mon-Fri. 7am - 10pm, Sat. 8am-7pm - CST
    Mon-Fri. 6am - 9pm, Sat. 7am-6pm - MST
    Mon-Fri. 5am - 8pm, Sat. 6am-5pm - PST
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

  • Rotate File with Date Stamp and Zip

    Hey Guys
    New to powershell.. Just want to write a simple script to do the following. The file is called D:\test.log
    1) Rotate it every night at 12pm (I guess schedule via task manager)
    2) Rename it to YYYY-MM-DD-filename.log at that time. Create a new file called test.log so current logging can continue (or just keeps running on that file after rename of file)
    3) Zip it. and leave it there..
    Can anyone help on how to do so? And also if I want to expand this script to do multiple files (but same rotated file format), that would be helpful (I guess some for each statement ? )
    Will run on Windows 2008 R2 Servers..
    Appreciate your help!!!

    Here is a good place to start:http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
    Look at how to manage dates and how to manage files.
    When you have a start and get stuck post back with a specific question.
    You can learn to write a script in PowerShell in less than a weekend if you start with the introductory videos.
    ¯\_(ツ)_/¯

  • EEnvelope date stamp

    Hello - In Adobe Acrobat 9 Pro, I'm creating a security
    envelope using Acrobat's included "eEnvelope with Date Stamp"
    template (template2.pdf). The resulting date stamp is exactly 8
    hours ahead of the actual time on my computer's clock (i.e. I
    created and emailed the security envelope at 8:30 PM on Jan. 25;
    date stamp shows 4:30 AM on Jan. 26). Anyone know how to fix? Thank
    you.

    Hello rgille,
    Thank you for your post.
    You should know that these forums are specific to the
    Acrobat.com website and its set of hosted services, and do
    not cover the Acrobat family of desktop products.
    Any questions related to the Acrobat family of desktop
    products would be best suited in the Acrobat Forums:
    http://www.adobeforums.com/cgi-bin/webx/.3bbeda8b/
    Thanks!
    Pete

  • How to compare result from sql query with data writen in html input tag?

    how to compare result
    from sql query with data
    writen in html input tag?
    I need to compare
    user and password in html form
    with all user and password in database
    how to do this?
    or put the resulr from sql query
    in array
    please help me?

    Hi dejani
    first get the user name and password enter by the user
    using
    String sUsername=request.getParameter("name of the textfield");
    String sPassword=request.getParameter("name of the textfield");
    after executeQuery() statement
    int exist=0;
    while(rs.next())
    String sUserId= rs.getString("username");
    String sPass_wd= rs.getString("password");
    if(sUserId.equals(sUsername) && sPass_wd.equals(sPassword))
    exist=1;
    if(exist==1)
    out.println("user exist");
    else
    out.println("not exist");

  • TDMS viewer not showing data with time stamp

    Need help with time stamping data in a TDMS file generated by DAQ Assistant.
    When I use the TDMS Viewer, with the x-scale set to absolute time, the date starts at 1903. If I use Excel to look at the file the start time is correct (i.e. 2013).
    Solved!
    Go to Solution.

    Bo_Xie, I have simplifed my VI and now able to display the correct time stamp. Thank for your time!

  • Inserting Current Date with time stamp in oracle database

    Hi Experts,
                     I want to insert the current Date and time stamp in a field in the Oracle Database Table.
    I am able to insert date but i am not able to insert the date with time stamp. Any Suggestions??
    Thanks
    Naveen

    Naveen,
    Do you want to get current date (from sysdate) with a specific format or transform a value containing a date/time value to insert it in ORACLE ?
    Usually, you insert current datetimestamp in a date field using this :
    TO_DATE(sysdate,'dd/mm/yyyy hh:mi:ss')
    you may have to tweak the format pattern ('dd/mm....') according to your needs
    if you want to transform a date, use something like this:
    TO_DATE(your_date,your_format)
    but make sure your format is compliant with your date, ie
    TO_DATE('31/12/2008','MM/DD/YYYY') could raise error (litteral does not match) cuz ORACLE can't recognize 31 as a month pattern
    Chris

  • Correcting the date stamp with files converted with mpgstreamclip.

    I have converted some files using streamclip but it changes the date of the file to the date of the conversion. When I try importing them into imovie they are sorted incorrectly. The files were recorded in 07 but now have the date stamp of today. Can anyone help me solve this I am new to the mac and converting footage.

    It seems that I have solved my own problem while searching for answers.
    First I selected the clip with the incorrect date
    Next select File and select Adjust clip date and time.
    Hope this helps someone.

  • Can someone help with a previous post labeled "Writing to a data file with time stamp - Help! "

    Can someone possibly help with a previous post labeled "Writing to a data file with time stamp - Help! "
    Thanks

    whats the problem?
    Aquaphire
    ---USING LABVIEW 6.1---

  • Data tags with Web beans

    Hello,
    I have a problem : I submit a form which create a new record (made with data tags).
    After the commit, the RowsetBrowser isn't refreshed. So you can't see the new record!
    The release mode is Stateful on each page with data tags.
    On the RowsetBrowser page, I set
    setReleaseApplicationResources(false)
    Could you help me?
    thanks
    Christophe

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Juan Oropeza ([email protected]):
    Can you post your pages? <HR></BLOCKQUOTE>
    I finaly found my mistake. I didn't set the same ID to the WB and the data tags.
    thanks
    Christophe
    null

  • How do I print pictures from my ipad mini with a date stamp

    I need to date stamp some pictures in my ipad with a date stamp on them. Any free apps out there that will do this?

    You must first transfer pictures from your iPad mini to your personal computer, then connect your USB drive to computer, adn drag photos to your USB, but you need to copy photos from iPad to computer, this is the guide: How to copy songs from iPad to computer
    or you can also read this solution: http://support.apple.com/kb/HT4083?viewlocale=en_US&locale=en_US

Maybe you are looking for

  • How to get counter value from Historian

    Hi Experts, We have got a scenario to keep the number (counter) to see how many time a value of tag have been changed. For Example: If the values change from 1 to 0 and  0 to 1 for 25 times in a minute. We would like to get this number (25) from Hist

  • G41M-P28 video problem

    Hi! My video driver keep restarting in games. First I had an Ati Radeon HD 5450 512MB but read that G41 boards don't really compatible with Ati cards higher than 5xxx so switched back to my Radeon X1600 256MB but the restarting still don't stop. It i

  • Problems with russian characters

    I need to localize my application to russian language and i have problems with their special characters. I use Graphics.drawString method and unicode escape sequences and this works fine on phones like SE, Nokia and Siemens. But some phones are not a

  • What does this error2 mean and how do I fix it?

    What does this error mean and how do I fix it?  I am trying to reinstall CS4 on my Windows 8.1 machine.  Adobe Flash Player 10 ActiveX Error: Error 2. Here is the initial error: http://s29.postimg.org/wqy2ju8iv/Untitled.png Here is a screenshot when

  • Slow change dimension

    Hi al, How slow changing dimension will support SID? The following is the advantages with SLOW CHANGING DIMENSION. 1)language support 2) master data independent of infosource 3) uses numeric as indexes for faster access. plz explain the above points