Oracle备份前一天的归档

Posted 钱若离花落

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle备份前一天的归档相关的知识,希望对你有一定的参考价值。

---备份归档
[oracle@db1 ~]$ cat /home/oracle/rmarch.sh
#! /bin/bash
source /home/oracle/.bash_profile
exec >> /home/oracle/delarch`date +%y%m%d%H`.log
$ORACLE_HOME/bin/rman target / <<EOF
crosscheck archivelog all;
delete noprompt expired archivelog all;
crosscheck copy;
run
{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
backup as compressed backupset archivelog until time ‘sysdate-1‘ format ‘/u01/0331backup/arch_%d_%T_%s_%p‘ delete input;
release channel c1;
release channel c2;
release channel c3;
}
delete noprompt force archivelog until time ‘sysdate-1‘;
exit;
EOF

以上是关于Oracle备份前一天的归档的主要内容,如果未能解决你的问题,请参考以下文章

oracle数据库如何备份与恢复

Oracle冷备份和热备份的处理

ORACLE数据库备份与恢复详解

oracle rac怎么查看归档备份是不是成功

oracle非归档模式下的冷备份和恢复

Oracle RMAN备份策略