微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

rman 增量备份

lag DG查看当前数据文件头最小的scn号:
select min(to_char(CHECKPOINT_CHANGE#)) from v$datafile_header ff;

增备脚本:
rman target / << EOF
run
{
allocate channel c1 type disk;
allocate channel c2 type disk;
allocate channel c3 type disk;
allocate channel c4 type disk;
allocate channel c5 type disk;
allocate channel c6 type disk;
allocate channel c7 type disk;
allocate channel c8 type disk;
allocate channel c9 type disk;
allocate channel c10 type disk;
allocate channel c11 type disk;
allocate channel c12 type disk;
allocate channel c13 type disk;
allocate channel c14 type disk;
allocate channel c15 type disk;
allocate channel c16 type disk;
BACKUP as compressed backupset INCREMENTAL FROM SCN 15844047884184 DATABASE FORMAT '/paic/tmp/nasshare/gmpor/hdq404/incr/standby__%d_%s_%p_%t' tag 'FORSTANDBY' ;
backup current controlfile for standby format '/paic/tmp/nasshare/gmpor/hdq404/incr/stdctl.ctl'; 
release channel c1;
release channel c2;
release channel c3;
release channel c4;
release channel c5;
release channel c6;
release channel c7;
release channel c8;
release channel c9;
release channel c10;
release channel c11;
release channel c12;
release channel c13;
release channel c14;
release channel c15;
release channel c16;
}
EOF

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐