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.

相关推荐
Cloud云卷云舒7 小时前
云卷云舒:从Oracle/MySQL迁移到HaishanDB:迁移评估工具核心技术拆解
mysql·oracle·ai-native·haishandb·信创数据库替换
段一凡-华北理工大学8 小时前
向量数据库实战:选型、调优与落地~系列文章12:文本分块策略实战:chunk_size 怎么选?重叠多少?
开发语言·数据库·后端·oracle·rust·工业智能体·高炉智能化
oradh10 小时前
Oracle XTTS实现跨版本迁移和升级(Oracle 11g单库升级至19C RAC集群)
数据库·oracle·11g升级19c·xtts跨版本迁移和升级
会编程的土豆13 小时前
数据库范式
数据库·oracle
—Miss. Z—15 小时前
计算机二级MySQL——简单应用题(存储过程&存储函数)
数据库·oracle·php
NineData18 小时前
Oracle 卡住时先看阻塞源,ChatDBA 会先把锁链路理出来
数据库·oracle·ninedata·锁故障·锁等待·chatdba·锁阻塞
踏月的造梦星球1 天前
达梦数据库执行计划与性能分析入门:EXPLAIN、AUTOTRACE 与 ET
服务器·数据库·oracle
尽兴-2 天前
企业数据库选型与演进:Oracle、达梦、MySQL 与分库分表实践
数据库·mysql·oracle·分库分表
一个儒雅随和的男子2 天前
多租户方案的选型
数据库·oracle
龙仔7253 天前
人大金仓KingbaseES V8 手动单库备份&恢复操作笔记
数据库·笔记·oracle·人大金仓