java 如何在linux中找到oracle侦听器端口
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17675565/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how to find oracle listener port in linux
提问by Gokul Kulkarni
I have Oracle 11.2.0 installed in my Linux system, on which we are running one tool(developed in java), which needs as an input the port number where the oracle listener is running.
我的 Linux 系统中安装了 Oracle 11.2.0,我们在该系统上运行了一个工具(用 Java 开发),该工具需要将运行 oracle 侦听器的端口号作为输入。
Is there any way to get the port number.
有什么办法可以得到端口号。
回答by user2587106
You can typically see the port number you need in listener.ora
:
您通常可以在以下位置看到所需的端口号listener.ora
:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = DS-1)(PORT = 1521))
)
)
To find you listener.ora, you can use eg
要找到您的 listener.ora,您可以使用例如
find . -type f -name listener.ora
回答by Starksky
You can see in listener.ora located at $ORACLE_HOME/network/admin folder. or You can see lists of ports configured in portlist.ini located at $ORACLE_HOME/install folder
您可以在位于 $ORACLE_HOME/network/admin 文件夹的 listener.ora 中看到。或者您可以在位于 $ORACLE_HOME/install 文件夹的 portlist.ini 中看到配置的端口列表