Store RMAN output in a logfile

RMAN output in a logfile

Hello, friends in this article we are going to discuss how to Store RMAN output in a logfile.

What is the RMAN log file?

RMAN log file is a just text file that stores the complete output of RMAN commands. Generally, this file is used to check whether the backup has been done successfully or not. If there is any error occurs during a backup it will be captured in this log file.

Start storing RMAN outputs in a log file

Connect with RMAN and run the following commands.

$rman target /  log='/u01/rmab_bkp.log'

RMAN> show all;

The above query will output will not show on screen because the output goes in the log file, check the log file.

How to reuse the existing RMAN log for a new query?

If you want to store more outputs in the existing log file, then we can use the existing log file. To use the existing log file we need to use the append keyword with the rman same as in the below query.

$rman target /  log='/u01/rmab_bkp.log' append

RMAN> show all;
RMAN> backup current controlfile;

This time you will see the above query output also stored in the same log file.

How to spool RMAN log?

We can start spooling also on the RMAN prompt, check the below query.

$rman target/

RMAN>spool log to '/u01/rman_bkp2.log'

RMAN>show all;

RMAN>backup datafile 1;

RMAN>spool log off; 

I hope now you understand how to Store RMAN output in a logfile.

Read - How to check RMAN backup status and timings

Connect with me on:


2 thoughts on “Store RMAN output in a logfile

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top