a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 380|回复: 1

[考试辅导] Oracle认证辅导:Oracle10gR2ORA-3136错误解决

[复制链接]
发表于 2012-8-4 14:06:19 | 显示全部楼层 |阅读模式
 最近一台新上线的Oracle10gR2数据库在警告日志文件中(alert.log)持续出现如下错误:Tue Jul 18 23:09:22 2006
6 P: L5 [8 M  SWARNING: inbound connection timed out (ORA-3136)
8 A, r( B3 |) M" ]# xTue Jul 18 23:09:23 2006, L" [0 s0 U/ B% U
WARNING: inbound connection timed out (ORA-3136)
5 Z- c4 \% L; a0 z# y5 LTue Jul 18 23:09:25 2006, O! e  K% B, y9 y
WARNING: inbound connection timed out (ORA-3136)
0 ]( }/ r) K- [+ N: }Tue Jul 18 23:09:30 2006
! u/ o5 }9 E% V7 Q: U. m5 R* P& @9 ^WARNING: inbound connection timed out (ORA-3136)
8 w2 P5 z7 R% b  ]) TTue Jul 18 23:12:15 2006# ~* Z# }3 V; M4 `3 r1 p  u
WARNING: inbound connection timed out (ORA-3136)
) m& s& W$ e' H0 ]$ v+ H$ n  同时在sqlnet.log中记录了如下错误:# S$ c! _1 Y2 \6 |, x- @8 |, q
Fatal NI connect error 12170.1 f3 B* b/ Y( s( }) Y# a
VERSION INFORMATION:+ f8 v3 J2 G" z7 k
TNS for Linux: Version 10.2.0.2.0 - Production6 \6 t3 S& J8 @( R; x; B: J3 ?
Oracle Bequeath NT Protocol Adapter for Linux: Version 10.2.0.2.0 - Production
7 l% G% R8 }  jTCP/IP NT Protocol Adapter for Linux: Version 10.2.0.2.0 - Production
. c$ Y( y! u9 b, ?" }) r+ @( iTime: 19-JUL-2006 11:25:26
9 Z: v+ A, n! t8 E) n+ YTracing not turned on.  M& k& S5 E' Z* i! x
Tns error struct:
+ n: m; `+ Z7 X0 T4 h4 Uns main err code: 12535( E: |  f' V) k6 T: k& u' P
TNS-12535: TNS:operation timed out1 L- Q) |3 C( i7 m. |9 t; ?  l
ns secondary err code: 12606. J1 s5 N3 j  E) \3 B# X9 X6 k
nt main err code: 0
+ k  y/ T4 _# N! d, Ont secondary err code: 0
7 `4 G. Y) ]6 D3 Z; H, cnt OS err code: 0
; b8 P: O0 S. \7 S3 V% V9 G/ Z7 EClient address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.123)(PORT=58147))9 n1 f& a" u# U" P' h
: ^: H. ^6 C- r* O2 v  T
  这是和网络连接相关的一个错误,Metalink上给出了如下的解决方案:
! f7 |0 s. E* H* S5 Z  1.set INBOUND_CONNECT_TIMEOUT_ =0 in listener.ora" t* p, \* U' z, C; W- b
  2. set SQLNET.INBOUND_CONNECT_TIMEOUT = 0 in sqlnet.ora of server.1 T; i9 P5 H* f9 G1 R
  3. stop and start both listener and database.6 \- m% N7 ^( @" f' c. a1 Q, N# H
  4. Now try to connect to DB and observe the behaviour
4 `5 i3 |1 e# z  这里重起数据库和Listener我认为是没有必要的,我们reload一下Listner应该就可以了.
8 z' t  ~) Z0 q9 K0 U[oracle@order admin]$ lsnrctl
" h: N% f6 g. g8 wLSNRCTL for Linux: Version 10.2.0.2.0 - Production on 19-JUL-2006 15:26:33' u5 g+ L! Z7 q9 C9 b: z
Copyright (c) 1991, 2005, Oracle. All rights reserved.
8 w" p; l0 ?' k1 i' \! U, j2 XWelcome to LSNRCTL, type "help" for information.0 h9 e5 i- h: }7 c
LSNRCTL> reload
+ |: X3 C9 }0 d! h% n/ DConnecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.9.11)(PORT=1521)))( y. X" j- [( ^* v* [/ y1 K
The command completed successfully
% _" F* U/ w. v7 U' y) t/ E; }LSNRCTL> services
; R0 j5 t- F' J7 Z5 M& H1 x7 gConnecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.9.11)(PORT=1521)))
1 F, m6 O1 s& @) @Services Summary...' Z3 e7 o3 W) y& G
Service "order" has 2 instance(s)./ T4 |6 R# Z# t. z- f2 B& e
Instance "order", status UNKNOWN, has 1 handler(s) for this service...2 C; g+ F( I, j2 s
Handler(s):0 _: V, |9 l. `8 C
"DEDICATED" established:0 refused:0
  S7 `+ G1 m2 H; m! g" L4 VLOCAL SERVER
' M. q0 H- Y( x$ c  lInstance "order", status READY, has 1 handler(s) for this service...
2 _; }5 |  w; ?+ W+ I5 `Handler(s):
9 [1 D& Y  M/ X  ]8 v# B3 p8 Q  D. F"DEDICATED" established:0 refused:0 state:ready7 P6 ~2 T7 L) |$ T$ D
LOCAL SERVER+ V7 U7 A) q0 z2 c. Y* c
The command completed successfully 4 _9 y0 [0 n* L: Q
LSNRCTL> show inbound_connect_timeout
. X9 F: C! d  G# C, aConnecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.9.11)(PORT=1521)))' f8 `% V4 b# l, o7 F  U: j6 @
LISTENER parameter "inbound_connect_timeout" set to 0
+ f( Y* K: c) S; D3 ?+ I) T+ MThe command completed successfully. L! ]# K+ {  b7 q3 v4 v
LSNRCTL> exit" ]/ R. H$ Q. E
) R7 e! s. {; C( r8 N
* q' u! Q: X; R. q$ P
  修改之后,观察了一段时间,目前正常.
6 [! f1 S9 D- A7 P/ ]- Y; ^! F6 E  关于SQLNET.INBOUND_CONNECT_TIMEOUT参数,Oracle建议修改该参数,以避免denial-of-service攻击.0 @: I2 F* ~% h. d8 p, E3 L
  引用一段Oracle文档说明如下:) z. ^+ a% H$ i  b/ z/ }
  SQLNET.INBOUND_CONNECT_TIMEOUT
3 D+ m  e$ X* h" c) P% s* ]  Purpose) k8 f0 q, r7 ~" z# ?
  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.
& o. W" X6 ]) c& S- N% J" I+ b  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.8 b6 H1 `; h: J2 D
  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.7 m6 d! l9 l; D) K2 `; T3 `' v
  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:
; A, I* M0 J. P1 J8 S  Set both parameters to an initial low value.( v+ \/ e& H6 x
  Set the value of the INBOUND_CONNECT_TIMEOUT_listener_name parameter to a lower value than the SQLNET.INBOUND_CONNECT_TIMEOUT parameter.
回复

使用道具 举报

 楼主| 发表于 2012-8-4 14:06:20 | 显示全部楼层

Oracle认证辅导:Oracle10gR2ORA-3136错误解决

  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.
( m6 Z& i: ^( u  g! Q  See Also:
$ d) G- S# l* m% [- p6 l  |  Oracle9i Net Services Administrator's Guide for information about configuring these parameters
8 z+ W! h& n3 f' P+ \1 S1 t/ h  Default
: Z' W. l2 f) Q  J  None8 P0 w4 a) |% ?; N
  Example
2 v2 {# G8 B2 c* [1 m  SQLNET.INBOUND_CONNECT_TIMEOUT=3</p>
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-25 14:28 , Processed in 0.231181 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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