1 Windows下通过netstat -an -o -b可知是TNSLSNR.exe占用了8080端口
2 此方法解决Oracle端口与Tomcat等web服务器默认端口冲突的问题
3 修改立即生效
Change XMLDB Ports
This document explains how to change the default ports (8080 for HTTP and 2100 for FTP) in XMLDB.
Oracle XMLDB uses the ports 2100/8080 by default. Sometimes there are problem with other webservers (e.g. JBOSS) running on the same port.
Even if the package dbms_xdb is granted to PUBLIC you need DBA privileges to change the ports.
-- change HTTP port from 8080 to 8083
call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(), '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()', 8083));
-- change FTP port from 2100 to 2111
call dbms_xdb.cfg_update(updateXML( dbms_xdb.cfg_get(), '/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port/text()' , 2111));
-- refresh settings
exec dbms_xdb.cfg_refresh;
****************************************************************************
本人在启动tomcat时有以下错误。 2007-7-5 16:08:28 org.apache.coyote.http11.Http11Protocol init 经过本人研究此错误归纳为:严重: Error initializing endpoint 经过本人研究得出以下结论:tomcat的默认端口为8080而oracle9i中的TNSLSNR.exe进程占用了。 DLL 文件: tnslsnr.exe
此问题还有一个表象:就是输入网页地址会弹出一个要求输入用户名和密码的窗口,窗口名字是叫XDB。
1、使用sys登录Oracle,利用dbms_xdb修改端口设置 -- Change the HTTP/WEBDAV port from 8080 to 8081 -- Change the FTP port from 2100 to 2111
3、去掉数据库的初始化参数: dispatchers='(PROTOCOL=TCP) (SERVICE=XDB)',将会禁止XDB的http和ftp服务。 |
*********************************************************************************
以上是从网络上找的用命令语句来修改listener port 的方法,但是我试了一试,系统总是报告XDB.DBMS_XDB view 不存在。现在我还没有找出原因!
但是下面方法可以很容易修改FTP,WEBDAV port -->2103 ; Http -->8083
使用Oracle 自带的工具Database Configration Assistant:
当然,修改完后,要重新启动listener服务才能生效。