Difference between revisions of "Oracle Backup & Restore"

From Tom's notes
Jump to navigation Jump to search
(Created page with "Script to create a backup of all archivelogs and remove them <source lang="sh"> export ORACLE_SID=MYSID export ORACLE_HOME=/oracle/product/11.2/dbhome_1 export PATH=$PATH:$ORA...")
 
(No difference)

Latest revision as of 15:47, 6 April 2016

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