I have Centos 6.5, and installed Oracle 12c. As dbca utility says after configuring new db, EM Express should be available on https://hostname:5500/em In fact, it is not. Neither on localhost nor by ip. I also did SQL> EXEC dbms_xdb_config.sethttpport(5501); because DBMS_XDB.GETHTTPPORT() showed "0", and set 5500 was impossible due to the error - 5500 seemed busy. After that I tried both ports and different host names - nothing works.

DB is up and working, here is output of the lsnrctl status(I removed listener.ora to be sure that it's not wrong, but the output is the same):

 LSNRCTL for Linux: Version - Production on 18-JAN-2015

 Copyright (c) 1991, 2014, Oracle.  All rights reserved.

 Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521)) STATUS of the
 ------------------------ Alias                     LISTENER Version                   TNSLSNR for Linux: Version - Production Start Date         
 18-JAN-2015 10:27:20 Uptime                    0 days 0 hr. 0 min. 21
 sec Trace Level               off Security                  ON: Local
 OS Authentication SNMP                      OFF Listener Log File     
 /u01/app/oracle/diag/tnslsnr/hpsa/listener/alert/log.xml Listening
 Endpoints Summary...  
 Services Summary... Service "main" has 1 instance(s).   Instance
 "main", status READY, has 1 handler(s) for this service... Service
 "mainXDB" has 1 instance(s).   Instance "main", status READY, has 1
 handler(s) for this service... The command completed successfully

Also, here is my /etc/hosts:  localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1     localhost localhost.localdomain
 localhost6 localhost6.localdomain6 hpsa hpsa.hpsa hpsa.localdomain node1


 [root@hpsa ~]# hostname 


All that I have now for : browsers show that they are connected to the host and trying to retrieve data, but in few long minutes I am getting connection reset. Firefox also showed ssl_error_rx_record_too_long

What am I doing wrong?

  • I tried both 5500 and 5501 ports, both https:// and http:// , It doesn't work. Commented Jan 18, 2015 at 15:39
  • Does your server have multiple network adaptors? Check listener.log at the time you try to connect to the webpage. Does it contain a TNS-12518 error? Is the IP address mentioned in this error the same as the IP address your hostname maps to? Or is it the IP address of one of the other adaptors? Is the problem solved if you disable the other adaptors?
    – Wouter
    Commented Dec 18, 2015 at 14:20
  • @Wouter When I lsndrctl start, I get: Listener Log File /u01/app/oracle/diag/tnslsnr/myinstance/listener/alert/log.xml. So I did grep -n 'TNS-12518' /u01/app/oracle/diag/tnslsnr/myinstance/listener/alert/log.xml and got nothing. I also tried the same with ...listener/trace/listener.log and also nothing. But! I saw there that while hitting : 18-DEC-2015 05:07:33 * http * (ADDRESS=(PROTOCOL=tcps)(HOST= * handoff * http * 0. I suppose it's the address not of eth0, but of my browser.After disabling eth0, nothing logged. Commented Dec 18, 2015 at 17:35

3 Answers 3


0> "and set 5500 was impossible due to the error - 5500 seemed busy"

This means that the port 5500 is already "in use". Well, I bet it is not in use but Oracle thinks that. There are a lot of ports reserved in /etc/services.

Open the file and change the following lines:

fcp-addr-srvr1  5500/tcp                # fcp-addr-srvr1
fcp-addr-srvr1  5500/udp                # fcp-addr-srvr1

Change them into:

#fcp-addr-srvr1  5500/tcp                # fcp-addr-srvr1
#fcp-addr-srvr1  5500/udp                # fcp-addr-srvr1

Retry to set the port with SQL> EXEC dbms_xdb_config.sethttpport(5500);.


Your listener shows that it's listening on port 5500 for https requests. So maybe you already did what I just posted. Could you please share the output of the following command?

service iptables status


I just activated EM Express on one of my 12c databases. Here is what I did:

  • OS: Oracle Linux 6.5
  • DB: Oracle Database
  • service iptables status --> OFF

Action log:

$ sqlplus / as sysdba




I'm going to set https port to 5501 and overwrite the http port with 5500.

SQL> EXEC DBMS_XDB_CONFIG.sethttpport(5500);
PL/SQL procedure successfully completed.

SQL> EXEC DBMS_XDB_CONFIG.sethttpsport(5501);
PL/SQL procedure successfully completed.

Afterwards the listener shows that I's listening on these ports (before the 5500 record was there already but it was not working)

$ lsnrctl status | grep PORT
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))

I did the test in a browser:

  • Browse to http://***:5500/em --> login screen appears
  • Browse to https://***:5500/em --> login screen appears

Note the tailing "/em" is important.

  • My lsnrctl status|grep PORT looks exactly like yours now. And still I am getting Internal Server Error while trying to browse to mentioned urls. At least it is not 404. Commented Jan 22, 2015 at 18:34

You need to check the enterprise manager express manager and configure it if its not configured:

SELECT DBMS_XDB_CONFIG.gethttpport FROM dual;   -- check the HTTP port number

    port number

SELECT DBMS_XDB_CONFIG.gethttpsport FROM dual;  -- check the HTTPS port number

EXEC DBMS_XDB_CONFIG.sethttpsport(5500);

PL/SQL procedure successfully completed.  --the expected result

After that you need to make sure the port is enabled (opened via iptables as well as external firewall if exist), then try to use the URL like the following:


If that did not fix it, then try to reload the listener and try again

  • Yes, this is correct but I would say that this is exactly what Battle_Slug did. The configuration must be messed up at some point.
    – o0x258
    Commented Jan 20, 2015 at 10:49

centos7 has almost all ports closed, review ports closed by firewall, for example try:

firewall-cmd --get-active-zones

If your dmz it´s "public" try this:

firewall-cmd --zone=public --add-port=5500/tcp --permanent

To me works making 5500 port open in firewall rules.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.