Home > Database > Oracle > body text

How to query the port number in Oracle

WBOY
Release: 2022-05-13 10:10:11
Original
14618 people have browsed it

在Oracle中,可利用lsnrctl命令查询端口号,该命令是Oracle的监听命令;在启动、关闭或重启oracle监听器之前可使用该命令检查oracle监听器的状态,语法为“lsnrctl status”,结果PORT后的内容就是端口号。

How to query the port number in Oracle

本教程操作环境:Windows7系统、Oracle 11g版、Dell G3电脑。

Oracle怎么查询端口号

lsnrctl命令

在启动、关闭或者重启oracle监听器之前确保使用lsnrctl status命令检查oracle监听器的状态

  • 1、$lsnrctl status:检查当前监听器的状态

  • 2、$lsnrctl start [listener-name] 启动所有的监听器,可以指定名字来启动特定的监听器

  • 3、$lsnrctl stop [listener-name]  关闭所有的监听器,可以指定名字来关闭特定的监听器

  • 4、$lsnrctl reload  重启监听器,此命令可以代替lsnrctl stop,lsnrctl start

  • 5、lsnrctl hep      可以显示所有可用的监听器命令

1、按住Win+R键,弹出运行对话框。

How to query the port number in Oracle

2、敲入cmd命令,点击确定。

How to query the port number in Oracle

3、弹出的窗口中,输入‘lsnrctl status’命令,并点击Enter键。

How to query the port number in Oracle

4、找到窗口中,以下文字‘监听端点概要...

  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
Copy after login

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))’,即可发现端口号,本机oracle端口号为1521。

How to query the port number in Oracle

推荐教程:《Oracle视频教程

The above is the detailed content of How to query the port number in Oracle. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!