tomcat和oracle启动时发生8080端口冲突,怎样通过修改oracle默认端口使之不冲突?

来源:百度知道 编辑:UC知道 时间:2024/05/31 04:57:07

1、在oracle 安装文件夹下面搜索一下文件中含有8080 的文件,里面有个readme讲怎么改端口
2、
SQL> call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(),
2 '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()',8081))
3 /
SQL> commit;

Commit complete.

SQL> exec dbms_xdb.cfg_refresh;

[oracle@test11 oracle]$ sqlplus /nolog

SQL*Plus: Release 9.2.0.4.0 - Production on Sat Aug 6 14:24:49 2005

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

SQL> connect / as sysdba;
Connected.
-- 把HTTP/WEBDAV端口从8080改到8081
SQL> call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(),
2 '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()',8081))
3 /

Call completed.
-- 把FTP端口从2100改到2111
SQL> call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(),
2 '/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port/te