[转帖]ORA-01122;ORA-01110;ORA-01207问题解决经验总结_MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
2
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 2122 | 回复: 1   主题: [转帖]ORA-01122;ORA-01110;ORA-01207问题解决经验总结        上一篇   下一篇 
junxi_gao
注册用户
等级:列兵
经验:99
发帖:6
精华:0
注册:2016-9-26
状态:离线
发送短消息息给junxi_gao 加好友    发送短消息息给junxi_gao 发消息
发表于: IP:您无权察看 2019-9-19 10:11:26 | [全部帖] [楼主帖] 楼主

1.SQL>shutdown abort 如果数据库是打开状态,强行关闭

2.SQL>sqlplus / as sysdba

3.SQL>startup
ORACLE 例程已经启动。

Total System Global Area 293601280 bytes
Fixed Size 1248624 bytes
Variable Size 121635472 bytes
Database Buffers 167772160 bytes
Redo Buffers 2945024 bytes


数据库装载完毕。
ORA-01122: 数据库文件 1 验证失败
ORA-01110: 数据文件 1:

'F:/ORACLE/PRODUCT/10.2.0/DB_1/ORADATA/ORCLDW/SYSTEM01.DBF'


ORA-01207: 文件比控制文件更新 - 旧的控制文件

4.SQL>alter database backup controlfile to trace as 'f:/aa';
数据库已更改。

5.SQL>shutdown immediate 如果数据库是打开状态,则关闭
ORA-01109: 数据库未打开
已经卸载数据库

6.SQL>startup nomount;
ORACLE 例程已经启动。

Total System Global Area 105979576 bytes
Fixed Size 454328 bytes
Variable Size 79691776 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes


7.Editplus之类的编辑器打开在第四步生成的f:/aa文件;
其实在这个文件中的已经告诉你咋样恢复你的数据库了,找到STARTUP NOMOUNT字样,然后下面可以看到类似语句,这个文件有好几个类似的生成控制文件语句,主要针对不懂的环境执行不同的语句,象我的数据库没有做任何备份,也不是在归档模式,就执行这句

CREATE CONTROLFILE REUSE DATABASE "ORCLDW" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 'F:/ORACLE/PRODUCT/10.2.0/DB_1/ORADATA/ORCLDW/REDO01.LOG' SIZE 50M,
GROUP 2 'F:/ORACLE/PRODUCT/10.2.0/DB_1/ORADATA/ORCLDW/REDO02.LOG' SIZE 50M,
GROUP 3 'F:/ORACLE/PRODUCT/10.2.0/DB_1/ORADATA/ORCLDW/REDO03.LOG' SIZE 50M
DATAFILE
'F:/ORACLE/PRODUCT/10.2.0/DB_1/ORADATA/ORCLDW/SYSTEM01.DBF',
'F:/ORACLE/PRODUCT/10.2.0/DB_1/ORADATA/ORCLDW/UNDOTBS01.DBF',
'F:/ORACLE/PRODUCT/10.2.0/DB_1/ORADATA/ORCLDW/SYSAUX01.DBF',
'F:/ORACLE/PRODUCT/10.2.0/DB_1/ORADATA/ORCLDW/USERS01.DBF',
'F:/ORACLE/PRODUCT/10.2.0/DB_1/ORADATA/ORCLDW/EXAMPLE01.DBF'
CHARACTER SET ZHS16GBK
;


执行上面这段语句,这个语句重建控制文件,然后你可以看着f:/aa文件完成下面的恢复工作了,

8.SQL>RECOVER DATABASE (恢复指定表空间、数据文件或整个数据库)

9.SQL>ALTER DATABASE OPEN 打开数据库 




赞(0)    操作        顶端 
联动大白
注册用户
等级:列兵
经验:91
发帖:0
精华:0
注册:2015-5-27
状态:离线
发送短消息息给联动大白 加好友    发送短消息息给联动大白 发消息
发表于: IP:您无权察看 2019-11-18 0:30:00 | [全部帖] [楼主帖] 2  楼

为了方便大家阅读,我对文章中错误号来解释一下吧!

Error Id: ORA-01109

Title: database not open

Description:

database not open

Action:

Open the database and try the command again

Cause:

A command was attempted that requires the database to be open.


Error Id: ORA-01110

Title: data file string: ’string’

Description:

data file string: ’string’

Action:

See associated error message

Cause:

Reporting file name for details of another error


Error Id: ORA-01122

Title: database file string failed verification check

Description:

database file string failed verification check

Action:

Make certain that the db files and control files are the correct files for this database.

Cause:

The information in this file is inconsistent with information from the control file. See accompanying message for reason.


Error Id: ORA-01207

Title: file is more recent than control file - old control file

Description:

file is more recent than control file - old control file

Action:

Use the current control file or do backup control file recovery to make the control file current. Be sure to follow all restrictions on doing a backup control file recovery.

Cause:

The control file change sequence number in the data file is greater than the number in the control file. This implies that the wrong control file is being used. Note that repeatedly causing this error can make it stop happening without correcting the real problem. Every attempt to open the database will advance the control file change sequence number until it is great enough.


也许你已明白,但对一个人有用也是我存在的理由!^_^ By:持之以恒的大白

-- 来自: 北京联动北方科技有限公司



赞(0)    操作        顶端 
总帖数
2
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论