急救:部分客户端PL/SQL登陆数据库服务器报:ora-03135;ORA-12543: TNS: 无法连接目

[复制链接]
查看11 | 回复7 | 2012-10-9 18:08:15 | 显示全部楼层 |阅读模式
本帖最后由 yuanjqiu 于 2012-9-26 12:21 编辑
主题:部分客户端PL/SQL登陆数据库服务器报:ora-03135;ORA-12543: TNS: 无法连接目标主机;ORA-12543
修改listener的inbound_connect_timeout参数的方法 环境:
aix 5.3 +oracle10g R2 10.2.0.3.0 +rac(主、从)
现象:
1、突然出现部分ip(192.168.10.151),不能登录oracle,部分ip(192.168.10.50)可登录oracle,不能登录的clients,改成可登录的ip,又可登录;改回原来的IP,还是不能登录oracle。
2、resource_limit=false(default),改为:resource_limit=true,仍不行。
3、添加sqlnet.ora文件,并添加内容:
sqlnet.expire_time=20
还是不行。
4、查server是否ip及applicatin限制,没有做ip、application限制。
5、server端对oracle instance重启,故障仍在。
6、僵尸的session,也没有。
7、OS serverSID for oracle kill 后,还是不行。
8、tnsping SID均通。tnsping sid 100 均显示ok
9、sessions_highwater=34, 4cpu current_session=27
采用盖老师提供的如下办法方法一:$ lsnrctl LSNRCTL for IBM/AIX RISC System/6000: Version10.2.0.3.0 - Production on 29-OCT-2007 10:00:57 Copyright (c) 1991, 2006, Oracle.All rights reserved. Welcome to LSNRCTL, type "help" forinformation. LSNRCTL> helpThe following operations are availableAn asterisk (*) denotes a modifier or extendedcommand: start
stop
status
services version
reload
save_configtrace
spawn
change_passwordquit
exit
set*
show*
LSNRCTL> showThe following operations are available after showAn asterisk (*) denotes a modifier or extendedcommand: rawmode
displaymode
rules
trc_file
trc_directory
trc_level
log_file
log_directory
log_status
current_listener inbound_connect_timeout startup_waittime snmp_visible
save_config_on_stopdynamic_registration
LSNRCTL> show inbound_connect_timeoutConnecting to(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.125.1)(PORT=1521))LISTENER parameter "inbound_connect_timeout"set to 60The command completed successfully LSNRCTL> set inbound_connect_timeout 0Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.125.1)(PORT=1521))LISTENER parameter "inbound_connect_timeout"set to 0The command completed successfully LSNRCTL> show inbound_connect_timeoutConnecting to(ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))LISTENER parameter "inbound_connect_timeout"set to 0The command completed successfully LSNRCTL> set save_config_on_stop on #表示修改参数永久生效,否则只是临时生效,下次重启监听又还原为原来的值了 LSNRCTL> exit方法二:修改listener.ora文件,加入:INBOUND_CONNECT_TIMEOUT_LISTENER_NAME=0
换IP还是不能成功登录数据库。郁闷!看来他的场景与我这情况不一样。

有人建议做如下测试
telnet ip 1521弹出一个黑白的空窗口。
telnet ip:1521提示23关闭。

网络连接信息
OS级:
AIX Version 5
(C) Copyrights by IBM and by others 1982,2006.
login: /dev/pts/1: 3004-038 Login timed outafter 60 seconds.
数据库级:alter_orcl.log内容为:
1、WARNING: inbound connection timed out (ORA-3136)2、Mon Sep 24 18:48:07 2012
Process OS id : 827642 alive after kill
Errors in file /oracle/admin/ybsb/udump/test_ora_434266.trc其中/oracle/admin/ybsb/udump/test_ora_434266.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
ORACLE_HOME = /oracle/product/10
System name: AIX
Node name: orcl1
Release: 3
Version: 5
Machine: 00CE75DE4C00
Instance name: orcl
Redo thread mounted by this instance: 1
Oracle process number: 27
Unix process pid: 434266, image: [url=mailto

racle@orcl]oracle@orcl[/url] (TNS V1-V3)*** 2012-09-24 18:48:02.631
*** SERVICE NAME

SYS$USERS) 2012-09-24 18:48:02.621
*** SESSION ID

112.2370) 2012-09-24 18:48:02.621
----------------------------------------
SO: 70000006f2f5fa0, type: 2, owner: 0, flag: INIT/-/-/0x00
(process) Oracle pid=13, calls cur/top: 0/70000006f439c48, flag: (0) -

int error: 1089, call error: 0, sess error: 0, txn error 0
(post info) last post received: 1089 8 12

last post received-location: ksusig

last process to post me: 70000006f2fcde0 113 0

last post sent: 0 0 24

last post sent-location: ksasnd

last process posted by me: 70000006f2f2880 1 6
(latch info) wait_event=0 bits=0
Process Group: DEFAULT, pseudo proc: 70000006f33a7a8
O/S info: user: oracle, term: UNKNOWN, ospid: 507908
OSD pid info: Unix process pid: 507908, image: [url=mailto

racleybsb@orcl]oracleybsb@orcl[/url]
Short stack dump: unable to dump stack due to error 72
Dump of memory from 0x070000006F2DE2F8 to 0x070000006F2DE500
70000006F2DE2F0
00000004 00000000
[........]
70000006F2DE300 07000000 6F93C0F0 00000010 0003139D[....o...........]
70000006F2DE310 07000000 6F439C48 00000003 0003139D[....oC.H........]
70000006F2DE320 07000000 6F5BEB08 0000000B 0003139D[....o[..........]
70000006F2DE330 07000000 6F3E2390 00000004 00031291[....o>#.........]
70000006F2DE340 00000000 00000000 00000000 00000000[................]
Repeat 27 times
----------------------------------------
SO: 70000006f2f6f60, type: 2, owner: 0, flag: INIT/-/-/0x00
(process) Oracle pid=15, calls cur/top: 0/70000006f43afb8, flag: (0) -

int error: 1089, call error: 0, sess error: 0, txn error 0
(post info) last post received: 1089 8 12

last post received-location: ksusig

last process to post me: 70000006f2fcde0 113 0

last post sent: 0 0 0

last post sent-location: No post

last process posted by me: none
(latch info) wait_event=0 bits=0
Process Group: DEFAULT, pseudo proc: 70000006f33a7a8
O/S info: user: oracle, term: UNKNOWN, ospid: 843828
OSD pid info: Unix process pid: 843828, image: [url=mailto

racleybsb@orcl6]oracleybsb@orcl[/url]
Short stack dump: unable to dump stack due to error 72
Dump of memory from 0x070000006F2DE708 to 0x070000006F2DE910
70000006F2DE700
00000004 00000000
[........]
70000006F2DE710 07000000 6F93C7D8 00000010 0003139D[....o...........]
70000006F2DE720 07000000 6F43AFB8 00000003 0003139D[....oC..........]
70000006F2DE730 07000000 6F5C0D68 0000000B 0003139D[....o\.h........]
70000006F2DE740 07000000 6F3A80A0 00000004 00031291[....o:..........]
70000006F2DE750 00000000 00000000 00000000 00000000[................]
Repeat 27 times
----------------------------------------
SO: 70000006f2f8700, type: 2, owner: 0, flag: INIT/-/-/0x00
(process) Oracle pid=18, calls cur/top: 0/70000006f43b278, flag: (0) -

int error: 1089, call error: 0, sess error: 0, txn error 0
(post info) last post received: 1089 8 123、TNS-12535: TNS

peration timed out

回复

使用道具 举报

千问 | 2012-10-9 18:08:15 | 显示全部楼层
本帖最后由 yuanjqiu 于 2012-9-26 12:11 编辑
原服务器之前一直正常。
服务器只有listener.ora与tnsnames.ora,
其中tnsnames.ora内容为:
extrpro_connection_data=
(description=
(address_list=
(address=(protol=ipc)(key=extproc0))
)
(connect_data=
(sid=plsextproc)
(presentation=RO)
)
添加上本机实例,仍然不行。
并添加sqlnet.ora相应内容。
sqlnet.log内容为:
Fatal NI connect error 12170.
VERSION INFORMATION:
TNS for IBM/AIX RISC System/6000: Version 10.2.0.3.0 - Production
TCP/IP NT Protocol Adapter for IBM/AIX RISC System/6000: Version 10.2.0.3.0 - Production
Oracle Bequeath NT Protocol Adapter for IBM/AIX RISC System/6000: Version 10.2.0.3.0 - Production
Time: 24-SEP-2012 23:57:29
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS

peration timed out
ns secondary err code: 12560
nt main err code: 505
TNS-00505: Operation timed out
nt secondary err code: 78
nt OS err code: 0
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.212.135)(PORT=13250))

***********************************************************************
Fatal NI connect error 12170.
VERSION INFORMATION:
TNS for IBM/AIX RISC System/6000: Version 10.2.0.3.0 - Production
TCP/IP NT Protocol Adapter for IBM/AIX RISC System/6000: Version 10.2.0.3.0 - Production
Oracle Bequeath NT Protocol Adapter for IBM/AIX RISC System/6000: Version 10.2.0.3.0 - Production
Time: 25-SEP-2012 00:06:32
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS

peration timed out
ns secondary err code: 12560
nt main err code: 505
TNS-00505: Operation timed out
nt secondary err code: 78
nt OS err code: 0
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.165.212.135)(PORT=12306))

回复

使用道具 举报

千问 | 2012-10-9 18:08:15 | 显示全部楼层
yuanjqiu 发表于 2012-9-26 12:09
原服务器之前一直正常。
服务器只有listener.ora与tnsnames.ora,
其中tnsnames.ora内容为:

OS IP限制情况:
# lsfilt -v4
Beginning of IPv4 filter rules.
Rule 1:
Rule action : permit
Source Address: 0.0.0.0
Source Mask : 0.0.0.0
Destination Address : 0.0.0.0
Destination Mask: 0.0.0.0
Source Routing: no
Protocol
: udp
Source Port : eq4001
Destination Port: eq4001
Scope
: both
Direction : both
Logging control : no
Fragment control: all packets
Tunnel ID number: 0
Interface : all
Auto-Generated: yes
Expiration Time : 0
Description : Default Rule
Rule 2:
*** Dynamic filter placement rule for IKE tunnels ***
Logging control : no
Rule 0:
Rule action : permit
Source Address: 0.0.0.0
Source Mask : 0.0.0.0
Destination Address : 0.0.0.0
Destination Mask: 0.0.0.0
Source Routing: yes
Protocol
: all
Source Port : any 0
Destination Port: any 0
Scope
: both
Direction : both
Logging control : no
Fragment control: all packets
Tunnel ID number: 0
Interface : all
Auto-Generated: no
Expiration Time : 0
Description : Default Rule
End of IPv4 filter rules.
#
# lsdev -Cc ipsec
# lsdev
L2cache0 Available
L2 Cache
aio0 Available
Asynchronous I/O (Legacy)
cd0Available 05-08-00IDE DVD-ROM Drive
dlc8023Available
IEEE Ethernet (802.3) Data Link Control
dlcether Available
Standard Ethernet Data Link Control
dlcfddiAvailable
FDDI Data Link Control
dlcqllcAvailable
X.25 QLLC Data Link Control
dlcsdlcAvailable
SDLC Data Link Control
dlctoken Available
Token-Ring Data Link Control
en0Available 03-08 Standard Ethernet Network Interface
en1Defined 03-09 Standard Ethernet Network Interface
ent0 Available 03-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent1 Available 03-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
et0Available 03-08 IEEE 802.3 Ethernet Network Interface
et1Defined 03-09 IEEE 802.3 Ethernet Network Interface
fwdump Defined
Logical volume
hd1Defined
Logical volume
hd2Defined
Logical volume
hd3Defined
Logical volume
hd4Defined
Logical volume
hd5Defined
Logical volume
hd6Defined
Logical volume
hd8Defined
Logical volume
hd10optDefined
Logical volume
hd9var Defined
Logical volume
hdisk0 Available 06-08-01-5,016 Bit LVD SCSI Disk Drive
hdisk1 Available 06-08-01-8,016 Bit LVD SCSI Disk Drive
ide0 Available 05-08 ATA/IDE Controller Device
inet0Available
Internet Network Extension
iocp0Defined
I/O Completion Ports
iscsi0 Available
iSCSI Protocol Device
kbd0 Available 1.1.1 USB keyboard
lai0 Available 08-00 GXT135P Graphics Adapter
lft0 Available
Low Function Terminal Subsystem
lo0Available
Loopback Network Interface
loglv00Defined
Logical volume
lv00 Defined
Logical volume
lvdd Available
LVM Device Driver
mem0 Available
Memory
mouse0 Available 0.1 USB mouse
nampd0 Available
N/A
nsmb0Available
N/A
oracle Defined
Logical volume
pci0 Available
PCI Bus
pci1 Available
PCI Bus
pci2 Available
PCI Bus
pci3 Available 00-10 PCI Bus
pci4 Available 00-12 PCI Bus
pci5 Available 00-13 PCI Bus
pci6 Available 00-14 PCI Bus
pci7 Available 00-16 PCI Bus
pci8 Available 07-08 PCI Bus
posix_aio0 Defined
Posix Asynchronous I/O
proc0Available 00-00 Processor
proc2Available 00-02 Processor
pty0 Available
Asynchronous Pseudo-Terminal
rcm0 Available
Rendering Context Manager Subsystem
rootvg Defined
Volume group
scsi0Available 06-08-00Ultra320 SCSI RAID Adapter Physical bus
scsi1Available 06-08-01Ultra320 SCSI RAID Adapter Physical bus
ses0 Available 06-08-01-15,0 SCSI Enclosure Services Device
sisioa0Available 06-08 PCI-X Dual Channel U320 SCSI RAID Adapter
sisraid0 Available 06-08-ffUltra320 SCSI RAID Adapter Logical bus
sys0 Available
System Object
sysplanar0 Available
System Planar
usb0 Available
USB System Software
usbhc0 Available 04-08 USB Host Controller (33103500)
usbhc1 Available 04-09 USB Host Controller (33103500)
vio0 Available
Virtual I/O Bus
vsa0 Available
LPAR Virtual Serial Adapter
vsa1 Available
LPAR Virtual Serial Adapter
vty0 Available
Asynchronous Terminal
vty1 Available
Asynchronous Terminal
#


回复

使用道具 举报

千问 | 2012-10-9 18:08:15 | 显示全部楼层
也参考了:
1、http://www.woxihuan.com/21879153/1338520929081354.shtml
2、http://www.itpub.net/forum.php?mod=viewthread&tid=1620597
3、http://stackoverflow.com/questio ... exception-ora-12170
4、http://stackoverflow.com/questio ... -service-name-error
办法,均不成功。

回复

使用道具 举报

千问 | 2012-10-9 18:08:15 | 显示全部楼层
防火墙也取消了。还是不行。我该咱办?

回复

使用道具 举报

千问 | 2012-10-9 18:08:15 | 显示全部楼层
重建数据库实例,仍然不行。无语,只有重新安装算球了。无解。
回复

使用道具 举报

千问 | 2012-10-9 18:08:15 | 显示全部楼层
我感觉这个问题要从下面两块着手考虑
①防火墙 确定防火墙是否真的已关闭:/etc/init.d/iptables status
②1521端口 如果防火墙开着要将1521端口注册进去,要不就关掉防火墙
回复

使用道具 举报

千问 | 2012-10-9 18:08:15 | 显示全部楼层
请问有人遇到过吗。。。。有木有解决办法!
我也是有几台机器怎么都连不上库。。。
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行