Tuesday, 18 October 2022

Generate RMAN backup log file with date and time by using backup scripting


If you have setup the script to perform auto backup with media manager like Netbackup then you must need to setup the RMAN backup log file at the targeted oracle server to backup status.  To create a log file you need put RMAN_LOG_FILE parameter in the script. however to create log file name with date and time to avoid over writing you need to add below line before RMAN_LOG_FILE parameter. Here is  example.


NOW=$(date +"%d-%m-%Y-%T")


RMAN_LOG_FILE="/home/oracle/rmanscript/log/rman_nbu_daily-$NOW.log"




No comments:

Post a Comment

The Best AI Apps for Android That Make Your Smartphone Smarter

The Best AI Apps for Android That Make Your Smartphone Smarter   Introduction: In today's digital age, artificial intelligence (AI) ...