重庆思庄Oracle、Redhat认证学习论坛

标题: oracle TNS-12535 TNS-00505 问题解决 [打印本页]

作者: jiawang    时间: 5 小时前
标题: oracle TNS-12535 TNS-00505 问题解决
报错现象: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
  Time: 26-AUG-2024 22:49:37
  Tracing not turned on.
  Tns error struct:
    ns main err code: 12535
   
TNS-12535: TNS:operation timed out
    ns secondary err code: 12560
    nt main err code: 505
   
TNS-00505: Operation timed out
    nt secondary err code: 110
    nt OS err code: 0
  Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=XX.XX.XX.XX)(PORT=51590))
  
解决办法:


防火墙一般是20分钟或者30分钟drop或者拒绝一次连接,建议设置10分钟:


vi $ORACLE_HOME/network/admin/sqlnet.ora


--新增


sqlnet.expire_time = 10


如果是rac集群,oracle用户和grid用户都需要添加(经测试光grid用户添加不管用)


修改sqlnet.ora 不需要重启监听,新连接会生效






欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2