您现在的位置是:首页 >

应用程序错误怎么修复 Oracle10gR2ORA-3136错误解决

火烧 2022-01-12 14:03:57 1069
Oracle10gR2ORA-3136错误解决   最近一台新上线的Oracle gR 数据库在警告日志文件中 alert log 持续出现如下错误:   Tue Jul : : WARNING: i

Oracle10gR2ORA-3136错误解决  

  最近一台新上线的Oracle gR 数据库在警告日志文件中(alert log)持续出现如下错误:

   Tue Jul : : WARNING: inbound connection timed out (ORA )Tue Jul : : WARNING: inbound connection timed out (ORA )Tue Jul : : WARNING: inbound connection timed out (ORA )Tue Jul : : WARNING: inbound connection timed out (ORA )Tue Jul : : WARNING: inbound connection timed out (ORA )

  同时在sqlnet log中记录了如下错误:

  

  Fatal NI connect error

  VERSION INFORMATION:TNS for Linux: Version ProductionOracle Bequeath NT Protocol Adapter for Linux: Version ProductionTCP/IP NT Protocol Adapter for Linux: Version ProductionTime: JUL : : Tracing not turned on Tns error struct:ns main err code: TNS : TNS:operation timed outns secondary err code: nt main err code: nt secondary err code: nt OS err code: Client address: (ADDRESS=(PROTOCOL=tcp)(HOST= )(PORT= ))

  这是和网络连接相关的一个错误 Metalink上给出了如下的解决方案:

   set INBOUND_CONNECT_TIMEOUT_ = in listener ora set SQLNET INBOUND_CONNECT_TIMEOUT = in sqlnet ora of server stop and start both listener and database Now try to connect to DB and observe the behaviour

  这里重起数据库和Listener我认为是没有必要的 我们reload一下Listner应该就可以了

  

  [oracle@order admin]$ lsnrctl

  LSNRCTL for Linux: Version Production on JUL : :

  Copyright (c) Oracle All rights reserved

  Wele to LSNRCTL type help for information

  LSNRCTL> reload Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST= )(PORT= )))The mand pleted successfullyLSNRCTL> servicesConnecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST= )(PORT= )))Services Summary Service order has instance(s) Instance order status UNKNOWN has handler(s) for this service Handler(s): DEDICATED established: refused: LOCAL SERVERInstance order status READY has handler(s) for this service Handler(s): DEDICATED established: refused: state:readyLOCAL SERVERThe mand pleted successfully

  LSNRCTL> show inbound_connect_timeoutConnecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST= )(PORT= )))LISTENER parameter inbound_connect_timeout set to The mand pleted successfullyLSNRCTL> exit

  修改之后 观察了一段时间 目前正常

  关于SQLNET INBOUND_CONNECT_TIMEOUT参数 Oracle建议修改该参数 以避免denial of service攻击

  引用一段Oracle文档说明如下:

应用程序错误怎么修复 Oracle10gR2ORA-3136错误解决

  SQLNET INBOUND_CONNECT_TIMEOUTPurposeUse the SQLNET INBOUND_CONNECT_TIMEOUT parameter to specify the time in seconds for a client to connect with the database server and provide the necessary authentication information

  If the client fails to establish a connection and plete authentication in the time specified then the database server terminates the connection In addition the database server logs the IP address of the client and an ORA : TNS:Connect timeout occurred error message to the sqlnet log file The client receives either an ORA : TNS:lost contact or an ORA : Packet receive failed error message

  Without this parameter a client connection to the database server can stay open indefinitely without authentication Connections without authentication can introduce possible denial of service attacks whereby malicious clients attempt to flood database servers with connect requests that consume resources

  To protect both the database server and the listener Oracle Corporation remends setting this parameter in bination with the INBOUND_CONNECT_TIMEOUT_listener_name parameter in the listener ora file When specifying values for these parameters consider the following remendations:

  Set both parameters to an initial low value Set the value of the INBOUND_CONNECT_TIMEOUT_listener_name parameter to a lower value than the SQLNET INBOUND_CONNECT_TIMEOUT parameter For example you can set INBOUND_CONNECT_TIMEOUT_listener_name to seconds and INBOUND_CONNECT_TIMEOUT parameter to seconds If clients are unable to plete connections within the specified time due to system or neork delays that are normal for the particular environment then increment the time as needed

  See Also: Oracle i Net Services Administrator s Guide for information about configuring these parameters

  DefaultNone

lishixinzhi/Article/program/Oracle/201311/17601  
永远跟党走
  • 如果你觉得本站很棒,可以通过扫码支付打赏哦!

    • 微信收款码
    • 支付宝收款码