ORA-01122: database file 4 failed verification check

现象:

在做表空间恢复演练时,遇到如下错误提示:

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

解决方法:

分析原因:

[[email protected] 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 files are the correct
//         files for this database.
[[email protected] hotback]$ oerr ora 1110
01110, 00000, "data file %s: ‘%s‘"
// *Cause:  Reporting file name for details of another error. The reported
//          name can be of the old file if a data file move operation is
//          in progress.
// *Action: See associated error message.
[[email protected] 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‘

后续步骤正确执行。

时间: 2024-12-15 06:54:36

ORA-01122: database file 4 failed verification check的相关文章

【Oracle】IMP-00010: not a valid export file, header failed verification

别人给了一个Oracle文件,结果在导入的时候发现有问题,报错如下: IMP-00010: not a valid export file, header failed verification 在网上查询后发现,是版本数据库问题造成,使用UE编辑器打开dmp文件,看到首行如下: 上图表明该数据库版本为:Oracle12c的版本 使用SQL:select * from v$version 查询当前数据库版本 我们将dmp文件的TEXPORT:V12.02修改为V11.02,再次导入,完美解决问题

[SecureCRT] 解决“securecrt failed to open the host key database file”的问题

SecureCRT在Windows XP和Windows 7中的个人应用数据路径是不同的,在Windows 7中,应用数据路径为:C:\Users\<username>\AppData(hidden)\Roaming\VanDyke\Config. 但以上是针对合法安装注册的用户,对于绿色携带版,尤其直接复制粘贴后的版本,往往出现以上报错.这是由于SecureCRT无法找到Host key database location.因此在复制粘贴后,需要编辑一下"./Data/Settin

CRT &nbsp; failed to open the host key database file

如果CRT 出现这种问题 failed to open the host key database file. 清空KnownHosts  然后重启 CRT 就好了.

Failed to open the key database file. c;\\User\\w\\Destop\\SecureCRT_FX6.5.3\\Config\\KnowHosts\\Hostsmap.txt这个问题的解决方法

1.首先将这段错误在百度翻译上面查询一下,是什么意思,查询结果如下: 打开密钥数据库文件失败.C:\用户\ w \平台\ securecrt_fx6.5.3 \\ \\ \\ hostsmap.txt knowhosts配置 2.然后将它  Failed to open the key database file. c;\\User\\w\\Destop\\SecureCRT_FX6.5.3\\Config\\KnowHosts\\Hostsmap.txt  这段报错在百度上面查询,解决方法,根

PHP: configure: error: mysql configure failed. Please check config.log for more information.

为php增加mysql模块时报错 configure: error: mysql configure failed. Please check config.log for more information. 解决方法: ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql-dir=/usr --with- mysqli=/usr/bin/mysql_config -

ERROR: Unable to connect to database using user ogg. Please check privileges.

测试环境,初步配置ogg,添加ogg用户连接数据库,提示无权限报错. 1.0 报错信息 GGSCI (enmo) 1> dblogin userid ogg,password ogg ERROR: Unable to connect to database using user ogg. Please check privileges. ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist Li

修改Database File

使用Alter Database 能够Add,Modify,Remove 数据库的Data File 和Log File. ALTER DATABASE database_name { <add_or_modify_files> } [;] <add_or_modify_files>::= { ADD FILE <filespec> [ ,...n ] [ TO FILEGROUP { filegroup_name } ] | ADD LOG FILE <file

【转载】Android Gradle Build Error:Some file crunching failed, see logs for details解决办法

错误日志:Error:java.lang.RuntimeException: Some file crunching failed, see logs for details Log: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mergeDebugResources'. > Error: java.lang.RuntimeException: Crunch

插入图片后R文件变红,报错“Error::app:mergeDebugResources&#39;. &gt; Some file crunching failed, see logs for detail”

本想做一个有爱的小东西,插入图片后发现原本之前运行成功的程序, 出现了报错“:app:mergeDebugResources'. > Some file crunching failed, see logs for detail” 一脸懵逼~~~这是什么鬼,在别人的回答和博客里找找解决办法. 不过对我好像不管用,找了好久才发现是图片的问题. 之前只是简单的在重命名的时候把图片改成“xx.png”,放在了app/src/main/res/drawable文件夹里(ps:目前每次我都是在复制图片再粘