tnsping命令格式:

tnsping <service_name> n

n的意义是可以让tnsping ping多次

例:

c:\Documents and Settings\Tony>tnsping orcl

tnsping命令解析

 

Oracle Net 工具(命令)tnsping,是一个OSI会话层的工具,它用来:

1)验证名字解析(name resolution,当然是oracle自己的网络服务名)

2)远程的listener是否启动

 

这里做一个测试的例子:

1)首先关闭远程监听服务:

c:\Documents and Settings\Tony>lsnrctl stop

tnsping命令解析


2)tnsping oracle远端服务名

tnsping命令解析

因为远端监听服务被人为停止,因此无法ping通

3)启动服务端监听服务

c:\Documents and Settings\Tony>lsnrctl start

tnsping命令解析

4)使用tnsping再次ping orcl服务

c:\Documents and Settings\Tony>tnsping orcl

tnsping命令解析

成功!

tnsping可以测试与远端数据库服务连接是否正常.


转自:http://www.cnblogs.com/siqing99/archive/2011/05/17/2049382.html

 
数据库

tnsping命令格式:

tnsping <service_name> n

n的意义是可以让tnsping ping多次

例:

c:\Documents and Settings\Tony>tnsping orcl

tnsping命令解析

 

Oracle Net 工具(命令)tnsping,是一个OSI会话层的工具,它用来:

1)验证名字解析(name resolution,当然是oracle自己的网络服务名)

2)远程的listener是否启动

 

这里做一个测试的例子:

1)首先关闭远程监听服务:

c:\Documents and Settings\Tony>lsnrctl stop

tnsping命令解析


2)tnsping oracle远端服务名

tnsping命令解析

因为远端监听服务被人为停止,因此无法ping通

3)启动服务端监听服务

c:\Documents and Settings\Tony>lsnrctl start

tnsping命令解析

4)使用tnsping再次ping orcl服务

c:\Documents and Settings\Tony>tnsping orcl

tnsping命令解析

成功!

tnsping可以测试与远端数据库服务连接是否正常.


转自:http://www.cnblogs.com/siqing99/archive/2011/05/17/2049382.html

相关文章:

  • 2022-01-08
  • 2021-06-06
  • 2021-07-24
  • 2021-05-08
  • 2021-07-02
  • 2021-11-25
  • 2021-07-05
  • 2022-02-04
猜你喜欢
  • 2021-04-29
  • 2022-12-23
  • 2021-09-26
  • 2022-12-23
  • 2021-06-26
相关资源
相似解决方案