从端口 8080 更改 Oracle 端口

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/142868/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 01:31:28  来源:igfitidea点击:

Change Oracle port from port 8080

oracleport

提问by user22916

How do I change Oracle from port 8080? My Eclipse is using 8080, so I can't use that.

如何从端口 8080 更改 Oracle?我的 Eclipse 使用的是 8080,所以我不能使用它。

回答by susheel

From Start | Run open a command window. Assuming your environmental variables are set correctly start with the following:

从开始 | 运行打开命令窗口。假设您的环境变量设置正确,请从以下内容开始:

C:\>sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Aug 26 10:40:44 2008
Copyright (c) 1982, 2005, Oracle.  All rights reserved.

SQL> connect
Enter user-name: system
Enter password: <enter password if will not be visible>
Connected.

SQL> Exec DBMS_XDB.SETHTTPPORT(3010); [Assuming you want to have HTTP going to this port]    
PL/SQL procedure successfully completed.

SQL>quit 

then open browser and use 3010 port.

然后打开浏览器并使用3010端口。

回答by user22916

From thisblog post:

来自这篇博文:

XE: Changing the default http port

Oracle XE uses the embedded http listener that comes with the XML DB (XDB) to serve http requests. The default port for HTTP access is 8080.

XE:更改默认的 http 端口

Oracle XE 使用 XML DB (XDB) 附带的嵌入式 http 侦听器来处理 http 请求。HTTP 访问的默认端口是 8080。

EDIT:

编辑:

Update 8080 port to which port(9090 for example) you like

将 8080 端口更新到您喜欢的端口(例如 9090)

SQL> -- set http port
SQL> begin
 2    dbms_xdb.sethttpport('9090');
 3  end;
 4  /

After changing the port, when we start Oracle it will go on port 8080, we should type manually new port(9090) in the address bar to run Oracle XE.

更改端口后,当我们启动 Oracle 时,它​​将转到端口 8080,我们应该在地址栏中手动键入 new port(9090) 以运行 Oracle XE。

回答by Hareesh Chowdary

Just open Run SQL Command Lineand login as sysadmin and then enter below command

只需打开Run SQL Command Line并以系统管理员身份登录,然后输入以下命令

Exec DBMS_XDB.SETHTTPPORT(8181);

That's it. You are done.....

就是这样。你完了……

回答by Nigel_V_Thomas

Execute Exec DBMS_XDB.SETHTTPPORT(8181);as SYS/SYSTEM. Replace 8181 with the port you'd like changing to. Tested this with Oracle 10g.

Exec DBMS_XDB.SETHTTPPORT(8181);以 SYS/SYSTEM 身份执行。将 8181 替换为您想要更改的端口。使用 Oracle 10g 对此进行了测试。

Source : http://hodentekhelp.blogspot.com/2008/08/my-oracle-10g-xe-is-on-port-8080-can-i.html

来源:http: //hodentekhelp.blogspot.com/2008/08/my-oracle-10g-xe-is-on-port-8080-can-i.html

回答by Brad Bruce

I assume you're talking about the Apache server that Oracle installs. Look for the file httpd.conf.

我假设您在谈论 Oracle 安装的 Apache 服务器。查找文件 httpd.conf。

Open this file in a text editor and look for the line
Listen 8080
or
Listen {ip address}:8080

在文本编辑器中打开此文件并查找行
Listen 8080

Listen {ip address}:8080

Change the port number and either restart the web server or just reboot the machine.

更改端口号并重新启动 Web 服务器或重新启动机器。

回答by pappes

Oracle (database) can use many ports. when you install the software it scans for free ports and decides which port to use then.

Oracle(数据库)可以使用很多端口。当您安装该软件时,它会扫描空闲端口并决定使用哪个端口。

The database listener defaults to 1520 but will use 1521 or 1522 if 1520 is not available. This can be adjusted in the listener.ora files.

数据库侦听器默认为 1520,但如果 1520 不可用,将使用 1521 或 1522。这可以在 listener.ora 文件中进行调整。

The Enterprise Manager, web-based database administration tool defaults to port 80 but will use 8080 if 80 is not available.

企业管理器、基于 Web 的数据库管理工具默认使用端口 80,但如果 80 不可用,则将使用 8080。

See here for details on how to change the port number for enterprise manager: http://download-uk.oracle.com/docs/cd/B14099_19/integrate.1012/b19370/manage_oem.htm#i1012853

有关如何更改企业管理器端口号的详细信息,请参见此处:http: //download-uk.oracle.com/docs/cd/B14099_19/integrate.1012/b19370/manage_oem.htm#i1012853

回答by tardate

There are many Oracle components that run a web service, so it's not clear which you are referring to.

有许多运行 Web 服务的 Oracle 组件,因此不清楚您指的是哪一个。

For example, the web site port for standalone OC4J is configured in the j2ee/home/config/default-web-site.xml file:

例如,独立 OC4J 的网站端口在 j2ee/home/config/default-web-site.xml 文件中配置:

<web-site xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/web-site-10_0.xsd"
port="8888" display-name="OC4J 10g (10.1.3) Default Web Site"
schema-major-version="10" schema-minor-version="0" > 

回答by Lova Chittumuri

Login in with System Admin User Account and execute below SQL Procedure.

使用系统管理员用户帐户登录并执行以下 SQL 程序。

begin
dbms_xdb.sethttpport('Your Port Number');
end;

Then open the Browser and access the below URL

然后打开浏览器并访问以下 URL

http://127.0.0.1:YourPortNumber/apex/

http://127.0.0.1:YourPortNumber/apex/