设为首页 加入收藏

TOP

一个表空间offline后alert日志报ORA-01135和ORA-01110的问题(二)
2015-11-21 01:36:34 来源: 作者: 【 】 浏览:6
Tags:一个 空间 offline alert 日志 ORA-01135 ORA-01110 问题
m000_3250.trc Trace file /u01/app/oracle/diag/rdbms/test/test/trace/test_m000_3250.trc Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options ORACLE_HOME = /u02/app/oracle/product/11.2.0.4/db_1 System name: Linux Node name: rhel63single Release: 2.6.32-279.el6.x86_64 Version: #1 SMP Wed Jun 13 18:24:36 EDT 2012 Machine: x86_64 VM name: VMWare Version: 6 Instance name: test Redo thread mounted by this instance: 1 Oracle process number: 22 Unix process pid: 3250, image: oracle@rhel63single (M000) *** 2015-03-13 09:40:30.195 *** SESSION ID:(130.7) 2015-03-13 09:40:30.195 *** CLIENT ID:() 2015-03-13 09:40:30.195 *** SERVICE NAME:(SYS$BACKGROUND) 2015-03-13 09:40:30.195 *** MODULE NAME:(MMON_SLAVE) 2015-03-13 09:40:30.195 *** ACTION NAME:(Monitor Tablespace Thresholds) 2015-03-13 09:40:30.195 DDE rules only execution for: ORA 1110 ----- START Event Driven Actions Dump ---- ---- END Event Driven Actions Dump ---- ----- START DDE Actions Dump ----- Executing SYNC actions ----- START DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (Async) ----- Successfully dispatched ----- END DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (SUCCESS, 0 csec) ----- Executing ASYNC actions ----- END DDE Actions Dump (total 0 csec) ----- ORA-01135: file 12 accessed for DML/query is offline ORA-01110: data file 12: '/u01/app/oracle/oradata/test/test.dbf' [oracle@rhel63single trace]$

?

后来在mos中搜索了一下:
Getting Trace Files With DB_STRUCTURE_INTEGRITY_CHECK And An ORA-01110. (文档 ID 1252614.1)
该文章与本现象相符。

该文章给出原因是:

These files are generated by the Health Check Monitor and specifically, the DB Structure Integrity Check.

?

By default the database runs the Health Check on a regular basis.During the course of these health check executions if any failures are detected then these kind of messages are logged to the alert log.

Health Monitor checks (also known as checkers, health checks, or checks) examine various layers and components of the database. Health checks detect file corruptions, physical and logical block corruptions, undo and redo corruptions, data dictionary corruptions, and more. The health checks generate reports of their findings and, in many cases, recommendations for resolving problems.


拓展一下:与health check相关的视图(其实是synonym)有:

V$HM_CHECK
V$HM_CHECK_PARAM
V$HM_FINDING
V$HM_INFO
V$HM_RECOMMENDATION
V$HM_RUN

以上视图的查询结果可以用到客户db的巡检中。

?

解决方案见下:

?

Solution

 The ORA-01110 is not seen in the alert log, but if you set an Error Stack for it, you would see it. So, we need to set an Error Stack for the ORA-01110 to get the name of the offline data file.

 1) Set the following event and check the alert log for occurrence of the ORA-01110.
      SQL> connect / as sysdba
      SQL> alter system set events '1110 trace name errorstack level 3';

 2) If the trace files are still being generated, then once a file is created, the ORA-01110 should now be seen 
      in the alert log. When you capture it, disable the tracing:
      SQL> connect / as sysdba
      SQL> alter system set events '1110 trace name errorstack off';

 3. The ORA-01110 in the alert log seen, should give the name of the data file that's offline.

 4. Please switch that data file/ table space status to online, and that should avoid the traces.

 5. If the table space/ data file is set to offline for a reason, t
首页 上一页 1 2 3 下一页 尾页 2/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇scp的风险意识 下一篇深入浅出Redis(二)高级特性:事..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: