应用程序错误怎么修复 Oracle10gR2ORA-3136错误解决
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文档说明如下:

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相关文章
- SQL Server 取消“强制实施密码策略” 错误:15128 解决方法
- 电脑发生io错误无法开机 案例:MySQL服务无法启动 系统发生1058错误
- 在晶体缺陷中属于点缺陷的是 Oracle:10.0.1.2.0中的程序缺陷
- 解析javascript系统错误:-1072896658的解决办法
- error code 503 冒险岛提示error code;-2147221000怎么解决?
- 651错误怎么解决win7 win7连接错误代码756 怎么办
- 苹果输入错误次数太多无法下载 Oracle连接数太多报错-ORA-12516错误
- 打开软件显示配置错误 SQL Server 2000个人版安装过程安装配置错误怎么解决
- ie控制台调试 Oracle10g控制台登录错误解决办法
- 如何安装oracle11g数据库 oracle11gbug:修改问题
爱学记

微信收款码
支付宝收款码