rman 备份命令发出后 drop /create datafile 对backup 的影响

Summary

RMAN looks for the datafiles to backup and identifies that the datafile doesn't exist any more ( dropped ) that cause the backup to fail.

The question is,

Does any workaround/patch exist so rman does not fail and exit, but to continue the backup with error message,

or warning that the Tablespace / Datafile was dropped after backup has started and so not available.

Error:

RMAN-03002: failure of backup plus archivelog command at 02/05/2013 12:51:00

RMAN-03009: failure of backup command on ch01 channel at 02/05/2013 12:51:00

ORA-01157: cannot identify/lock data file 5 - see DBWR trace file

ORA-01110: data file 5: 'No file with this number, file does not exist'

or:

RMAN-03002: failure of backup plus archivelog command at 02/06/2013 15:55:27

RMAN-06056: could not access datafile 5 <<-- This tablespace/datafile was dropped after rman backup was already started

Solution

Rerun the Backup !

Current the only workaround is to move the schedule of the backup so it falls outside the maintenance to 'drop' Tablespaces/Datafiles.

An Enhancment request if filed already in

<Bug 10405386>: MAINTENANCE TASK LIKE DROP TABLESPACE/DATAFILE DURING RMAN BACKUP

to change the behavior and let backup continue even though the dropped datafile no longer available.

Attachments :

Cause

This is expected behavior and it is not supported to drop/create tablespaces while performing a rman backup.

When rman starts a backup, it will take a snapshot of the controlfile (for read consistency) to get the list of datafiles to backup.

If during the backup, some of these files are dropped, rman will error out as it still expects these datafile(s) to be present.

The same will happen for newly created tablespaces (but will have no impact as such), they will not be part of the backup as they were unknown at the time the backup started.

相关推荐
standovon2 小时前
【MySQL基础篇】概述及SQL指令:DDL及DML
sql·mysql·oracle
God__is__a__girl3 小时前
Oracle驱动版本引发ORA-01461批量插入异常排查与解决
数据库·oracle
少年攻城狮3 小时前
Oracle系列---【两个环境,表结构一致,数据量一致,索引也一致,为什么同样的sql执行时间却不一致?】
数据库·sql·oracle
GentleDevin3 小时前
Redis服务常用命令
数据库·oracle
@insist1235 小时前
数据库系统工程师-SQL 数据定义语言(DDL)核心知识点与软考实战指南
数据库·oracle·软考·数据库系统工程师·软件水平考试
万粉变现经纪人5 小时前
如何解决 pip install cx_Oracle 报错 未找到 Oracle Instant Client 问题
数据库·python·mysql·oracle·pycharm·bug·pip
jnrjian5 小时前
reset database to incarnation 过多的archivelog 导致incarnation 改变
oracle
麦聪聊数据7 小时前
快速将Oracle数据库发布为 API:使用 QuickAPI 实现 SQL2API
数据库·sql·低代码·oracle·restful
番茄去哪了8 小时前
从0到1独立开发一个论坛项目(一)
java·数据库·oracle·maven