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.

相关推荐
阿坤带你走近大数据19 小时前
Oracle中的OGG介绍
数据库·oracle
Amarantine、沐风倩✨19 小时前
Oracle 性能排查:通过 V$LONG_EXEC_SQLS 快速定位慢 SQL
数据库·sql·oracle
jnrjian19 小时前
控制用户alter user 修改密码的两种办法 dbv and triggers
数据库·oracle
不太厉害的程序员21 小时前
Oracle使用工具PL/SQL Developer中的数据泵备份还原数据库
数据库·sql·oracle
阿坤带你走近大数据1 天前
oracle数据迁移到starrocks的可落地的思路和方案
数据库·oracle
顾凌陵1 天前
SQL注入漏洞
数据库·sql·oracle
快乐的哈士奇1 天前
历史对话关联 RAG 上下文检索 — 内部技术介绍
服务器·数据库·oracle
wujt88881 天前
mysql 比较数据库
数据库·mysql·oracle
_ku_ku_1 天前
数据库系统原理 · SQL 数据定义、更新及数据库编程 · 自学总结
数据库·oracle
南极企鹅1 天前
事务&@Transactional注解
java·数据库·spring·oracle·mybatis