当前位置: 首页 > article >正文

datafilecopy header validation failure for file +DATA/orcl/datafile/file1.ora

环境
linux 6.8
oracle 11.2.0.4 rac 未打补丁

现象:
数据库日志中显示

datafilecopy header validation failure for file +DATA/orcl/datafile/file1.ora

原因
用rman的backup as copy 对数据文件进行了copy或者叫位置更改时候,在sqlplus中对文件名进行了rename,这个只是更新了v$datafile,而
v$datafile_copy中还未更新,正确的方式是使用rman的switch datafile all命令进行更改。

解决

1. Confirm the name of the current datafiles:

RMAN>report schema;

2. Confirm the name of the datafile copies (this will show the SAME list of datafiles):

RMAN>list copy of database;

3. Remove the datafilecopy entries from the rman repository (this will NOT remove the physical
files but simply update the rman repository):

RMAN>change datafilecopy <key> uncatalog;

You can get <key> value from the list copy of database output - do this for every datafile
that is 'duplicated' in the list copy output.

4. Confirm that the copies have been removed:

RMAN>list copy of database;

http://www.kler.cn/news/137188.html

相关文章:

  • Web Service
  • OpenCV高级图形用户界面(9)更改指定窗口的位置函数moveWindow()的使用
  • go-zero系列-限流(并发控制)及hey压测
  • 深度学习面试笔试之循环神经网络(RNN)、门控循环单元(GRU)、长短期记忆(LSTM)
  • Node-RED开源项目的modbus通信(TCP)
  • InnoDB引擎(架构,事务原理,MVCC详细解读)
  • 电脑便签工具推荐哪个?电脑上好用的便签软件使用哪一款
  • 【监控系统】日志可视化监控体系ELK搭建
  • C#入门(7):接口详细介绍与代码演示
  • Linux操作系统的Web服务器优点
  • BatchNormalization:解决神经网络中的内部协变量偏移问题
  • Ubuntu18.04安装LeGO-LOAM保姆级教程
  • 如何定位el-tree中的树节点当父元素滚动时如何定位子元素
  • 动捕设备如何推动线下活动以虚拟主持人创新升级互动形式
  • CICD 持续集成与持续交付——gitlab
  • 积分...
  • 多目标应用:基于非支配排序的蜣螂优化算法NSDBO求解微电网多目标优化调度(MATLAB)
  • JAVA sql 查询
  • 设计模式-行为型模式-模板方法模式
  • Docker 单节点部署 Consul
  • 在通用jar包中引入其他spring boot starter,并在通用jar包中直接配置这些starter的yml相关属性
  • 数据仓库高级面试题
  • Texpad所见即所得
  • WPF Button点击鼠标左键弹出菜单
  • 每日汇评:美日在两个月低点附近似乎较为脆弱,熊市可能会在FOMC会议纪要公布前暂停
  • Java查询多条数据放入word模板 多个word文件处理成zip压缩包并在前端下载.zip文件