使用sys登录sqlplus
sqlplus sys/syspassword as sysdba
然后执行如下的脚本
最好是在装好oracle就改掉 那样快些
因为它的服务都打开了 直接改
如果你只有监听和服务是打开的
那你改8080端口 就把它的服务都打开(我不记得是要那几个服务,反正全部打开准没错)
在去运行下面的代码
-- Change the HTTP/WEBDAV port from 8080 to 8090
call dbms_xdb.cfg_update(updateXML(
dbms_xdb.cfg_get()
, '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()'
, 8090))
/
-- Change the FTP port from 2100 to 2200
call dbms_xdb.cfg_update(updateXML(
dbms_xdb.cfg_get()
, '/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port/text()'
, 2200))
/
COMMIT;
EXEC dbms_xdb.cfg_refresh;
这样oracle的8080端口就改掉了
sqlplus sys/syspassword as sysdba
然后执行如下的脚本
最好是在装好oracle就改掉 那样快些
因为它的服务都打开了 直接改
如果你只有监听和服务是打开的
那你改8080端口 就把它的服务都打开(我不记得是要那几个服务,反正全部打开准没错)
在去运行下面的代码
-- Change the HTTP/WEBDAV port from 8080 to 8090
call dbms_xdb.cfg_update(updateXML(
dbms_xdb.cfg_get()
, '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()'
, 8090))
/
-- Change the FTP port from 2100 to 2200
call dbms_xdb.cfg_update(updateXML(
dbms_xdb.cfg_get()
, '/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port/text()'
, 2200))
/
COMMIT;
EXEC dbms_xdb.cfg_refresh;
这样oracle的8080端口就改掉了