Oracle Backup & Restore

From Tom's notes
Jump to navigation Jump to search

Script to create a backup of all archivelogs and remove them

export ORACLE_SID=MYSID
export ORACLE_HOME=/oracle/product/11.2/dbhome_1
export PATH=$PATH:$ORACLE_HOME/bin
rman target / <<EOF
backup archivelog all delete input;
exit;
EOF