a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 114|回复: 1

[综合] Oracle综合辅导:Oracle10gR2ORA-3136错误解决

[复制链接]
发表于 2012-8-4 13:54:49 | 显示全部楼层 |阅读模式
最近一台新上线的Oracle10gR2数据库在警告日志文件中(alert.log)持续出现如下错误:
8 R& ?6 _- x( Z4 n( B$ K  J' n0 `9 eTue Jul 18 23:09:22 2006, k5 i2 u2 M  \0 \$ i( \
WARNING: inbound connection timed out (ORA-3136)
* d! Z6 m4 G3 [3 v7 \9 g! _& v; rTue Jul 18 23:09:23 2006& Z' g$ K2 a% }  P
WARNING: inbound connection timed out (ORA-3136)
$ V+ L5 D( ?; h% M/ s2 z" S/ W% `Tue Jul 18 23:09:25 2006# D; q/ z% `; d( H8 K6 X5 Y- Z$ q
WARNING: inbound connection timed out (ORA-3136)/ w8 C9 f% x9 x; \/ ]
Tue Jul 18 23:09:30 2006
; e, a* I! K# U+ g' H4 X3 o6 w2 OWARNING: inbound connection timed out (ORA-3136)
& H* q4 D# s; b  v4 K- `2 t6 g" C( ]6 YTue Jul 18 23:12:15 2006
0 \6 b  J9 m4 B& A8 P2 f' i" FWARNING: inbound connection timed out (ORA-3136)同时在sqlnet.log中记录了如下错误:" f9 S  i. K$ f$ d2 X5 m
Fatal NI connect error 12170.
6 m: t; K( U3 t4 n7 wVERSION INFORMATION:% b( {1 ^& u- ^) t7 s. E
TNS for Linux: Version 10.2.0.2.0 - Production
* |5 u8 r# w" d) g. u4 `1 m6 qOracle Bequeath NT Protocol Adapter for Linux: Version 10.2.0.2.0 - Production1 t* |# `4 o* ?
TCP/IP NT Protocol Adapter for Linux: Version 10.2.0.2.0 - Production2 r1 u8 N% J8 M$ ^: I( v( z
Time: 19-JUL-2006 11:25:262 c' N+ d3 u2 e+ |
Tracing not turned on.
; m: s( Y7 S* \+ [2 RTns error struct:6 [! q) {+ K! Z, B0 o
ns main err code: 12535" O( ~/ f5 i" V- ~% g9 V
TNS-12535: TNS:operation timed out+ }+ p% X* W( q4 C1 C( w$ J: O
ns secondary err code: 12606
9 N" o  U: U* \$ X, H; dnt main err code: 0
! j/ i7 |' r: }5 v, ]* U) E9 mnt secondary err code: 0
$ C* q7 N5 V- Znt OS err code: 07 e, q$ m  Z; Y. t, @
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.123)(PORT=58147))0 \5 o3 y% X8 v: h
这是和网络连接相关的一个错误,Metalink上给出了如下的解决方案:3 X/ g6 u$ `0 A0 N' n( G2 n# C. Y

5 v: [- i8 e$ N1.set INBOUND_CONNECT_TIMEOUT_ =0 in listener.ora
) [' g" x$ Q9 ]' V2. set SQLNET.INBOUND_CONNECT_TIMEOUT = 0 in sqlnet.ora of server.+ b7 V) p; m. H* H# s3 |& l* A
3. stop and start both listener and database.
4 \* m$ z1 {( ]4. Now try to connect to DB and observe the behaviour
回复

使用道具 举报

 楼主| 发表于 2012-8-4 13:54:50 | 显示全部楼层

Oracle综合辅导:Oracle10gR2ORA-3136错误解决

</p>这里重起数据库和Listener我认为是没有必要的,我们reload一下Listner应该就可以了.
. ?' K% c6 i( Q4 y[oracle@order admin]$ lsnrctl - i# G' |, _2 J; e6 V
LSNRCTL for Linux: Version 10.2.0.2.0 - Production on 19-JUL-2006 15:26:330 g1 B% ^( X7 l$ e. Z. u+ @
Copyright (c) 1991, 2005, Oracle. All rights reserved.3 U  w' V6 D9 O( _  e8 T, H( C
Welcome to LSNRCTL, type "help" for information.: u" H4 m4 ?3 n: j
LSNRCTL> reload ! c. Q* V- ^' l& I
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.9.11)(PORT=1521)))
" j" ?' f& Y$ v" m% dThe command completed successfully. C2 h2 N$ n: ?  l4 v
LSNRCTL> services) f6 P$ F. u4 X; p1 {$ ]
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.9.11)(PORT=1521)))
7 e  r: ?/ p( l" ?8 {$ a/ y! r: tServices Summary...! z( ?& e( C' k2 M$ q2 \- R/ j% l
Service "order" has 2 instance(s).- ]% S9 V' w! i# f& G* _
Instance "order", status UNKNOWN, has 1 handler(s) for this service...! O$ W, T/ C2 e$ w! X. `
Handler(s):
% [/ }. z+ b* V, p"DEDICATED" established:0 refused:0
6 t( t5 w/ i2 G5 W9 K) R( b2 GLOCAL SERVER$ E( ^$ r  D3 t
Instance "order", status READY, has 1 handler(s) for this service...8 @) z/ n( }$ |1 [4 S; c7 S3 s
Handler(s):$ s5 l; n3 j: B0 b% t
"DEDICATED" established:0 refused:0 state:ready
3 T5 d# ?% }9 p: H( aLOCAL SERVER
# Z2 f- S$ u, ]. J  ~! }The command completed successfully * h) u, {+ \+ b+ L8 O) A% m
LSNRCTL> show inbound_connect_timeout4 X+ T. W1 M9 O) g4 [0 p" T
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.9.11)(PORT=1521))): O1 s. L' |  d) X
LISTENER parameter "inbound_connect_timeout" set to 0
6 S0 H1 k, I9 @  {$ NThe command completed successfully  t) I+ m6 X( P! h4 G/ ^+ b
LSNRCTL> exit
" ~3 G: [3 I* r; Q$ A$ D修改之后,观察了一段时间,目前正常.3 j+ O6 a; O& G. G( G/ b
关于SQLNET.INBOUND_CONNECT_TIMEOUT参数,Oracle建议修改该参数,以避免denial-of-service攻击.
) @- f: f6 X7 B: V' P: i引用一段Oracle文档说明如下:
0 C6 i# D) t  ?* R6 n$ RSQLNET.INBOUND_CONNECT_TIMEOUT
- p/ M7 a; s) WPurpose3 C; }2 E8 Q; n, ?: J% d* v
Use 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.5 Z2 F# R, F/ I
If the client fails to establish a connection and complete 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-12170: TNS:Connect timeout occurred error message to the sqlnet.log file. The client receives either an ORA-12547: TNS:lost contact or an ORA-12637: Packet receive failed error message.
4 g- [' ^% y3 `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.
* m' T: m8 v2 j. R" ?To protect both the database server and the listener, Oracle Corporation recommends setting this parameter in combination with the INBOUND_CONNECT_TIMEOUT_listener_name parameter in the listener.ora file. When specifying values for these parameters, consider the following recommendations:
+ ^+ o9 V$ ]# T. C, ]+ I$ `Set both parameters to an initial low value. * `, H0 n" D0 f
Set the value of the INBOUND_CONNECT_TIMEOUT_listener_name parameter to a lower value than the SQLNET.INBOUND_CONNECT_TIMEOUT parameter. 1 ^* t  p2 _6 ]) v1 Y5 c0 L
For example, you can set INBOUND_CONNECT_TIMEOUT_listener_name to 2 seconds and INBOUND_CONNECT_TIMEOUT parameter to 3 seconds. If clients are unable to complete connections within the specified time due to system or network delays that are normal for the particular environment, then increment the time as needed.
* U5 C5 ]. i* m1 A! BSee Also:
7 e: B, J* W* T* `$ m  {) AOracle9i Net Services Administrator's Guide for information about configuring these parameters & i4 e- j) |/ H8 a; b
Default, r3 h2 P& M) t4 L
None
* T) e  x4 H8 b( A3 hExample
+ M/ G' X/ f- z: k$ \0 _- }0 _SQLNET.INBOUND_CONNECT_TIMEOUT=3
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-5-14 09:30 , Processed in 0.193582 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表