Monday, August 31, 2015

backup oracle home and orainventory

tar cvf – .|gzip -c > /mars/oracle/MRSP/arch/oracle_home_`hostname`_`date +%Y%m%d`.tar.gz




cd /opt/oracle/oraInventory

tar cvf – .|gzip -c > /mars/oracle/MRSP/arch/oracle_oraInventory_`hostname`_`date +%Y%m%d`.tar.gz

1 comment:

  1. Well explained and very clear steps. I was trying to take backup of ORACLE_HOME and oraInventory and it helped me. Thanks for sharing.

    ReplyDelete