您好,欢迎访问一九零五行业门户网

解决Oracle XDB与Tomcat等的8080端口的冲突

从oracle9i开始,oracle的安装缺省包含了xdb。在数据库后,oracle xdb的http服务自动霸占了8080端口,这给使用或jboss、tomcat进
从oracle9i开始,oracle的安装缺省包含了xdb。在数据库后,oracle xdb的http服务自动霸占了8080端口,这给使用或jboss、tomcat进行java web开发的人造成了不小的麻烦。 这里介绍修改xdb的http和ftp服务端口的3种方法:
1.使用dbms_xdb包修改端口设置
使用sys登录sqlplus
sqlplus sys/syspassword as sysdba
然后执行如下的脚本
-- change the http/webdav port from 8080 to 8081
call dbms_xdb.cfg_update(updatexml(
dbms_xdb.cfg_get()
, '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()'
, 8081))
/
-- change the ftp port from 2100 to 2111
call dbms_xdb.cfg_update(updatexml(
dbms_xdb.cfg_get()
, '/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port/text()'
, 2111))
/
commit;
exec dbms_xdb.cfg_refresh;
2.使用oem console
选择数据库,xml database,configuration。更改xdb的有关设置。
3.修改spfile[sid名].ora文件,去掉数据库的初始化参数:
这个文件是oracle的启动配置文件dispatchers='(protocol=tcp) (service=xdb)',将会禁止xdb的http和ftp服务。
重启计算机,或者在服务中重启oracleservice[sid名]这个服务。重启后可能无法使用enterprise manager console和其他客户端连接,这时请使用oracle的configuration and migration tools/net configuration assistant工具删除监器,,然后新建一个监器,重启监器。
其它类似信息

推荐信息