(一)數(shù)據(jù)庫備份
備份前需要關(guān)閉全部應(yīng)用,并進行數(shù)據(jù)庫checkpoint和crchive log current操作,數(shù)據(jù)庫無外部程序鏈接的前提下進行全備,確保數(shù)據(jù)庫一致性。
備份恢復(fù)詳細操作步驟如下:
lsnrctl stop
export ORACLE_SID=oracle11
sqlplus /nolog
conn / as sysdba
alter system checkpoint;
alter system archive log current
exit
rman target /
backup database format '/home/oracle/rman/%U'
exit
lsnrctl start