rman command files. how can we spool to a file from within an RMAN command file.
Hello.
We are attempting to spool to a file from within our RMAN command file. The file is created but is empty. We notice when our script runs all the output is shown in stdout. The RMAN backup runs perfectly. But we have an empty log file.
- We care calling RMAN from within a LINUX script.
- The RMAN command from within the LINUX script is using an RMAN command file and is passed parameters from the LINUX script.
below is a snippet from out LINUX script: rman_script.sh
export curdate=$(date +%d%M%Y)
logfile='/test/bkup/bkup_'$curdate'.log'