This article refers to the following documents:
- DBCS: How To Setup EM Express in Bare Metal and Virtual Machine DB Systems(OCI) (Doc ID 2453454.1)
- Oracle Database 12c: EM Database Express
- Access the Database Home Page in EM Database Express
Step 1: Set the port in the database
The default is not set. This can be confirmed with the following command:
$ lsnrctl status | grep HTTP
或
SQL> select dbms_xdb_config.getHttpsPort() from dual;
Set the HTTPS port to 5500:
exec dbms_xdb_config.sethttpsport(5500);
Confirm that the PROTOCOL is tcps, which means HTTPS:
$ lsnrctl status | grep HTTP
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=ocp19c.sub07290808380.training.oraclevcn.com)(PORT=5500))(Security=(my_wallet_directory=/u01/app/oracle/product/19.0.0.0/dbhome_1/admin/DB0523_fcq_nrt/xdb_wallet))(Presentation=HTTP)(Session=RAW))
It can also be confirmed in the database:
SQL> select dbms_xdb_config.getHttpsPort() from dual;
DBMS_XDB_CONFIG.GETHTTPSPORT()
------------------------------
5500
Give Wallet permissions
This step is suspected to be related to OCI, in short, refer to MOS.
Get my_wallet_directory from the following command:
$ lsnrctl status | grep xdb_wallet
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=ocp19c.sub07290808380.training.oraclevcn.com)(PORT=5500))(Security=(my_wallet_directory=/u01/app/oracle/product/19.0.0.0/dbhome_1/admin/DB0523_fcq_nrt/xdb_wallet))(Presentation=HTTP)(Session=RAW))
Enter the my_wallet_directory directory, and modify the permissions of the files in it:
cd /u01/app/oracle/product/19.0.0.0/dbhome_1/admin/DB0523_fcq_nrt/xdb_wallet
chmod 640 *
Turn on the network firewall
OCI network firewall needs to open port 5500, this is omitted.
The operating system also needs to open port 5500:
iptables -I INPUT -p tcp -m tcp --dport 5500 -j ACCEPT
service iptables save
access
The URLs are as follows:
https://<hostname>:<port>/em
Just one point, there is no need to enter the Container Name.
This interface is not as rich as the previous Flash, but Flash is no longer supported.