Database Backup and Recovery (MOSC)

MOSC Banner

Automate RMAN logging

edited Nov 5, 2009 9:23PM in Database Backup and Recovery (MOSC) 2 commentsAnswered ✓
 Good time chaps, We are using Oracle 10.2.0.4/RH Linux 4ES

I am trying to add logging to all RMAN operations.

Our company has standard to call $RMAN instead of defining all parameters every time, it is very easy way and everybody loves it.

The default oracle variant does

export RMAN="$ORACLE_HOME/bin/rman target / nocatalog  log '/home/oracle/logs/backup/r$(date +%Y%m%d%k%M%S | tr ' ' '_').log' append"

not work for us because it hide the output from the screen.

We have fine the variant

$ORACLE_HOME/bin/rman target / nocatalog | tee -a '/home/oracle/logs/backup/r$(date +%Y%m%d%k%M%S | tr ' ' '_').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