分享更有价值
被信任是一种快乐

oracle中出现ORA-01122错误怎么办

文章页正文上

小编给大家分享一下oracle中出现ORA-01122错误怎么办,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧!现象:在做表空间恢复演练时,遇到如下错误提示:SQL> alter database datafile 4 online;
alter database datafile 4 online
*
ERROR at line 1:
ORA-01122: database file 4 failed verification check
ORA-01110: data file 4: ‘/ora/app/oracle/oradata/orcl/users01.dbf’
ORA-01210: data file header is media corrupt解决方法:分析原因:[oracle@test hotback]$ oerr ora 1122
01122, 00000, “database file %s failed verification check”
// *Cause: The information in this file is inconsistent with information
// from the control file. See accompanying message for reason.
// *Action: Make certain that the db files and control f免费主机域名iles are the correct
// files for this database.
[oracle@test hotback]$ oerr ora 1110
01110, 00000, “data file %s: ‘%s'”
// *Cause: Reporting file name for details of anothe免费主机域名r error. The reported
// name can be of the old file if a data file move operation is
// in progress.
// *Action: See associated error message.
[oracle@test hotback]$ oerr ora 1210
01210, 00000, “data file header is media corrupt”
// *Cause: The file header block is internally inconsistent. The beginning
// of the block has a header with a checksum and other data for
// insuring the consistancy of the block. It is possible that
// the last disk write did not operate correctly. The most likely
// problem is that this is not a datafile for any database.
// *Action: Have operating system make correct file available to database.
// If the trace file dump indicates that only the checksum is wrong,
// restore from a backup and do media recovery.
基本可知,还原的数据文件是不正确的。认真检查后,果然是:ho cp ‘/ora/app/oracle/backup/hotback/con01.ctl’ ‘/ora/app/oracle/oradata/orcl/users01.dbf’把备份的控制文件当数据文件给还原回去了!重新还原:SQL> ho cp ‘/ora/app/oracle/backup/hotback/users01.dbf’ ‘/ora/app/oracle/oradata/orcl/users01.dbf’后续步骤正确执行。看完了这篇文章,相信你对“oracle中出现ORA-01122错误怎么办”有了一定的了解,如果想了解更多相关知识,欢迎关注云技术行业资讯频道,感谢各位的阅读!

相关推荐: 如何创建生成控制文件脚本

这篇文章将为大家详细讲解有关如何创建生成控制文件脚本,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。 创建生成控制文件脚本【将当前controlfile文件的创建语句放到了trace文件中】备份控制文件alter databa…

文章页内容下
赞(0) 打赏
版权声明:本站采用知识共享、学习交流,不允许用于商业用途;文章由发布者自行承担一切责任,与本站无关。
文章页正文下
文章页评论上

云服务器、web空间可免费试用

宝塔面板主机、支持php,mysql等,SSL部署;安全高速企业专供99.999%稳定,另有高防主机、不限制内容等类型,具体可咨询QQ:360163164,Tel同微信:18905205712

主机选购导航云服务器试用

登录

找回密码

注册