author: skate
time: 2009/04/07
tnsping命令只是测试端口是否通,不检测服务名是否可以解析
[oracle@ticketb ~]$ tnsping 240
TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 06-APR-2009 22:55:39
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.240)(PORT = 1524))) (CONNECT_DATA = (SERVICE_NAME = dbticket)))
OK (0 msec)
[oracle@ticketb ~]$
tnsping命令只是测试端口是否通,不检测服务名是否可以解析
要检测服务名是否被解析,可以用
lsnrctl services
lsnrctl status
lsnrctl status lsnr_name
看里面是否有要连接的服务名
---end---