修改默認的Oracle XML Database監聽端口
◆1.dbca,選擇你的數據庫,然后Standard Database Features->Customize->Oracle XML
DB option,進入這個畫面后就很容易修改了。
◆2.OEM console,在XML Database的配置里面修改。
◆3.用Oracle提供的包:(dba)
-- 把HTTP/WEBDAV端口從8080改到8081
SQL> call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(),
'/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()',8081))
/
-- 把FTP端口從2100改到2111
SQL> call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(),
'/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port/text()',2111))
/
SQL> commit;
SQL> exec dbms_xdb.cfg_refresh;
-- 檢查修改是否已經成功
SQL> set long 100000
SQL> set pagesize 1000
SQL> select dbms_xdb.cfg_get from dual;