`
terryzhou
  • 浏览: 3092 次
  • 性别: Icon_minigender_1
  • 来自: nj
社区版块
存档分类
最新评论

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

阅读更多

  从9i开始,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;
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics