Oracle 9i創建數據庫時默認包含了XDB特性。一旦啟動了數據庫和Listener,Oracle XDB啟動http服務。 禁用 oracle 的 XDB服務的方法很簡單,去掉相應的數據庫的初始化參數即可: 編輯$ORACLE_HOME/dbs/initSID.ora文件,去除如下行:dispatchers='(PROTOCOL=TCP) (SERVICE=XDB)'重啟數據庫shutdown immediate;
create spfile from pfile;
startup;修改XDB服務端口: XDB的http服務就占用8080端口,剛好和JBoss、Tomcat等默認端口沖突,Oracle XDB的端口設置不在配置文件中,而是在數據庫里。如下修改XDB的http和FTP服務端口: 使用sys登錄sqlplus,利用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 /
Call completed.
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.