1.查询已经使用的emde端口
SELECT dbms_xdb_config.gethttpsport FROM dual; --https
SELECT dbms_xdb_config.gethttpport FROM dual; --http
2.添加emde
注意如果是要给pdb添加emde 需要先切换到要添加的pdb回话执行
exec DBMS_XDB_CONFIG.SETHTTPSPORT(5500); ---https
exec DBMS_XDB_CONFIG.SETHTTPSPORT(5500); ---http
3.切换emde
@?/rdbms/admin/execemx emx -----老版emde
@?/rdbms/admin/execemx omx -----新版emde