오라클의 XDB listener 의 포트와 Apache Tomcat 의 포트가 기본적으로 8080으로 동일하다.

Apache Tomcat 의 포트를 변경하는 방법도 있겠지만,

외국사이트를 검색결과 XDB listener 의 포트를 변경하는 방법이 있드라~

명령프롬프트에서 lsnrctl status 를 입력하거나 아래의 쿼리를 사용하면,

ftp 와 http 이 각각 2100 과 8080 으로 설정된 것을 볼 수 있다.

SELECT dbms_xdb.cfg_get "xdbconfig.xsd" FROM dual;

이 설정을 바꿔보겠다.

아래의 스크립트 문장으로 각각 6010 와 6020 으로 변경할 수 있다.

이 스크립트는 auto commit 이다.

declare
newconfig XMLType;
begin
    --ftp port setting
    select updatexml(
    dbms_xdb.cfg_get(),'/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port/text()',6010) into newconfig from dual;
    dbms_xdb.cfg_update(newconfig);
    --http port setting
    select updatexml(
    dbms_xdb.cfg_get(),'/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()',6020) into newconfig from dual;
    dbms_xdb.cfg_update(newconfig);
end;
/
리스너를 재시작한다.

lsnrctl status 로 확인하면, 변경된 것을 확인해 볼 수 있다.