1、rman增量备份级别
级别0和全库备份相同,级别1备份执行的是差异备份。
2、增量备份
使用rman实现增量备份的级别0备份
RMAN> backup incremental level 0 database;
使用rman实现增量备份的级别1备份
backup incremental level 1 database;
3、在影像副本上应用增量备份
oracle11g能够将增量备份应用到某个镜像副本上
run{ backup incremental level 1 for recover of copy with tag 'incr_copy_backup' database; recover copy of database with tag 'incr_copy_backup'; }
每天将增量备份添加到镜像副本上。
恢复时使用最近的镜像副本+少量的归档日志,恢复速度会很快。
4、快速增量备份
使用增量备份可以大大减少了全库备份的时间,同时也节约了存储空间,但是使用增量备份必须扫描整个数据文件。
为避免这种情况,oracle提供了快速增量备份的方案,原理是:将数据库中发生变化的数据块位置记录在一个更改跟踪文件中,这样在下次实现增量备份时就可以通过该文件来备份变化的数据,减少全库扫描的时间。
启动块更改跟踪后,会启动一个后台进程CTWR负责将变化的数据块的位置写入定义的块跟踪文件。
启动块跟踪特性:
SQL> alter database enable block change tracking using file '/u01/oracle/oradata/STD/chtrack.log'; Database altered.