200字范文,内容丰富有趣,生活中的好帮手!
200字范文 > 修改Datafile Header规避ORA-01190

修改Datafile Header规避ORA-01190

时间:2024-04-04 01:17:13

相关推荐

修改Datafile Header规避ORA-01190

数据库|mysql教程

Datafile Header,ORA-01190

数据库-mysql教程

html5 源码,怎么编写ubuntu文件,拉萨哪有爬虫店,php如何插入php表头,seo. 层级lzw

一触发ORA-01190错误的原因1先抛出一个ora-01190错误,此错误用bbed工具构造SQLstartupORACLEinstancestarted.TotalSystemGlobalArea322961408bytesFixedSize&nb

驱动还原 源码,ubuntu驱动rtx显卡,tomcat安装成启动服务,淘宝sku爬虫,php创建新数组,谷歌seo怎么优化seo博客lzw

微信会议签到 源码,vscode取消多行注释,ubuntu 超级模式,tomcat下js乱码,EOL爬虫,php 检测mysql,上海网优化seo公司,网站模板下载 php,网页模板播放器lzw

一 触发ORA-01190错误的原因

1 先抛出一个ora-01190错误,此错误用bbed工具构造

SQL> startup

ORACLE instance started.

Total System Global Area 322961408 bytes

Fixed Size 480 bytes

Variable Size 96471936 bytes

Database Buffers218103808 bytes

Redo Buffers6365184 bytes

Database mounted.

ORA-01190: control file or data file 11 is from before the last RESETLOGS

ORA-01110: data file 11: ‘/oracle/test/jiujian1.dbf’

2 oerr ora 01190 给出这个错误的解释

[oracle@oracle ~]$ oerr ora 01190

01190, 00000, “control file or data file %s is from before the last RESETLOGS”

// *Cause: Attempting to use a data file when the log reset information in

//the file does not match the control file. Either the data file

//or the control file is a backup that was made before the most

//recent ALTER DATABASE OPEN RESETLOGS.

// *Action: Restore file from a more recent backup.

以上英文大体意思是

调用数据文件时发现数据文件的resetlogs信息和控制文件中resetlogs信息不匹配。

3 查询数据文件头部和控制文件中关于resetlogs的信息

控制文件中关于resetlogs的相关信息如下:

SQL> select resetlogs_change#, to_char(resetlogs_time,’mm/dd/yyyy hh24:mi:ss’) time from v$database;

RESETLOGS_CHANGE#TIME

—————– ——-——————-

2781464667 01/15/ 21:51:45

各数据文件头中resetlogs的信息如下:

Fhrls:resetlogs scn值

Fhrlc:resetlogs count值

fhrlc_i:resetlogs count 转换成10进制的值

对于resetlogs count 的描述如下:

reset logs count and scn: The counter with the SCN is called the Reset Log Stamp,

and is a unique identification. The counter is in fact a timestamp

SQL> select hxfil,fhrls change#,fhrlc_i,fhrlc time from x$kcvfh;

HXFIL CHANGE# FHRLC_ITIME

———- —————- ———- ——————– ———————–

12781464667 804808305 01/15/ 21:51:45

22781464667 804808305 01/15/ 21:51:45

32781464667 804808305 01/15/ 21:51:45

42781464667 804808305 01/15/ 21:51:45

52781464667 804808305 01/15/ 21:51:45

62781464667 804808305 01/15/ 21:51:45

72781464667 804808305 01/15/ 21:51:45

82781464667 804808305 01/15/ 21:51:45

112781455194 804803925 01/15/ 20:38:45

122781464667 804808305 01/15/ 21:51:45

132781464667 804808305 01/15/ 21:51:45

11 rows selected.

通过对比11号文件的resetlogs scn及resetlogs count值不难发现触发ora-01190的原因:即数据文件头部的 resetlogs scn 、resetlogs count 和控制文件中的resetlogs信息不匹配造成的。所以,如果要规避ora-01190错误,我们可以通过bbed修改数据文件头部resetlogs相关值

二 通过bbed修改数据文件头部规避此错误

1 resetlogs count 和resetlogs scn 在数据文件头部的位置

resetlogs count 位于数据文件头部偏移量112处

resetlogs scn 位于数据文件头部偏移量116处

BBED> p offset 112

kcvfh.kcvfhrlc

————–

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。