现象:

RAC环境,数据文件状态变为recover,查看alert日志有如下报错:

Wed Jun 26 02:31:03 2013

Thread 1 advanced to log sequence 33187

Current log# 1 seq# 33187 mem# 0: +TJDISK/tj/onlinelog/group_1.257.757797483

Wed Jun 26 10:10:03 2013

Errors in file /opt/app/diag/rdbms/tj/tj1/trace/tj1_dbw0_6145.trc:

ORA-01148: cannot refresh file size for datafile 17

ORA-01110: data file 17: '+TJDISK/tj/datafile/ntj_index03.301.757894747'

ORA-01031: insufficient privileges

Automatic datafile offline due to media error on

file 17: +TJDISK/tj/datafile/ntj_index03.301.757894747

Unexpected communication failure with ASM instance:

error 1031 (ORA-01031: insufficient privileges

)

Wed

分析:

1.查看所有节点的messages系统日志、asm日志均没有出现错误信息。

2.查看DG的raw权限,也没有异常。

/dev/raw/raw6

/dev/raw/raw7

3.该Datafile为autoextend模式。

SQL> select file_name,autoextensible from dba_data_files where file_name like '+TJDISK/tj/datafile/ntj_index03.301.757894747';

FILE_NAME

--------------------------------------------------------------------------------

AUT

---

+TJDISK/tj/datafile/ntj_index03.301.757894747

YES

最后查了下Metalink,怀疑是命中了Oracle的一个BUG:Bug 16734525或Bug 9357097(Bug 16734525 is the duplicate of Bug 9357097)。

Bug 16734525 : ORA-1148: CANNOT REFRESH FILE SIZE FOR DATAFILE

Hdr: 16734525 10.2.0.5 RDBMS 11.1.0.7 ASM PRODID-5 PORTID-23 ORA-1148 9357097

Abstract: ORA-1148: CANNOT REFRESH FILE SIZE FOR DATAFILE

*** 04/27/13 02:21 am ***

PROBLEM:--------

Fri Apr 26 11:31:28 EDT 2013

Redo Shipping Client Connected as PUBLIC--

Connected User is ValidRedo Shipping Client Connected as PUBLIC--

Connected User is Valid

Fri Apr 26 11:44:55 EDT 2013

Errors in file /home/oracle/admin/ctopprul/bdump/ctopprul1_dbw0_20315.trc:

ORA-1148: cannot refresh file size for datafile 340

ORA-1110: data file 340: '+DATA/ctopprul_rdc/datafile/wires_data.1968.789654733'

ORA-1031: insufficient privilegesFri

Apr 26 11:44:55 EDT 2013

Automatic datafile offline due to media error onfile 340: +DATA/ctopprul_rdc/datafile/wires_data.1968.789654733

Fri Apr 26 11:44:59 EDT 2013

Unexpected communication failure with ASM instance: error 1031

ORA-1031: insufficient privileges)

NOTE: ASMB process state dumped to trace file /home/oracle/admin/ctopprul/bdump/ctopprul1_dbw0_20315.trc

NOTE: force a map free for map id 345 DIAGNOSTIC

ANALYSIS:--------------------

1. Matches the bug 9357097: SMALL BEEHIVE: FAILURE TO REFRESH FILE SIZE DUE TO SPACE OFFLINES DATAFILE

Need to confirm from DEV as audit file space issues were not there

2. Not using role separation and oracle executable is with correct permissions

3. CT is not sure if dbv or rman validate was run on the problematic datafiledue to media error

ORA-1148: cannot refresh file size for datafile 340

ORA-1110: data file 340: '+DATA/ctopprul_rdc/datafile/wires_data.1968.789654733'

ORA-1031: insufficient privileges

Fri Apr 26 11:44:55 EDT 2013

Automatic datafile offline due to media error on >>>>>>>>>>>> Media error

4. Ulimit was showing nofiles of low value Customer Visible

[Open Update screen]

[Double Click on Activity Text to enable Save operation]

[Audit]Hi team, Oracle:----------- -

Checked if there was any space issues on the server and nothing foundas the above bug is hit when audit files are not able to write-OS watcher logs shows normal

WORKAROUND:-----------

RELATED BUGS:-------------

REPRODUCIBILITY:----------------

TEST CASE:----------

STACK TRACE:------------

SUPPORTING INFORMATION:-----------------------

Uploaded all the relevant info to the bug 24 HOUR CONTACT INFORMATION FOR P1

BUGS:----------------------------------------

DIAL-IN INFORMATION:--------------------

IMPACT DATE:------------

Bug 9357097 ORA-1148 Failure to refresh file size offlines datafile producing ORA-372 ORA-376

Symptoms:

Related To:

1 Error May Occur

2 ORA-1148 / ORA-372 / ORA-376

Range of versions believed to be affected

Versions BELOW 12.1

Versions confirmed as being affected

?11.2.0.1

?11.1.0.7

?10.2.0.5

?10.2.0.4

Platforms affected

Generic (all / most platforms affected)

Fixed:

This issue is fixed in

?12.1.0.1 (Base Release)

?11.2.0.2 (Server Patch Set)

DBWR can offline the datafile with message "Automatic datafile offline due to media error"

if file size refresh fails with error ORA-1148.

As the file is offline, subsequent attempts to read the affected file produce

error ORA-372 or ORA-376 requiring media recovery.

解决方法:

临时解决方法是将手动将文件online,

Oracle并没有提供专门的补丁,需要升级到对应版本才能彻底解决(11.2.0.2)。

诊断时在ASM实例中执行了以下脚本。

SPOOL ASM_FIRST.HTML

SET MARKUP HTML ON

set echo on

set pagesize 200

alter session set nls_date_format='DD-MON-YYYY HH24:MI:SS';

select 'THIS ASM REPORT WAS GENERATED AT: ==)> ' , sysdate " " from dual;

select 'HOSTNAME ASSOCIATED WITH THIS ASM INSTANCE: ==)> ' , MACHINE " " from v$session where program like '%SMON%';

select * from v$asm_diskgroup;

SELECT * FROM V$ASM_DISK ORDER BY GROUP_NUMBER,DISK_NUMBER;

SELECT * FROM V$ASM_CLIENT;

select * from V$ASM_ATTRIBUTE;

select * from gv$asm_operation;

select * from v$version;

show parameter asm

show parameter cluster

show parameter instance_type

show parameter instance_name

show parameter spfile

show sga

spool off

exit

http://www.dengb.com/oracle/622170.htmlwww.dengb.comtruehttp://www.dengb.com/oracle/622170.htmlTechArticle现象: RAC环境,数据文件状态变为recover,查看alert日志有如下报错: Wed Jun 26 02:31:03 2013 Thread 1 advanced to log sequence 33187 Current log# 1 seq# 3318...

oracle数据文件recover,又遇BUG-ORA-01148:数据文件忽然变为recover状态相关推荐

  1. 模拟断电oracle数据不一致,Oracle数据库案例整理-Oracle系统运行时故障-断电导致数据文件状态变为RECOVER...

    1.1       现象描述 异常断电,数据库数据文件的状态由ONLINE变为RECOVER.系统显示如下信息: SQL> select file_name ,tablespace_name , ...

  2. oracle的文件后缀名,转:数据文件的扩展名是ora,dbf,dat的,有什么区别?

    只是通过扩展名来标识文件的类型而已,对于数据文件不管是ora/dat/dbf,都是一样的,没有什么区别. .dbf-数据文件, .tmp-临时文件, .log-重作日志文件(redo log file ...

  3. oracle 11g 从rman全备中恢复控制文件,拥有RMAN全备(缺少后增文件),丢失全部数据文件,控制文件的恢复...

    1.做一个RMAN的全备 E:\oracle\rman_scripts>rman catalog target 恢复管理器: Release 10.2.0.1.0 - Production on ...

  4. oracle如何往dg加盘_学习笔记:Oracle DG系统 主备库中表空间和数据文件增加删除等管...

    天萃荷净 Oracle Data Guard表空间和数据文件管理汇总 汇总日常工作中操作,在Oracle DG结构系统中,如何删除备库表空间和数据文件,如何管理主库与备库之间的文件系统,详见文章内容. ...

  5. SuSE 10 Enterprise 下 Oracle 10g 关于找不到initorcl.ora文件和控制文件问题

    Oracle无法正常启动,经过一番学习,总算解决问题,在这里做个笔记,备用! 问题如下: 使用Oracle用户登录: >sqlplus /nolog 然后, >connect /as sy ...

  6. FIREDAC(DELPHI10 or 10.1)提交数据给ORACLE数据库的一个不是BUG的BUG

    发现FIREDAC(DELPHI10 or 10.1)提交数据给ORACLE数据库的一个不是BUG的BUG,提交的表名大小写是敏感的. 只要有一个表名字母的大小写不匹配,ORACLE就会认为是一个不认 ...

  7. mysql2ora datacopy,oracle的clone及冷迁移(直接拷贝数据文件)

    最近做了个oracle 10g数据冷迁移,很简单,但还是写一下基本的操作过程: 首先是准备迁移目标服务器,初始化环境,安装数据软件. 基本的环境初始化.依赖包先安装好.相关目录.用户都需要安装好(目标 ...

  8. Oracle 错误代码详解及解决方式--ORA

    ORA-00001: 违反唯一约束条件 (.) 错误说明:当在唯一索引所对应的列上键入重复值时,会触发此异常. ORA-00017: 请求会话以设置跟踪事件 ORA-00018: 超出最大会话数 OR ...

  9. oracle主备库查询,oracle11g dataguard 备库数据同步的检查方法

    概述: 一.环境 主库: ip地址:192.168.122.203 oracle根目录:/data/db/oracle SID:qyq 数据文件路径/data/db/oracle/oradata/qy ...

  10. oracle数据库配置助手来初始化参数,使用服务器参数文件(SPFILE)管理初始化参数...

    传统上,Oracle数据库的初始化参数存储在文本初始化参数文件中.为了更好的可管理性,您可以选择在二进制服务器参数文件中维护初始化参数,该文件在数据库启动和关闭期间保持不变.本节介绍服务器参数文件,并 ...

最新文章

  1. oracle rac ora 12537,解决11gR2 Rac ORA-12537: TNS:connection closed 一例
  2. TF-IDF算法百度附有代码 有解吧实现中文分词
  3. Node,Document,HTMLDocument,HTMLCollection解析
  4. VALVE SURVEY RESULTS
  5. java 监听本地端口_JAVA本地监听与远程端口扫描
  6. apache poi使用例_GitHub - cooker/poi-examples: apache poi 使用案例
  7. mysql 8小时问题_Mysql经典的“8小时问题”
  8. 【2016年第5期】研究(国家自然科学基金项目成果集萃)导读
  9. intelRealsense D435 python读取并显示彩图和深度图
  10. Python中的self和init
  11. CSS-table样式+
  12. 翻译PDF 翻译PPT 保留原格式 一键搞定
  13. ArcGIS教程:启用数据驱动页面
  14. 高校创新英语挑战活动策划方案
  15. 《金融学》笔记 第五章 金融市场
  16. python经典教程游戏软件_手把手带领大家用Python来做经典游戏 — 贪吃蛇
  17. 人工智能在各个领域里的应用场景
  18. 关于天龙八部3的感想
  19. VirtualBox中安装懒人版macOS Mojave黑苹果系统
  20. Android 11来了,快!扶我起来

热门文章

  1. 英语四六级选择题自动判卷算法
  2. 三维地图之cesium入门使用
  3. Spring Boot + Thymeleaf + Echarts 三维地图展示
  4. python-三天打渔、两天晒网 - 实验7 简单的循环程序
  5. 【百度地图2.5D、3D在Vue项目中的使用】嵌入二维百度地图、三维百度地图、多种显示模式风格样式颜色的百度地图
  6. 【Java程序员面试】直接被SpringBoot干趴?NONONO!拒绝做冤大头!!
  7. 如何查看所使用计算机的配置,电脑配置的三种查看方法 不用借助软件怎么查看电脑配置...
  8. 国内打开Cousera方法
  9. Cousera Sequence,Time Series and PredictionWK1
  10. 鲶鱼效应 互联网倒逼传统金融业转型