Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking to run Apache tomcat and oracle10g... both are on port 8080 how to change port of any of them?

share|improve this question

migrated from Oct 4 '12 at 16:06

This question came from our site for professional and enthusiast programmers.

This isn't really a programming question, probably better suited to Pro Webmasters. – adamjansch Oct 4 '12 at 14:16
up vote 2 down vote accepted

Do you mean you're running two listeners on 8080?

In Oracle's embedded gateway, from sqlplus:

exec dbms_xdb.sethttpport(80);
alter system register;

For Tomcat, see:

share|improve this answer

Oracle XMLDB uses the ports 2100/8080 by default. Sometimes there are problem with other webservers (e.g. JBOSS) running on the same port.

Even if the package dbms_xdb is granted to PUBLIC you need DBA privileges to change the ports.

-- change HTTP port from 8080 to 8083--->

sql>call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(), '/xdbconfig/sysconfig /protocolconfig/httpconfig/http-port/text()', 8083));

-- change FTP port from 2100 to 2111---->

sql>call dbms_xdb.cfg_update(updateXML( dbms_xdb.cfg_get(), '/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port/text()' , 2111));

-- refresh settings---->

sql>exec dbms_xdb.cfg_refresh;
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.