ORA-01122: database file system01.dbf failed verification check
ORA-01110: datafile system01.dbf
ORA-01206: file is not part of this database – wrong database id
原因
在使用NID更改DBID时,我们要立即从mount阶段关闭DB。
NID 用户新的DBID更新数据文件头。在运行NID之前,它不为从控制文件储存到SGA中的DBID这么做。重启能解决这个问题。
解决方案
在我们用NID完成后,且看到”change was successful for all the datafiles” 的NID日志文件,则我们可以进行以下:
1] 关闭DB
SQL> shutdown
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
2] 启动mount
SQL> startup mount
ORACLE instance started.
Total System Global Area 135339844 bytes
Fixed Size 454468 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
Database mounted.
3] 用resetlogs 选项打开DB
SQL> alter database open resetlogs;
参考
NOTE:190876.1 – NID-00100: Cannot open datafile when trying to change the DBID of a database.
Comment