Flash Recovery Area 的备份

Flash Recovery Area 的备份

备份命令是Flash recovery Area,该命令是Oracle 10g以后才有的。10g引进了flash recovery area,同时在rman备份中支持对该区域的备份。

在9i中oracle引入flashback查询,依赖于undo表空间存储的信息来闪回查询以前的版本,当然这个受限于undo表空间的大小,以及保留策略。

在10g中oracle又引入了新的flashback功能,使用了flash recovery area来存储flashback 1og等等。这个区域默认创建在oracle_base目录下。在其中可以存放备份集、镜像拷贝、归档日志、自动备份的控制文件以及spfile和flashback logs。存放位置和大小由参数db_recovery_file_dest和db_recovery_file_dest_size决定。

默认情况数据库的flashback database是关闭,可以在mount exclusive状态下打开。

看一下Oracle 官方文档上的几段文字:

To free space in the FRA we could do take a backup of the Flash Recovery Area using the command BACKUP RECOVERY AREA.This command will take the backup of all the files in the FRA to tape only. After this the space occupied by the files in the FRA will be marked as reclaimable。

the larger the fast recovery area, the more useful it is. Ideally, the fast recovery area should be large enough for copies of the data files, control files, online redo log files, and archived redo log files needed to recover the database, and also the copies of these backup files that are kept based on the retention policy.

The Flash Recovery Area is a unified storage location for all recovery-related files and activities in an Oracle Database. It includes Control File, Archived Log Files, Flashback Logs, Control File Autobackups, Data Files, and RMAN files.

从上面的几段话,我们可以得到一下信息:

(1)    BACKUP RECOVERY AREA 命令只能备份到磁带上。 在磁盘上备份会报如下错误:

             RMAN> BACKUP RECOVERY AREA;

启动 backup 于 12-8月 -10

使用目标数据库控制文件替代恢复目录

分配的通道: ORA_DISK_1

通道 ORA_DISK_1: SID=15 设备类型=DISK

说明与资料档案库中的任何归档日志都不匹配

说明与资料档案库中的任何数据文件副本都不匹配

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: backup 命令 (在 08/12/2010 13:50:10 上) 失败

RMAN-06603: 必须在磁盘设备上使用 RECOVERY AREA, RECOVERY FILES 或 DB_RECOVERY_FILE_DEST 指定 TO DESTINATION 选项

(2)    Flash recovery area 包含内容:控制文件,归档文件,flashback logs, 控制文件,自动备份的控制文件,数据文件,数据文件拷贝,RMAN 文件(包括备份集,镜像备份)。

(3) BACKUP RECOVERY AREA 将备份所有Flash recovery area中的内容。

《FROM:http://blog.csdn.net/tianlesoftware/article/details/4677378》

原文地址:https://www.cnblogs.com/rusking/p/4313721.html