查看: 2165|回复: 1

[原创] enq: KO - fast object checkpoint Fatal NI connect error 12170

[复制链接]
论坛徽章:
0
跳转到指定楼层
1#
发表于 2014-11-28 12:04 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
系统登录不了,因为是互联网项目,很紧急,所以只能把nginx切换到备机上去,然后恢复正常,备机也是连的同一数据库
事后检查应用程序日志,发现连不上数据库,然后检查数据库日志:

**********************************************************************
Fatal NI connect error 12170.
Fatal NI connect error 12170.
Fatal NI connect error 12170.
Tue Nov 25 10:40:25 2014

***********************************************************************
Tue Nov 25 10:40:25 2014

***********************************************************************
Fatal NI connect error 12170.
Fatal NI connect error 12170.
  VERSION INFORMATION:
TNS for Linux: Version 11.2.0.4.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.4.0 - Production
  VERSION INFORMATION:
TNS for Linux: Version 11.2.0.4.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.4.0 - Production
  VERSION INFORMATION:
TNS for Linux: Version 11.2.0.4.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.4.0 - Production
  VERSION INFORMATION:
TNS for Linux: Version 11.2.0.4.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.4.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.4.0 - Production
  Time: 25-11月-2014 10:40:25
  Time: 25-11月-2014 10:40:25
  Time: 25-11月-2014 10:40:25
  Time: 25-11月-2014 10:40:25
  Tracing not turned on.
  Tracing not turned on.
  Tracing not turned on.
  Tns error struct:
  Tns error struct:
  Tracing not turned on.
  Tns error struct:
    ns main err code: 12535
    ns main err code: 12535
  Tns error struct:
    ns main err code: 12535
        
   
    ns main err code: 12535
TNS-12535: TNS: 操作超时
TNS-12535: TNS: 操作超时
   
TNS-12535: TNS: 操作超时
    ns secondary err code: 12606
    ns secondary err code: 12606
    ns secondary err code: 12606
    nt main err code: 0
    nt main err code: 0
    nt main err code: 0
TNS-12535: TNS: 操作超时
    nt secondary err code: 0
    nt secondary err code: 0
    nt secondary err code: 0
    ns secondary err code: 12606
    nt OS err code: 0
    nt OS err code: 0
    nt OS err code: 0
    nt main err code: 0
  Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.19.6*)(PORT=47725))
  Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.19.6*)(PORT=47722))
  Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.19.**)(PORT=47727))
    nt secondary err code: 0
WARNING: inbound connection timed out (ORA-3136)WARNING: inbound connection timed out (ORA-3136)
    nt OS err code: 0
  Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.19.6*)(PORT=47726))
  VERSION INFORMATION:

从日志显示是应用程序所在服务器连不上数据库,可以肯定的是网络是没问题的(有监控,如果有问题会告警),网上说数据库负载高也会出现这种情况
登录控制台,察看此时间段的情况:发现此时间段的average active session很高:


运行addm如下:
addm_12129.rar (6.71 KB, 下载次数: 5)

请大侠一起分析下

论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
2#
发表于 2014-12-2 04:38 | 只看该作者
Is "enq: KO - fast object checkpoint" your top wait event during the time? Your ADDM report doesn't show that wait and does not give a clear indication of the cause of your problem. But generally, Oracle Net (SQL*Net) timeout could be due to network problems and/or server high load. If you're sure your network at the lower layer is fine, check CPU load on the server. If it's Linux or UNIX, you can find the historical data with sar command.

The ADDM does tell you that the SGA may be under-sized (recommend you increase it from 16G to 26G). How much memory do you have on the box? Some SQLs may need to be tuned to reduce CPU usage.

If the KO enqueue wait is indeed high for an extended period of time, check your I/O. Is it on ASM? Do you truncate or drop lots of tables?

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表