Database Backup and Recovery (MOSC)

MOSC Banner

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.

  1. We care calling RMAN from within a LINUX script.
  2. 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'

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center