7 Replies Latest reply: Sep 2, 2014 11:11 AM by GTS (DBA) RSS

    How to write output of RMAN commands to a log file

    sweetritz

      Hi DBAs,

       

      I have to backup only archive logs backup that too manually by firing commands in RMAN session without running any script.

      The commands goes this way:

       

      run

      {

      allocate channel ch01 type disk  maxpiecesize 7000M;

      allocate channel ch02 type disk  maxpiecesize 7000M;

       

       

      BACKUP tag ArchLogAll FILESPERSET 20 FORMAT '/oracledbbackupset/archive_log_bkp_2014_06_18/d_%d_s_%s_p_%p_t_%t.bkp' ARCHIVELOG

      FROM SEQUENCE 4410 UNTIL SEQUENCE 4599 THREAD 1 DELETE ALL INPUT;

       

       

      RELEASE CHANNEL ch01;

      RELEASE CHANNEL ch02;

      }

       

      Now, I want the output of these commands to be written to a log file in the location /temp/arch.log parallely  when the above commands runs. Any way?

       

      Regards,

      Ritu