ora_rman_old.sh

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=prod
export PATH=$ORACLE_HOME/bin:$PATH
rman target / << EOF
run {
allocate channel c0 type disk;
allocate channel c1 type disk;
allocate channel c2 type disk;
delete noprompt obsolete;
backup full database format '/u01/backup/full_db_%T_%s.bak';
sql'alter system archive log current';
backup archivelog all format '/u01/backup/arch_%T_%s.bak';
release channel c0;
release channel c1;
release channel c2;
}
exit
EOF

创建时间:2022-03-31 20:53
浏览量:0