TNSPING只用于测试DB Listener是否可用,特别注意它不能检测数据库是否已经启动。
TNSPING位于ORACLE HOME/bin下,TNSPING只用于测试Listener是否可用(检查Socket是否可以连通),特别注意它不能检测数据库是否已经启动。
原理:类似于TCP/IP工具ping,tnsping会发送一个Message给DB Server Listener,DB listener会给出一个回复。
如果返回C:\Documents and Settings\ptian>tnsping az1mu213TNS Ping Utility for 32-bit Windows: Version 10.1.0.2.0 - Production on 02-7月 -2012 13:57:52Copyright (c) 1997, 2003, Oracle. All rights reserved.Used parameter files:D:\oracle\product\10.1.0\Db_1\NETWORK\ADMIN\sqlnet.oraUsed TNSNAMES adapter to resolve the aliasAttempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = rws60145rems.us.oracle.com)(PORT = 1582)) (CONNECT_DATA = (SID = az1mu213)))OK (790 msec)C:\Documents and Settings\ptian>
转载请注明出处:http://blog.csdn.net/pan_tian/article/details/7708232
======EOF======