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.

相关推荐
cqsztech1 天前
Oracle ai database 26ai rac 通过gold image 更新季度补
数据库·人工智能·oracle
cqsztech1 天前
银河麒麟v11下 19c noncdb升级到 26ai
oracle
杨云龙UP1 天前
Oracle 19c RMAN历史备份清理失败:CONTROL_FILE_RECORD_KEEP_TIME 问题排查与整改实战
linux·运维·网络·数据库·oracle·rac
疯狂打码的少年1 天前
【数据库技术】SQL概述与数据定义(DDL:CREATE/DROP/ALTER)
数据库·笔记·sql·oracle
山峰哥2 天前
数据库工程与查询优化案例深度复盘‌
数据库·sql·oracle·编辑器·深度优先·宽度优先
circuitsosk2 天前
从零搭建行业知识平台:向量库+图数据库+传统关系库的多模检索统一层设计
数据库·python·oracle·向量数据库·rag·多模检索
严同学正在努力3 天前
Oracle Data Guard 容灾实战:从搭建到切换,一篇讲透
数据库·ai·oracle
oradh3 天前
Oracle CTAS+rename 表重建方法操作总结
数据库·oracle·ctas·oracle表重建方法
疯狂打码的少年3 天前
【数据库技术】关系代数连接运算(等值连接/自然连接/外连接)
jvm·数据库·笔记·oracle
烂蜻蜓3 天前
Flask入门教程(十三):数据库操作——SQLAlchemy与CRUD完整实践
数据库·oracle·flask