QUOTE:
原帖由
askgyliu 于 2008-7-4 09:13 发表
借用Oracle tnsping来看看DB2是不是有开。下面例子中50000是正确的,50005是不正确的。
C:>tnsping mydb2
TNS Ping Utility for 32-bit Windows: Version 9.2.0.5.0 - Production on 04-JUL-20
08 09:04:37
Copyright (c) 1997 Oracle Corporation. All rights reserved.
Used parameter files:
C

racleora92
etworkadminsqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST=) (PORT=50005))) (CONNECT_DATA =(SID = DB2)))
TNS-12541: TNS:no listener
C:>tnsping mydb2
TNS Ping Utility for 32-bit Windows: Version 9.2.0.5.0 - Production on 04-JUL-20
08 09:04:55
Copyright (c) 1997 Oracle Corporation. All rights reserved.
Used parameter files:
C

racleora92
etworkadminsqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST=) (PORT=50000))) (CONNECT_DATA =(SID = DB2)))
TNS-12537: TNS:connection closed
C:>