Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to write output of RMAN commands to a log file

sweetritzJul 2 2014 — edited Sep 2 2014

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

This post has been answered by Hemant K Chitale on Jul 2 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 30 2014
Added on Jul 2 2014
7 comments
10,188 views