4 Replies Latest reply: Apr 19, 2011 1:01 PM by 856399 RSS

    Linux Error: 111: Connection refused

    856399
      on redhat i installed 11g via

      - rpm -ivh oracle-xe-11.2.0-0.5.x86_64.rpm
      - /etc/init.d/oracle-xe configure
      - set SYS and SYSTEM passwords (test servers can have same passwords for both logins)
      - /etc/init.d/oracle-xe start (if not set to auto-start during installaton)
      - /etc/init.d/oracle-xe status (to verify operation)

      form the root user account

      on the last step i get:

      [root@*** ~]# /etc/init.d/oracle-xe status

      LSNRCTL for Linux: Version 11.2.0.2.0 - Beta on 19-APR-2011 04:07:41

      Copyright (c) 1991, 2010, 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=*******)(PORT=1521)))
      TNS-12541: TNS:no listener
      TNS-12560: TNS:protocol adapter error
       TNS-00511: No listener
        Linux Error: 111: Connection refused

      i've tried restarting the oracle services to no avail.

      when I try to start the TNS listener, I get the following error:
      Linux Error: 29: Illegal seek

      Edited by: 853396 on Apr 19, 2011 9:47 AM
        • 1. Re: Linux Error: 111: Connection refused
          Dude!
          Can you post the content of your /etc/hosts and sqlnet.ora file?
          • 2. Re: Linux Error: 111: Connection refused
            856399
            # Do not remove the following line, or various programs
            # that require network functionality will fail.
            127.0.0.1 *********.net **** (these are correct)
            ::1 localhost6.localdomain6 localhost6

            and

            /u01/app/oracle/product/11.2.0/xe/network/admin/samples/sqlnet.ora is the only sqlnet.ora file on the machine

            it's fairly large, and apparently only a sample file.. let me know if you want me to post its contents regardless.
            • 3. Re: Linux Error: 111: Connection refused
              Dude!
              Here is /etc/hosts another system. You may want to check if your is similar:

              # Do not remove the following line, or various programs
              # that require network functionality will fail.
              127.0.0.1          ol1.example.com ol1 localhost.localdomain localhost
              192.168.0.1 ol1.example.com ol1
              ::1          localhost6.localdomain6 localhost6


              In your sqlnet.ora file, do you have an entry like: tcp.validcode_checking=yes. If so, you could change it to "no" and try starting the listener again. This was apparently an issue with the previous version.
              • 4. Re: Linux Error: 111: Connection refused
                856399
                that worked. thank you.