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.

相关推荐
隔窗听雨眠1 天前
Oracle19c集群补丁实战手册
oracle·数据库补丁·opatchauto
杨凯凡5 天前
IT日报|2026-11-19:Oracle Java 紧急补丁、Optimizely 供应链攻击、GitHub 安全评估升级
java·oracle·github
OxYGC6 天前
[Web3] 智能合约 13: 项目实战⑤ DappLink Oracle
oracle·web3·智能合约
Lucifer三思而后行6 天前
Oracle RAC 启动失败,DBA 如何一步步定位问题?
oracle·rac
tianyuanwo8 天前
NocoDB 系统手册:PostgreSQL 主机资产管理的界面层实施方案
数据库·postgresql·oracle
隔窗听雨眠11 天前
Oracle日志体系分层结构与故障定位路径
数据库·oracle·故障排查
曲径海盗11 天前
Try-Except怎么用,3个追问解答在自动化下的应用
java·jvm·oracle
爱吃奥利奥_wen14 天前
SQL Server 基础语法详解:从建库建表到约束与增删改查
服务器·数据库·oracle
x_SpiderMan14 天前
搭建Oracle RAC 集群
数据库·oracle
测试界的小码农15 天前
【图数据库实战进阶(03):Neo4j 图数据建模实战——节点、关系与属性应该怎么设计?】
数据库·oracle·neo4j