来源:
ChinaUnix博客 作者:
ChinaUnix博客 发布时间:2007-01-01 13:08:00


从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;
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工具删除监听器,然后新建一个监听器,重启监听器。
本文来自ChinaUnix博客,假如查看原文请点:http://blog.chinaunix.net/u/11765/showart_226023.html
|
还没有关于此文章的相关评论!