在测试服务器还原数据库时遇到了ORA-19563错误。如下所示

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of switch command at 04/08/2015 19:59:06

ORA-19563:  header validation failed for file 

[oracle@getlnx01 ~]$ oerr ora 19563

19563, 00000, "%s header validation failed for file %s"

// *Cause:  When opening the file to be placed in a copy or backup set,

//          to be inspected, or used as the target for

//          an incremental restore, its header was not

//          recognized as a valid file header for a file of the indicated

//          type (data file, archived log, or control file) belonging

//          to the current database.

// *Action: Ensure that the correct files are being specified for the copy

//          or backup operation.

通过分析后发现两个文件名冲突,原数据库有两个同名的文件invsubmat_d18.dbf位于不同分区。我还原时,由于测试服务器的空间不足,我将原路文件的恢复目录做了调整。(由于增加数据文件时粗心大意,自己给自己挖了一个大坑,而且自己跳了进去!)

如下所示,结果在/u04/oradata/epps目录下,出现了两个invsubmat_d19.dbf文件。只需在set命令里面将文件恢复路径修改即可。

run

{

.................................................................

set newname for datafile 105    to "/u04/oradata/epps/invsubmat_d18.dbf";

.................................................................

set newname for datafile 109    to  "/u04/oradata/epps/invsubmat_d18.dbf";

set newname for datafile 121    to  "/u04/oradata/epps/ndotbs03.dbf";

set newname for datafile 122    to  "/u04/oradata/epps/undotbs04.dbf";

restore database ;

switch datafile all;

}

修改为如下所示,restore还原成功!

run

{

.................................................................

set newname for datafile 105    to "/u04/oradata/epps/invsubmat_d18.dbf";

.................................................................

set newname for datafile 109    to  "/u04/oradata/epps/invsubmat_d20.dbf";

set newname for datafile 121    to  "/u04/oradata/epps/ndotbs03.dbf";

set newname for datafile 122    to  "/u04/oradata/epps/undotbs04.dbf";

restore database ;

switch datafile all;

}

ORA-19563: header validation failed for file的更多相关文章

  1. ORA-01994: GRANT failed: password file missing or disabled

    1.错误现象 SQL> grant sysdba to test;grant sysdba to test*ERROR at line 1:ORA-01994: GRANT failed: pa ...

  2. Validation failed for one or more entities. See ‘EntityValidationErrors’解决方法

    Validation failed for one or more entities. See ‘EntityValidationErrors’解决方法 You can extract all the ...

  3. Validation failed for one or more entities. See 'EntityValidationErrors' property for more details.

    Validation failed for one or more entities. See 'EntityValidationErrors' property for more details. ...

  4. Validation failed for one or more entities. See ‘EntityValidationErrors’解决方法【转载】

    摘自:http://www.cnblogs.com/douqiumiao/default.aspx?opt=msg Validation failed for one or more entities ...

  5. Ceph osd启动报错osd init failed (36) File name too long

    在Ceph的osd节点上,启动osd进程失败,查看其日志/var/log/ceph/ceph-osd.{osd-index}.log日志,报错如下: 2017-02-14 16:26:13.55853 ...

  6. “Validation failed for one or more entities”异常的解决办法

    日志中出现Entity Framework修改数据库时的错误: Validation failed for one or more entities. See 'EntityValidationErr ...

  7. EF中,保存实体报错:Validation failed for one or more entities. 如何知道具体错误在哪?

    异常提示:Validation failed for one or more entities. See 'EntityValidationErrors' property for more deta ...

  8. Validation failed for object='employee'. Error count: 1问题解决

    2018-11-13 在表单提交时有时候会提示 Validation failed for object=’user’. Error count: 1,其中user是表的名字,Error count是 ...

  9. gitment Error:validation failed错误解决办法

    点击Initialize comments 突然跳转出一个错误Error:validation failed 经查阅之后发现 issue的标签label有长度限制!labels的最大长度限制是50个字 ...

随机推荐

  1. (转)如何将本地git仓库上传到GitHub中托管+实践心得

    Git——新手入门与上传项目到远程仓库GitHub(转) - Chen_s - 博客园http://www.cnblogs.com/Chenshuai7/p/5486278.html 注意的问题: 1 ...

  2. iOS开发UI篇—九宫格坐标计算

    iOS开发UI篇—九宫格坐标计算 一.要求 完成下面的布局 二.分析 寻找左边的规律,每一个uiview的x坐标和y坐标. 三.实现思路 (1)明确每一块用得是什么view (2)明确每个view之间 ...

  3. 用户管理 之 用户(User)和用户组(Group)配置文件详解

    用户(User)和用户组(Group)的配置文件,是系统管理员最应该了解和掌握的系统基础文件之一,从另一方面来说,了解这些文件也是系统安全管理的重要组成部份:做为一个合格的系统管理员应该对用户和用户组 ...

  4. Reveal 破解

    永久试用Reveal,只需要打开 ~/Library/Preferences/com.ittybittyapps.Reveal.plist 把IBAApplicationPersistenceData ...

  5. 第一篇、CSS3_transtion的使用

    <html> <head> <title>这是一个CSS3的特性</title> <style> #box{ width: 150px; h ...

  6. 基于visual Studio2013解决C语言竞赛题之0517矩阵

     题目

  7. iOS搜索框UISearchBar 分类: ios技术 2015-04-03 08:55 82人阅读 评论(0) 收藏

    当你在seachBar中输入字母之前的时候,只是用鼠标选中searchBar的时候,如图 终端输出截图如下:(这个时候调用先shouldBeginEditing,之后调用didBeginEditing ...

  8. 使用vim编写hexo文档,并用ultisnips/snipmates/snippets插件补全

    作为一个vim使用者,编写markdown文档时若不能用vim这怎么能受的了! 下面是我编写markdown的时候用到的插件 Plugin 'Markdown'Plugin 'Markdown-syn ...

  9. DS1-14

    #include <stdio.h> #define MAXSIZE 10000 int MaxSubseqSum4(int List[], int N); int main() { in ...

  10. aws

    名称 对应的技术 EC2 虚拟机技术 Virtual Machine 抽象了物理机,看到的是多台虚拟的机器 需要配置管理存储.网络.操作系统等 数分钟启动,运行数周或数月 ECS 容器 Contain ...