Oracle Database 19C Enterprise Manager Express Not Working
Our client, who is currently utilizing Oracle 19c Database, has expressed their desire to leverage Oracle Enterprise Manager (OEM) to monitor and analyze their database usage.
Now Let us check some values from the database
SQL> select dbms_xdb_config.gethttpsport from dual; GETHTTPSPORT ------------ 0
SQL> select dbms_xdb_config.gethttpport from dual; GETHTTPPORT ------------ 0
As we see ‘0’ in both the above statements we will execute the procedures given below.
SQL> exec dbms_xdb_config.sethttpsport(5500);
SQL> exec dbms_xdb_config.sethttpport(5550);
Let’s assume that you still cannot able to connect, check the wallet files. Check the directory of wallet files, run this command fist;
[oracle@devdb]# lsnrctl stat | grep HTTP
output is;
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=localhost)(PORT=5500))(Security=(my_wallet_directory=/u01/app/oracle/admin/devdb/xdb_wallet))(Presentation=HTTP)(Session=RAW))
Now you have to copy the wallet directory and run ls -l command to check the permission of the wallet files.
[oracle@devdb]# cd /u01/app/oracle/admin/devdb/xdb_wallet
[oracle@devdb xdb_wallet]# ls -l
-rw——-. 1 oracle oracle 3880 Jan 16 10:24 cwallet.sso
-rw——-. 1 oracle oracle 3835 Jan 16 10:23 ewallet.p12
Now as you see it is having the permission on user level only and not the Group level. You have to set it with -rw-r. Changing mode to 640 to allow for the group to read the wallet files makes the EM Express page available via browser.
[root@devdb xdb_wallet]#chmod 640 ewallet.p12
oracle@devdb xdb_wallet]#chmod 640
[oracle@devdb xdb_wallet# ls -l
-rw-r—–. 1 oracle oracle 3880 Jan 16 10:35 cwallet.sso
-rw-r—–. 1 oracle oracle 3835 Jan 16 10:35 ewallet.p12
Now you can connect with browser.