在上一家公司用的是Oracle8i,现在新公司的客户基本上都用Oracle9i,今天装了个Oracle9i,但开tomcat后发现8080端口被占用。
Google了一下发现原来是Oracle9i创建数据库时默认包含了XDB特性,一旦启动了数据库和监听器,oracle的XDB的HTTP服务就占用8080端口。
可以通过2种方法修改端口:
1.用sys登录,利用dbms_xdb修改端口设置 
SQL> -- Change the HTTP/WEBDAV port from 8080 to 8081
  SQL> call dbms_xdb.cfg_update(updateXML(
    2        dbms_xdb.cfg_get()
    3      , '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()'
    4      , 8081))
    5  /
 SQL> -- Change the FTP port from 2100 to 2111
  SQL> call dbms_xdb.cfg_update(updateXML(
    2         dbms_xdb.cfg_get()
    3       , '/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port/text()'
    4       , 2111))
    5  /
  Call completed. 
  SQL> COMMIT;
  Commit complete.
  SQL> EXEC dbms_xdb.cfg_refresh;
  PL/SQL procedure successfully completed.
2.在Oracle Enterprise Manage Console中修改XDB配置
参考:http://internet.blog.enorth.com.cn/article/49041.shtml