DBAsupport.com Forums - Powered by vBulletin
Results 1 to 6 of 6

Thread: including readable timestamp in RMAN backup pieces

Threaded View

  1. #4
    Join Date
    Jan 2001
    Posts
    2,828
    Hi

    You can try using

    RMAN> run{
    host 'echo Backup stored in logfile (logrman.txt) taken on ->d:
    \oracle\ora81\rmanbkp\rmandate.log';
    host 'time /T>>d:\oracle\ora81\rmanbkp\rmandate.log';
    host 'date /T>>d:\oracle\ora81\rmanbkp\rmandate.log';
    }

    This will produce a file that has -

    Backup stored in logfile (logrman.txt) taken on -
    16:57
    05-Sep-2002





    TIMESTAMP FOR UNIX
    --------------------
    To get time / date displayed during an RMAN operation the OS command (date)
    should be used.

    To display a timestamp in the RMAN log, run something similar to the following -

    RMAN >run{
    allocate channel a1 type disk
    .
    .
    .
    HOST 'date';
    release channel a1;
    }
    Output looks like -

    RMAN-03022: compiling command: host
    Wed Jul 24 16:31:06 BST 2002
    RMAN-06134: host command complete


    Alternatively this also works

    BACKUP DATAFILE 7 FORMAT 'c:\RMANBKUP\file7_%T_%s_%p';

    -- Notice that we use %T for the date, %s for the backup set number,
    -- and %p for the piece number.

    regards
    Hrishy
    Last edited by hrishy; 05-30-2003 at 01:51 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width