Automate RMAN logging
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
not work for us because it hide the output from the screen.
We have fine the variant
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'
0