如何查看oracle数据库网络状态

发布于 2024-11-14 03:27:53 字数 32 浏览 5 评论 0原文

谁能告诉我检查oracle数据库网络状态的方法吗?

Can anyone please tell me method for checking oracle data base network status?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

瀞厅☆埖开 2024-11-21 03:27:53

@Cyber​​nate 从命令提示符响应相当容易:

对于正在运行的数据库

C:\Users\user_name\tnsping db_name_thats_running
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 17-JUN-2011 10:17:25

Copyright (c) 1997, 2010, Oracle.  All rights reserved.

Used parameter files:
C:\oracle\ora11\network\admin\sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = ######)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = db_name_thats_running)))
OK (80 msec)

对于未运行的数据库

C:\Users\user_name\tnsping db_name_thats_not_running

TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 17-JUN-2011 10:17:15

Copyright (c) 1997, 2010, Oracle.  All rights reserved.

Used parameter files:
C:\oracle\ora11\network\admin\sqlnet.ora

Used HOSTNAME adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=TCP)(HOST=fe80::b1d0:b145:b4a0:9b76%11)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=####)(PORT=1521)))
TNS-12541: TNS:no listener

或者,您可以使用 sql*plus 或任何其他程序来尝试连接。

@Cybernate response is fairly easy from a command prompt:

For DB that is running

C:\Users\user_name\tnsping db_name_thats_running
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 17-JUN-2011 10:17:25

Copyright (c) 1997, 2010, Oracle.  All rights reserved.

Used parameter files:
C:\oracle\ora11\network\admin\sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = ######)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = db_name_thats_running)))
OK (80 msec)

For db that is not running

C:\Users\user_name\tnsping db_name_thats_not_running

TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 17-JUN-2011 10:17:15

Copyright (c) 1997, 2010, Oracle.  All rights reserved.

Used parameter files:
C:\oracle\ora11\network\admin\sqlnet.ora

Used HOSTNAME adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=TCP)(HOST=fe80::b1d0:b145:b4a0:9b76%11)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=####)(PORT=1521)))
TNS-12541: TNS:no listener

Alternatively you could just use sql*plus or any other program to try to connect.

泪之魂 2024-11-21 03:27:53

如果您有权访问正在运行侦听器和数据库的主机,则可以使用 tnslsnr 命令检查侦听器状态。

您可以查看以下示例:检查监听器和一般数据库状态

If you have access to host in which Listener and Database are running you can check listener status with tnslsnr command..

You can see an example of this: check listener and general database status

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文