TNS-12535 TNS-00505的处理方法

硬件说明:

操作系统版本:ORACLE LINUX 6.3  64位

数据库版本:11.2.0.3   64位

 

问题说明:

在检查数据库的alert日志的时候,发现大量的12170和TNS-12535的错误;

Fatal NI connect error 12170.

 

  VERSION INFORMATION:

    TNS for Linux: Version 11.2.0.3.0 - Production

    Oracle Bequeath NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production

    TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production

  Time: 06-APR-2014 10:46:14

  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=110.80.1.83)(PORT=50226))

Sun Apr 06 10:46:24 2014

 

问题解决:

在metalink平台上面查找,该症状和文档 ID (1628949.1)描述的症状完全一样,根据文档的内容整理如下:

1、出现问题的版本

Oracle Net Services - Version 11.2.0.3 to 12.1.0.1 [Release 11.2 to 12.1]Information in this document applies to any platform.

 

2、出现错误的症状或报错格式如下:

Fatal NI connect error 12170.VERSION INFORMATION:TNS for 64-bit Windows: Version 11.2.0.3.0 - ProductionOracle Bequeath NT Protocol Adapter for 64-bit Windows: Version 11.2.0.3.0 - ProductionWindows NT TCP/IP NT Protocol Adapter for 64-bit Windows: Version 11.2.0.3.0 - ProductionTime: 22-FEB-2014 12:45:09Tracing not turned on.Tns error struct:ns main err code: 12535TNS-12535: TNS:operation timed outns secondary err code: 12560nt main err code: 505TNS-00505: Operation timed outnt secondary err code: 60nt OS err code: 0***Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=121.23.142.141)(PORT=45679))

The PORT field here is the ephemeral port assigned to the client for this connection. This does not correspond to the listener port.

 

3、问题的原因

The alert.log message indicates that a connection was terminated AFTER it was established to the instance. In this case, it was terminated 2 hours and 3 minutes after the listener handed the connection to the database.

This would indicate an issue with a firewall where a maximum idle time setting is in place.

The connection would not necessarily be "idle". This issue can arise during a long running query or when using JDBC Thin connection pooling. If there is no data 'on the wire' for lengthy

periods of time for any reason, the firewall might terminate the connection.

4、解决方法:

The following parameter, set at the **RDBMS_HOME/network/admin/sqlnet.ora, can resolve this kind of problem. DCD or SQLNET.EXPIRE_TIME can mimic data transmission between the server and the client during long periods of idle time. SQLNET.EXPIRE_TIME=n Where <n> is a non-zero value set in minutes. 

进入ORACLE_HOME/network/admin目录下,添加sqlnet.ora文件,增加一行SQLNET.EXPIRE_TIME=10

 

5、补充说明SQLNET.EXPIRE_TIME

Purpose

To specify a time interval, in minutes, to send a check to verify that client/server connections are active. The following usage notes apply to this parameter:

  • Setting a value greater than 0 ensures that connections are not left open indefinitely, due to an abnormal client termination.
  • If the probe finds a terminated connection, or a connection that is no longer in use, then it returns an error, causing the server process to exit.
  • This parameter is primarily intended for the database server, which typically handles multiple connections at any one time.
  • Limitations on using this terminated connection detection feature are:

    • It is not allowed on bequeathed connections.
    • Though very small, a probe packet generates additional traffic that may downgrade network performance.
    • Depending on which operating system is in use, the server may need to perform additional processing to distinguish the connection probing event from other events that occur. This can also result in degraded network performanc

 

6、做完以上操作后,重启数据库的监听;

 

 

详细的metalink链接 :https://support.oracle.com/epmos/faces/DocumentDisplay?id=1628949.1

-----------------------------------------------------------------------------------------------------

ORACLE 数据库运维群  367875324

------------------------------------------------------------------------------------------------------

时间: 2024-11-13 08:07:09

TNS-12535 TNS-00505的处理方法的相关文章

TNS - 12516 TNS : 解决

报错 TNS - 12516 TNS : listener could not find instance with matching protocol stack   根据官方的文档说是processes和sessions参数设置的问题.已经达到了最大值.索引监听拒绝连接,这个时候监听例程是blocked的,确实如此如下: 服务 "libaodb" 包含 1 个例程.   例程 "libaodb", 状态 READY, 包含此服务的 1 个处理程序...    

报TNS-12547: TNS:lost contact 错误的解决方法

今天有同事报告说开发服务器的监听启动出错,报以下错误lsnrctl startLSNRCTL for Linux: Version 9.2.0.4.0 - Production on 06-JUL-2009 14:37:59Copyright (c) 1991, 2002, Oracle Corporation.  All rights reserved.Starting /opt/oracle/product/9ir2/bin/tnslsnr: please wait...TNS-12547:

TNS-12535: TNS:operation timed out案例解析

一数据库突然连接不上,在自己电脑上使用SQL Developer也连接不上.立即使用SecureCRT连接上了这台服务器,从下面几个方面检查.   1:检查了数据库的状态是否正常 $ sqlplus / as sysdba   SQL*Plus: Release 10.2.0.5.0 - Production on Mon May 16 11:07:55 2016   Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.     Conn

使用SQLTools工具怎么访问我本地的Access数据库,怎么配置TNS

问题描述 使用SQLTools工具怎么访问我本地的Access数据库,怎么配置TNS 学习数据库ing,想用SQLTool访问本地的Access文件,应该怎么连接,如果用TNS,TNS应该配置在哪个地方,怎么配置. 解决方案 是dsn吧http://zhidao.baidu.com/link?url=5IhNdNkdgqNiii-cL8A3hQADwEaaI2ntylzuYnJCxUeN_9fJV4ZuaJZXqHn40K8JU3c2bG5RzDhxbrEwOLjAEq 解决方案二: http:

Oracle数据库配置错误信息

oracle|错误|数据|数据库     Oracle数据库配置错误信息     Oralce数据库的错误信息经常会出现,我们看见的都是错误的代码,至于错误原因究竟是什么还一时半会难以解答,所以就把一些常见的错误整理了一下,来看看也许对你有帮助的.1.   Oracle客户端网络配置:          在Oralce产品安装完成后,为了与数据库服务器进行连接或者是两台数据库之间进行数据复制,则必须进行网络连接配置.          Oracle9i Net Service配置方法:     

NuSOAP webservice接口

NuSoap是PHP环境下的WebService编程工具,用于创建或调用WebService.它是一个开源软件,是完全采用PHP语言编写的.通过HTTP收发SOAP消息的一系列PHP类,由NuSphere Corporation(http://dietrich.ganx4.com/nusoap/  )开发.NuSOAP的一个优势是不需要扩展库的支持,这种特性使得NuSoap可以用于所有的PHP环境,不受服务器安全设置的影响. 1. 首先,去 http://sourceforge.net/proj

JavaScript利用NativeScript调用原生API实现跨平台(移动端)

NativeScript NativeScript是一个运行环境,可以让你使用通用的JavaScript代码,打造原生的iOS,Android和Windows(即将推出)应用程序. NativeScript有很多很酷的功能,比如支持JavaScript对象双向绑定到原生UI组件,以及用CSS为原生应用程序写样式.但我最喜欢的功能是NativeScript可以让您直接访问本地平台的原生API. 注* 可以理解为NativeScript是一个JavaScript V8运行环境的命令转发代理,将Jav

TNS-12541问题

TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error TNS-00511: No listener Linux Error: 今天是2014-06-17,遇到一个非常奇怪的问题,可能之前测试修改监听的原因,导致监听启动后自动关闭,特此记录一下整个处理过程, 监听配置文件信息如下: [oracle@dg1 admin]$ more listener.ora # listener.ora Network Configurat

nusoap-用php的NuSoap 访问webservice遇到的问题。

问题描述 用php的NuSoap 访问webservice遇到的问题. 下了0.9.5版本的nusoap,访问java开发的webservice接口,结果一直都连不上,帮忙看一下是什么问题.谢谢.程序报错:Errorwsdl error: XML error parsing WSDL from http://192.168.102.126:8080/eos-default//eos-default/LoginManager on line 32: EntityRef: expecting ';'

SVC0901

问题描述 调用电信的接口发送短信时,总是报这个错误,这个ip地址不知道是怎么得来的,非常着急啊,哪位大牛看看问题所在啊,万分感谢!!!!=======<tns:RequestSOAPHeaderxmlns:tns="http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1"><tns:spId>20100323</tns:spId><tns:spPassword>D4B4B5BE71A7