Skip to Main Content

Oracle Database Express Edition (XE)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Listner not staring: Permission denied

3243045May 20 2016 — edited May 23 2016

Hi,

I am running Oracle Database 11g Express Edition on Debian Linux. I installed both Oracle Database 11g Express Edition and SQL developer. I started the database using oracle-xe start which started fine. When attempting to create a new connection, however, I got this error:


Status : Failure -Test failed: IO Error: The Network Adapter could not establish the connection


Therefore I ran lsnrctl status on the linux terminal as both root user and oracle user which gave :

LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 20-MAY-2016 21:48:44

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))

TNS-12541: TNS:no listener

TNS-12560: TNS:protocol adapter error

  TNS-00511: No listener

   Linux Error: 111: Connection refused

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))

TNS-12541: TNS:no listener

TNS-12560: TNS:protocol adapter error

  TNS-00511: No listener

   Linux Error: 111: Connection refused

Attempting to start using lsnrctl start it gave me:

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

Starting /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.2.0 - Production

NL-00280: error creating log stream /u01/app/oracle/product/11.2.0/xe/network/log/listener.log

NL-00278: cannot open log file

  SNL-00016: snlfohd: error opening file

   Linux Error: 13: Permission denied

Listener failed to start. See the error message(s) above...

Contents of my listener.ora file:

# 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 =127.0.0.1)(PORT = 1521))

    )

  )

DEFAULT_SERVICE_LISTENER = (XE)

Contents of my tnsnames.ora file:

# tnsnames.ora Network Configuration File:

XE =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SERVICE_NAME = XE)

    )

  )

EXTPROC_CONNECTION_DATA =

  (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))

    )

    (CONNECT_DATA =

      (SID = PLSExtProc)

      (PRESENTATION = RO)

    )

  )

Pinging the host which is 127.0.0.1 (localhost) gives successful results (0% loss) and 1521 is the port I specified. The SID is xe.

$ echo $ORACLE_HOME gives:

/u01/app/oracle/product/11.2.0/xe

and

$ echo $ORACLE_SID gives:

XE

So I'm pretty sure that the problem has nothing to so with the environment variables.

Also the /etc/hosts file has:

127.0.0.1    localhost

127.0.1.1    phantom.intrudernet    phantom

# The following lines are desirable for IPv6 capable hosts

::1     localhost ip6-localhost ip6-loopback

ff02::1 ip6-allnodes

ff02::2 ip6-allrouters

So localhost is there. And therefore I am stuck. I have seen similar questions but they didn't solve any of my problems. Any help would be great.




Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 20 2016
Added on May 20 2016
3 comments
20,438 views