Tag Archives: 11G

消除11.2上的db file parallel read

客户在11.2.0.3环境中进行压力测试,发现出现大量的db file parallel read等待事件。 这个等待是11g以后才出现的,而在11g以前,一般这个等待事件发生在数据文件的恢复过程中。而11g新增了prefetch的特性,也可能导致这个等待事件的产生。 当运行压力测试时,后台的等待事件如下: SQL> SELECT event, COUNT(*) FROM v$session WHERE username = USER GROUP BY event ORDER BY 2; EVENT COUNT(*) —————————————————————- ———- SQL*Net message FROM client 1 SQL*Net message TO client 1 db file sequential READ … Continue reading

Posted in ORACLE | Tagged , , , , , | 2 Comments

安装11g RAC出现PRCT-1011错误

安装RAC数据库出现PRCT-1011错误。 详细错误信息为: An internal error occurred WITHIN cluster verification framework Unable TO obtain network interface list FROM Oracle ClusterwarePRCT-1011: Failed TO run “oifcfg”. Detailed error: NULLAn internal error occurred within cluster verification framework Unable to obtain network interface list from … Continue reading

Posted in ORACLE | Tagged , , | Leave a comment

11g收集统计信息引发wri$_optstat_histhead_history表的删除

在查看一个客户11.2.0.2的AWR报告时,发现了这个问题。 在SQL ORDER BY ELASPED TIME表中,前两项的结果如下: Elapsed Time (s) Executions %Total %CPU %IO SQL Id SQL Module SQL Text 10,752.79 0 25.86 98.20 7.49 4sff1qphjvbwn SQL*Plus BEGIN dbms_stats.gather_table_… 10,752.75 13 25.86 98.20 7.49 bqn2h1xrmhmht delete from sys.wri$_optstat_h… 可以看到,这2两个语句在花费时间,占用CPU以及IO的百分比上惊人的一致,这绝对不是一个偶然的事件。 第一个SQL是收集表的统计信息,显然这是在SQLPLUS里面执行的操作,其执行次数是0,说明在采样时间内,这个操作还没有完成。根据Elspsed Time估算,这个SQL已经运行了3个小时。 … Continue reading

Posted in BUG | Tagged , , | Leave a comment

11g告警日志中大量ORA-12170错误

在11g数据库的告警日志中,经常可以看到ORA-12170错误信息。 如果这个错误是偶然出现,问题可能是网络问题所致,但是如果这个错误短时间内频繁出现,那么问题就不一定是网络不畅那么简单了。 客户的数据库出现了应用无法连接的错误,而应用程序日志出现下面的错误信息: ORA-12519, TNS:no appropriate service handler foundORA-12519, TNS:no appropriate service handler found 在告警日志中比较频繁的出现了下面的错误: Fatal NI CONNECT error 12170. Sat Sep 03 12:43:43 2011 VERSION INFORMATION: TNS FOR Linux: Version 11.2.0.2.0 – Production Oracle Bequeath NT Protocol Adapter FOR … Continue reading

Posted in ORACLE | Tagged , , , , , | Leave a comment