ORA-01207: file is more recent than control file -
OS:
[root@yoon ~]# more /etc/oracle-release
Oracle Linux Server release 5.7
DB:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
测试:
1、对数据库的控制文件备份
2、删除现有的控制文件后,用备份的控制文件还原,出现old control file报错
3、服务器突然停电、也会引起这种情况
原因:
根据oracle运行原理,数据库在运行期间,由于检查点发生等原因不断的更新控制文件,同时数据库在关闭和重启过程中都会更新控制文件的内容,But,oracle db 突然停电或者其他原因,会导致当前的数据库信息无法更新到控制文件中,再次启动数据库后,当oracle检查控制文件和其他文件信息是否一致时,就出现了这个错误。
SQL> startup
ORACLE instance started.
Total System Global Area 1653518336 bytes
Fixed Size 2228904 bytes
Variable Size 956304728 bytes
Database Buffers 687865856 bytes
Redo Buffers 7118848 bytes
Database mounted.
ORA-01122: database file 1 failed verification check
ORA-01110: data file 1: '/u01/oracle/oradata/yoon/system01.dbf'
ORA-01207: file is more recent than control file - old control file
解决方法:
1、startup mount
2、alter database backup controlfile to trace
3、create controlfile script from the trace file
4、RECOVER DATABASE USING BACKUP CONTROLFILE
5、alter database open resetlogs
具体步骤:
1.
SQL> shutdown immediate
ORA-01109: database not open
2.
SQL> startup mount
ORACLE instance started.
Total System Global Area 1653518336 bytes
Fixed Size 2228904 bytes
Variable Size 956304728 bytes
Database Buffers 687865856 bytes
Redo Buffers 7118848 bytes
Database mounted.
SQL>
3.
SQL> alter database backup controlfile to trace;
4.
[oracle@yoon trace]$ strings yoon_ora_3529.trc
5.create controlfile script
脚本内容如下:
SQL> CREATE CONTROLFILE REUSE DATABASE "YOON" RESETLOGS NOARCHIVELOG
2 MAXLOGFILES 16
3 MAXLOGMEMBERS 3
4 MAXDATAFILES 100
5 MAXINSTANCES 8
6 MAXLOGHISTORY 292
7 LOGFILE
8 GROUP 1 '/u01/oracle/oradata/yoon/redo01.log' SIZE 50M BLOCKSIZE 512,
9 GROUP 2 '/u01/oracle/oradata/yoon/redo02.log' SIZE 50M BLOCKSIZE 512,
10 GROUP 3 '/u01/oracle/oradata/yoon/redo03.log' SIZE 50M BLOCKSIZE 512
11 DATAFILE
12 '/u01/oracle/oradata/yoon/system01.dbf',
13 '/u01/oracle/oradata/yoon/sysaux01.dbf',
14 '/u01/oracle/oradata/yoon/undotbs01.dbf',
15 '/u01/oracle/oradata/yoon/users01.dbf'
16 CHARACTER SET ZHS16GBK;
Control file created.
SQL> RECOVER DATABASE USING BACKUP CONTROLFILE;
ORA-00279: change 1220104 generated at 09/02/2013 15:38:49 needed for thread 1
ORA-00289: suggestion :
/u01/oracle/fast_recovery_area/YOON/archivelog/2013_09_02/o1_mf_1_16_%u_.arc
ORA-00280: change 1220104 for thread 1 is in sequence #16
Specify log: {=suggested | filename | AUTO | CANCEL}
/u01/oracle/oradata/yoon/redo01.log
Log applied.
Media recovery complete.
SQL> ALTER DATABASE OPEN RESETLOGS;
Database altered.
SQL> ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/oracle/oradata/yoon/temp01.dbf' REUSE;
Tablespace altered.
ORA-01207: file is more recent than control file -的更多相关文章
- ORA-01207: file is more recent than control file - old control file的处理方法
		
1. 连接数据库 sqlplus / as sysdba2. 启动数据库,此时会报标题中的错误startup 3.备份创建控制文件的脚本语句,并从中拷贝出相关的NORESETLOGS模式的创建控制文件 ...
 - ORA-01665 control file is not a standby control file
		
ORA-01665错误处理 问题描述: 在备库启动至mount状态时,报如下错误: ORA-01665: control file is not a standby control file 解决办法 ...
 - 10g ASM下修改control file的位置
		
1.查看位置以及name是否正确 SQL> sho parameter name NAME TYPE VALUE ------------------------------------ --- ...
 - ORA-00245: control file backup failed; target is likely on a local file system
		
ORACLE11G RAC alert报错如下:Errors in file /u01/app/oracle/diag/rdbms/dljyzs/dljyzs1/trace/dljyzs1_ora_8 ...
 - control file sequential read 等待事件
		
可能的原因 control file sequential read Reading from the control file. This happens in many cases. For ex ...
 - python3 安装scrapy Exception: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 1006, in check_if_exists解决方法
		
错误代码: Exception: Traceback (most recent call last): File , in check_if_exists self.satisfied_by = pk ...
 - could not open extension control file "/usr/share/postgresql/9.1/extension/plpythonu.control": No such file or directory
		
在使用createlang 安装plpythonu的时候出现如下错误:could not open extension control file "/usr/share/postgresql ...
 - ORA-00245: control file backup failed; target is likely on a local file system (转载)
		
环境:DB VERSION: 11.2.0.4.0RAC 2 nodes 问题:邮件显示rman备份失败,查看rman备份日志 Starting Control File and SPFILE Aut ...
 - ORACLE CONTROL FILE 笔记
		
控制文件包含的信息: 1.数据库的名字 2.联机重做日志文件和数据文件的名字和位置 3.数据库创建的时间戳 4.当前日志的序列号 5.检查点信息 6.备份信息 TIP:数据 ...
 
随机推荐
- .NET MVC4.0与CA对接
			
1.改web.confog 2.引用CA提供的 dll 3.在controller层加个方法,记得加上授权认证的特性,获取信息 [Authorize] publi void calogin() { H ...
 - Entity FrameWork 与 NHibernate
			
1 Nhibernate 展示了NHibernate在数据库和用程序之间提供了一个持久层. 应用程序自己提供ADO.NET连接,并且自行管理事务.NHibernate体系结构如图1-51所示.它体 ...
 - 优秀的前端上传文件插件  web uploader
			
WebUploader是由Baidu WebFE(FEX)团队开发的一个简单的以HTML5为主,FLASH为辅的现代文件上传组件.在现代的浏览器里面能充分发挥HTML5的优势,同时又不摒弃主流IE浏览 ...
 - 学习练习 java输入输出流 练习题1
			
.编写TextRw.java的Java应用程序,程序完成的功能是:首先向TextRw.txt中写入自己的学号和姓名,读取TextRw.txt中信息并将其显示在屏幕上. package com.hanq ...
 - 延迟jquery,ready事件触发的时间
			
$.holdReady(true);//holdReady必须在ready()方法调用之前来调用,来延迟ready()方法的执行 $(document).ready(function(){ conso ...
 - 在python3.5中使用pip
			
我centos7上同时有python2.7和python3.5.现在希望能在使用python3.5时也能用pip.本来这应该是很容易的一件事,然而我一步步掉进坑里.. 官网安装pip的方法是,http ...
 - 在jQuery和JavaScript中,实现转跳
			
隐藏转跳,浏览器不产生历史记录(replace).代码片段: window.location.replace("http://insus.cnblogs.com"); 当然我们还不 ...
 - OpenGL ES 中Uniform块
			
1.采用uniform Block的原因如果你的程序中包含了多个着色器,而且这些着色器使用了相同的Uniform变量,你就不得不为每个着色器分别管理这些变量.Uniform变量的location是在程 ...
 - mysql 常用sql操作语句
			
获取数据库里所有表 SELECT TABLE_NAME,TABLE_ROWS FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='数据库名' 获取表里 ...
 - Linux:/bin/bash和/bin/sh的区别
			
bash.dash(/bin/bash和/bin/sh) 原文:http://www.cnblogs.com/dkblog/archive/2011/04/02/2003822.html Linux中 ...