近日,在查看数据库告警日志时都发现有连续报以下错误信息:

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 - ProductionTime: 04-5月 -2022 16:35:48Tracing not turned on.Tns error struct:ns main err code: 12535TNS-12535: TNS: 操作超时ns secondary err code: 12560nt main err code: 505TNS-00505: 操作超时nt secondary err code: 110nt OS err code: 0Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.46.72)(PORT=50113))
2022-05-04 16:48:26.687000 +08:00

该报错信息不会对数据库产生影响,但是alert日志增长很快,如果不注意,会导致磁盘空间不够用;另外查找错误也比较不友善。
为了规避这个问题,通过查找相关的官方资料,找到了相关的原因:

官方文档:These time out related messages are mostly informational in nature.  The messages indicate the specified client connection (identified by the 'Client address:' details) has experienced a time out. The 'nt secondary err code' identifies the underlying network transport, such as (TCP/IP) timeout limits after a client has abnormally terminated the database connection.The 'nt secondary err code' translates to underlying network transport timeouts for the following Operating Systems:For the Solaris system: nt secondary err code: 145:ETIMEDOUT 145 /* Connection timed out */For the Linux operating system: nt secondary err code: 110ETIMEDOUT 110 Connection timed outFor the HP-UX system: nt secondary err code: 238:ETIMEDOUT 238 /* Connection timed out */For AIX: nt secondary err code: 78:ETIMEDOUT 78 /* Connection timed out */For Windows based platforms: nt secondary err code: 60         (which translates to Winsock Error: 10060)Description:  A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.The reason the messages are written to the alert log is related to the use of the new 11g Automatic Diagnostic Repository (ADR) feature being enabled by default.  See (Doc ID 454927.1).

根据描述来讲有两方面原因:
1、由于被连接方在一段时间后没有正确响应;
2、由于连接的主机没有响应而建立的连接失败,连接尝试失败。
将消息写入警报日志的原因与默认启用的新的11g自动诊断存储库(ADR)特性有关。见(Doc ID 454927.1)。

解决方法:
设置Oracle Net的配置参数使它的诊断追踪信息不再写入到告警日志文件中,需要修改两个地方:

1. 在服务端的sqlnet.ora文件中增加一行DIAG_ADR_ENABLED=OFF
2. 在服务端的listener.ora中增加一行(其中listenername替换为你自己的监听器名称)DIAG_ADR_ENABLED_<listenername>=OFF
3. 使用lsnrctl命令使以上配置生效lsnrctl reload;(业务不会中断,最好使用lsnrctl restart确保参数生效)或者lsnrclt restart;(业务会中断)

Fatal NI connect error 12170错误解决办法相关推荐

  1. Fatal NI connect error 12170.

    alert_oracl.log里发现了很多连接错误的信息. Fatal NI connect error 12170. VERSION INFORMATION:         TNS for Lin ...

  2. oracle 10035 err 942,案例:Oracle日志报错 Fatal NI connect error 12170 TNS-12535 TNS-00505

    天萃荷净 Oracle数据库alert日志文件报错Fatal NI connect error 12170,通过查看mos相关文章找到解决办法 今天在一台服务器的日志文件中,发现如下信息: Fatal ...

  3. RAC下Fatal NI connect error 12170.报错处理

    原创作品,出自 "深蓝的blog" 博客,欢迎转载,转载时请务必注明出处,否则有权追究版权法律责任. 深蓝的blog:http://blog.csdn.net/huangyanlo ...

  4. 关于 Fatal NI connect error 12170

    在 sqlnet.log 中错误如下: Fatal NI connect error 12170. VERSION INFORMATION:         TNS for Linux: Versio ...

  5. Fatal NI connect error 12170

    11.2.0.2的库两个节点的alert里均频繁出现如下信息: ******************************************************************** ...

  6. 关于Fatal NI connect error 12170

    11.2.0.2的库两个节点的alert里均频繁出现如下信息: [html] ************************************************************* ...

  7. Fatal NI connect error 12170的解决方案

    导读 作者:杨漆 16年关系型数据库管理,从oracle 9i .10g.11g.12c到Mysql5.5.5.6.5.7.8.0 到TiDB获得3个OCP.2个OCM:运维路上不平坦,跌过不少坑.熬 ...

  8. 因为返回有true ajax提示进入错误,jquery ajax中error返回错误解决办法

    转自:https://www.jb51.net/article/72198.htm 进入百度搜索此问题,发现有人这么说了一句 Jquery中的Ajax的async默认是true(异步请求),如果想一个 ...

  9. VS2010 调试C++项目 fatal error LNK1123 错误解决办法

    最近用VS2010写C++项目,奇怪的是每次生成解决方案都有一个fatal error LNK1123错误,提示生成失败.查阅资料总结解决方案如下: (1)项目-->属性-->连接器--& ...

最新文章

  1. SAP中执行没有权限的事务
  2. Nuxt.js开发中碰到的问题(二)引入gitment评论系统
  3. Windows Phone如何获取和添加联系人
  4. 机器学习数据挖掘笔记_15(关于凸优化的一些简单概念)
  5. iOS开发—在@interface,@implementation和@property中变量的定义
  6. 排序算法——十大排序算法的图示与实现
  7. Vue项目中使用基于pdf.js的vue-pdf插件在pc浏览器下阅览PDF文件
  8. 12年前的 Linux bug 复活,DNS 缓存投毒攻击重现
  9. 沟通CTBS V5.0发布, 南北通及安全性成最大亮点
  10. 【转载】网络工程师行业的岗位认知
  11. 数电Day06:主从触发器和边沿触发器,触发器的逻辑符号,时序波形
  12. 西安电子科技大学计算机学院简介,西安电子科技大学计算机学院简介
  13. 【墨尘】变态心理学(北京大学)
  14. 如何用matlab制作演示动画
  15. AI教程 如何在 Illustrator 中创建渐变颜色?
  16. 视频中的视频怎样制作,教你轻松实现画中画效果
  17. 学习R语言编程——常用算法——导数与微积分的近似计算
  18. 【2017.10.08 智能驾驶/汽车电子】汽车电控常用英文缩写及功能之一
  19. A2-02-24.DML- Inserting Data into A Table Using MySQL INSERT Statement
  20. 认识32位浮点数(分别输出符号,阶码,尾数)

热门文章

  1. 打开终端如何自动进入conda环境
  2. Android 面试要点
  3. 计算机课有实验课吗,高校计算机实验课的改革探索
  4. Tomcat跨域配置
  5. 如何制作调查问卷、问卷报告
  6. 阿里经济体大数据平台的建设与思考
  7. matlab半小提琴图,【画图专题】小提琴图vioplot
  8. Java三兄弟之继承
  9. 华为加班夜宵报销要主管审批?任正非怒斥:多此一举
  10. 斗破苍穹里的那些女人