li
  当前位置:主页 > 问题集锦 > 文章内容
li
ORA-01207: old control file完全解决方案
来源: www.ixdba.net  作者: IXDBA.NET官方    时间:2007-12-20   阅读:46  
本文章共7373字,分5页,当前第1页,快速翻页:
 

ORA-01207: old control file完全解决方案

这个错误是oracle db最常见的错误了,引起的原因很多,但是最主要的一个原因是数据库服务器突然掉电,然后重启启动数据库报错。

究其这个问题产生的原因,其实就是控制文件中记录的db信息太老,导致数据库在启动检测时出现不一致。

控制文件中记录了整个数据库的全部信息,具体包括数据文件的,日志文件等等。

那么为什么会出现控制文件记录的数据库信息太老呢,原因很简单:根据oracle db运行原理,数据库在运行期间,由于检查点发生等原因会不断的更新控制文件,同时数据库在关闭和重启过程中都会更新控制文件的内容,但是数据库服务器突然的掉电,会导致当前的db信息无法适时更新到控制文件中,再次启动数据库后,当oracle检测控制文件和其它文件信息是否一致时,就出现了这个错误。

 

那么解决这个问题的方法有两个:

IXDBA.NET社区论坛

 

方法1

u        主导思想:创建控制文件,然后open数据库。

u        具体步骤:

1.startup mount
2.alter database backup controlfile to trace
3.create a control file creation script from the trace file,
and use the noresetlogs option
4.shutdown
5.startup nomount
Use the script generated by the 'backup controlfile to trace' command above
creaet the control file
6.recover database
7.alter database open

u        步骤演示:

[oracle@localhost orcl]$ sqlplus "/as sysdba"

SQL*Plus: Release 10.2.0.1.0 - Production on Sun Nov 19 15:26:07 2006

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

With the Partitioning, OLAP and Data Mining options

添加测试数据:

SQL> create table gaojf as select * from all_objects;

Table created.

SQL> insert into gaojf select * from gaojf;

49390 rows created.

SQL> /

98780 rows created.

…………………………………

1580480 rows created.

SQL> commit;

Commit complete.

SQL> shutdown abort    

ORACLE instance shut down.

SQL> quit

Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

With the Partitioning, OLAP and Data Mining options

 

模拟ORA-01207错误很简单,这里不再说明,然后接着如下:

[oracle@localhost orcl]$ sqlplus "/as sysdba"

SQL*Plus: Release 10.2.0.1.0 - Production on Sun Nov 19 15:26:47 2006

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup

ORACLE instance started.

Total System Global Area  167772160 bytes

Fixed Size                  1218316 bytes

Variable Size              71305460 bytes

Database Buffers           92274688 bytes

Redo Buffers                2973696 bytes

Database mounted.

ORA-01122: database file 1 failed verification check



阅读更多内容1 · 2 · 3 · 4 · 5 · 下一页>>


  上一篇: 问题解疑:关于Oracle隐式offlin...   下一篇: 光纤网卡和HBA卡有什么区别 ?
li
 §相关评论  
 热点文章

·IT168技术卓越奖年会北京召开在
·No space left on device: mod
·shm.create(): error creating
·mysql占用cpu特别高问题的解决
·Can't locate Mail/Send.pm in
·Allowed memory size of 83886
·overwritten -- Unclean shutd
·Apache重启失败:name-based s
·(13)Permission denied: make_
·SQL0964C The transaction log
·delete删除大表:SQL0964C The
li
 编辑推荐
·IT168技术卓越奖年会北京召开在
·No space left on device: mod
·shm.create(): error creating
·mysql占用cpu特别高问题的解决
·Can't locate Mail/Send.pm in
·Allowed memory size of 83886
·overwritten -- Unclean shutd
·Apache重启失败:name-based s
·(13)Permission denied: make_
·SQL0964C The transaction log
·delete删除大表:SQL0964C The
li
 相关篇章
·问题解疑:关于Oracle隐式offlin...
·IT168技术卓越奖年会北京召开在即
·apache下安装AWStats步骤以及问题
·数据库启动遭遇ORA-00600: [kelt...
·Oracle Database 11g 7月11日发布
·linux中tar f 参数顺序问题
·ReiserFS将何去何从?我们应该怎...
·ORA-01033:错误解决方案
·RHEL 5 beta 2推出
·回顾2006 Linux不失落的理由
·光纤网卡和HBA卡有什么区别 ?
·问题小结:Linux下oracle常见安装...
·No space left on device: mod_r...
·shm.create(): error creating s...
·mysql占用cpu特别高问题的解决方...
·Can't locate Mail/Send.pm in @...
·Allowed memory size of 8388608...
·overwritten -- Unclean shutdow...
·Apache重启失败:name-based sha...
·(13)Permission denied: make_so...
 
li
设为首页 | 关于我们 | 技术服务 | 收藏本站 | 网站地图 | 联系方式 | 本站友情连接