1.设置参数
sql> alter system set dispatchers='(PROTOCOL=TCP) (SERVICE=cdb1XDB)';
sql>exec dbms_xdb_config.sethttpport(5501);
2.确认参数:
sql>select dbms_xdb_config.gethttpport from dual;
GETHTTPPORT
-----------
5501
看看监听中,应该有5501的监听了:
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dbserver)(PORT=5501))(Presentation=HTTP)(Session=RAW))
Services Summary...
...
Service "cdb1XDB" has 1 instance(s).
Instance "cdb1", status READY, has 1 handler(s) for this service...
...
The command completed successfully
之后,我们就可以通过express访问了:
http://dbserver:5501/em
|