Oracle XE not binding on IP4 port 1521
NickName:Mantichora Ask DateTime:2013-06-06T22:38:13

Oracle XE not binding on IP4 port 1521

I have an Oracle 11g XE installed in Ubuntu 12.4 and facing difficulty with getting the Oracle to bind on a TCP port. The IP6 binding seems to be fine but not the IP4 (tcp 0.0.0.0:1521).

Here is the oracle-xe status:

root@pearBox:~# /etc/init.d/oracle-xe status

LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 06-JUN-2013 15:08:34

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date                06-JUN-2013 15:06:42
Uptime                    0 days 0 hr. 1 min. 52 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Default Service           XE
Listener Parameter File   /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/pearBox/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pearBox)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=pearBox)(PORT=8080))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XE" has 1 instance(s).
  Instance "XE", status READY, has 1 handler(s) for this service...
Service "XEXDB" has 1 instance(s).
  Instance "XE", status READY, has 1 handler(s) for this service...
The command completed successfully

Netstat results:

root@pearBox:~# netstat -ntpl

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      914/mysqld      
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1859/apache2    
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      608/sshd        
tcp6       0      0 :::22447                :::*                    LISTEN      1757/xe_d000_XE 
tcp6       0      0 :::8080                 :::*                    LISTEN      1655/tnslsnr    
tcp6       0      0 :::1521                 :::*                    LISTEN      1655/tnslsnr    
tcp6       0      0 :::22                   :::*                    LISTEN      608/sshd 

And the listener configuration:

root@pearBox:~# cat /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
# listener.ora Network Configuration File:

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = /u01/app/oracle/product/11.2.0/xe)
      (PROGRAM = extproc)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
      (ADDRESS = (PROTOCOL = TCP)(HOST = pearBox)(PORT = 1521))
    )
  )

DEFAULT_SERVICE_LISTENER = (XE)

I changed the hostname to "HOST = 127.0.0.1" and it is binding on localhost, but I am not able to access the Oracle instance from the network!

root@pearBox:~# netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      914/mysqld      
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1859/apache2    
tcp        0      0 127.0.0.1:1521          0.0.0.0:*               LISTEN      2339/tnslsnr    
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      608/sshd        
tcp6       0      0 :::21121                :::*                    LISTEN      2443/xe_d000_XE 
tcp6       0      0 :::22 

I would appreciate if you could help to get this issue resolved.

Copyright Notice:Content Author:「Mantichora」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/16964996/oracle-xe-not-binding-on-ip4-port-1521

Answers
Jmyz 2015-05-03T22:10:42

Just found this post, I had the same issue. It was the result of changing my hostname post-installation. I was able to remedy the situation by updating the hostname in both:\n\n/u01/app/oracle/product/11.2.0/xe/network/admin/tnsnames.ora\n\nand\n\n/u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora",


lcestari 2014-11-25T17:03:05

I would suggest to take a look on the firewall rules -> https://help.ubuntu.com/12.04/serverguide/firewall.html",


More about “Oracle XE not binding on IP4 port 1521” related questions

Oracle XE not binding on IP4 port 1521

I have an Oracle 11g XE installed in Ubuntu 12.4 and facing difficulty with getting the Oracle to bind on a TCP port. The IP6 binding seems to be fine but not the IP4 (tcp 0.0.0.0:1521). Here is the

Show Detail

How to stop oracle listening on port 1521(TNS)

There is a oracle xe edition installed on a machine. My requirement is to stop oracle from listening on the 1521 port. This port is used by the TNS system. Also i need to do this from a vb.net program

Show Detail

Connect to Oracle XE Docker container

I have problems reaching an Oracle XE database Docker container (Version 2.3.0.4) via Telnet or SQLPLUS from my hostsystem: This is my Oracle XE and Container configuration: docker port 54cb9336d8c...

Show Detail

Docker / Oracle Database / Change Port 1521

I have set an Oracle docker image (https://github.com/oracle/docker-images/tree/main/OracleDatabase/SingleInstance/dockerfiles) which by default is running on port 1521. I would like to change the ...

Show Detail

No suitable driver found for jdbc:oracle:thin:@localhost:1521:xe error

I am experiencing the strange problem with No suitable driver found for jdbc:oracle:thin:@localhost:1521:xe when i run JUNIT Test case of any DAO it is inserting fine. But when i run in server it is

Show Detail

Oracle Xe not working

I am not able to connect the oracle Xe from sql developer. I am getting error "Status : failure: IO Error: The Network Adaptor could not establish the connection." I tried to configure the listen...

Show Detail

No suitable driver found for jdbc:oracle:thin:@localhost:1521:XE when running web application

I am experiencing the strange problem with No suitable driver found for jdbc:oracle:thin:@localhost:1521:XE when i run JUNIT Test case of any DAO it is inserting fine. But when i run in server it is

Show Detail

How to change default port 1521 for oracle database?

I already have oracle 11g installed in my windows. I was trying to use oracle docker image. I downloaded Oracle Database Enterprise Edition image from docker hub using docker pull store/oracle/data...

Show Detail

Unable to connect to Oracle XE

I installed Oracle 11XE a while back - suddenly I am getting ORA-01034 and ORA-27101 errors when trying to connect My ORACLE_HOME and ORACLE_SID appear to be correct. My listener.ora file is:

Show Detail

Connecting to Oracle XE running on Docker

I'm trying to connect to Oracle XE which is running on docker on my Mac. docker run -d -p 49160:22 -p 49161:1521 wnameless/oracle-xe-11g $ docker ps CONTAINER ID IMAGE

Show Detail