6 Replies Latest reply: Nov 9, 2012 11:56 AM by 973363 RSS

    Cannot connect to Oracle 11g XE through SQLPlus

    973363
      Have been trying to resolve this all day. I have Oracle 11g XE installed on my local desktop (Windows 7 64 bit)for which I have been using for over a year for development. The recent "Sandy" storm killed the power at our office for a week. Upon returning to the office, I can not seem to connect to the Oracle on my desktop from my desktop. The only thing that supposedly have changed was the router re-assigned IP addresses. However, I have modified my tnsnames to reflect the proper IP address. Still I get the below error trying to connect through SQL*Plus (without specifying the service):

      ERROR:
      ORA-01034: ORACLE not available
      ORA-27101: shared memory realm
      Process ID: 0
      Session ID: 0 Serial number: 0

      When I try to specify the service name "...system/password@xe", it gives me the following error:

      SQL*Plus: Release 11.2.0.2.0 Production on Thu Nov 8 19:54:17 2012

      Copyright (c) 1982, 2010, Oracle. All rights reserved.

      ERROR:
      ORA-12514: TNS:listener does not currently know of service requested in connect
      descriptor




      ----------------
      Here's the results from ipconfig
      ----------------
      IPv4 Address. . . . . . . . . . . : 192.168.80.194
      Subnet Mask . . . . . . . . . . . : 255.255.255.0
      Default Gateway . . . . . . . . . : 192.168.80.1

      ----------------
      Here's my tnsnames.ora
      ----------------

      XE =
      (DESCRIPTION =
      (ADDRESS_LIST =
                (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.80.194)(PORT = 1521))
           )
      (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = XE)
           (SID = XE)
      )
      )

      EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
      (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      )
      (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
      )
      )

      ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
      (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      )
      (CONNECT_DATA =
      (SID = CLRExtProc)
      (PRESENTATION = RO)
      )
      )
      -------------------------
      listener.ora
      -------------------------
      SID_LIST_LISTENER =
      (SID_LIST =
      (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
      (PROGRAM = extproc)
      )
      (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
      (PROGRAM = extproc)
      )
      )

      LISTENER =
      (DESCRIPTION_LIST =
      (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.80.194)(PORT = 1521))
      )
      )

      DEFAULT_SERVICE_LISTENER = (XE)
      ---------------------------
      sqlnet.ora
      ---------------------------
      # This file is actually generated by netca. But if customers choose to
      # install "Software Only", this file wont exist and without the native
      # authentication, they will not be able to connect to the database on NT.

      SQLNET.AUTHENTICATION_SERVICES = (NTS)
      NAMES.DIRECTORY_PATH = (TNSNAMES, ONAMES, HOSTNAME)
      ---------------------------
      lsnrctl service output
      ---------------------------
      LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 08-NOV-2012 19:48
      :55

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

      Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
      Services Summary...
      Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
      Handler(s):
      "DEDICATED" established:0 refused:0
      LOCAL SERVER
      Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
      Handler(s):
      "DEDICATED" established:0 refused:0
      LOCAL SERVER
      The command completed successfully
      --------------------
      lsnrctl status output
      --------------------
      LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 08-NOV-2012 19:56
      :48

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

      Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
      STATUS of the LISTENER
      ------------------------
      Alias LISTENER
      Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Produ
      ction
      Start Date 08-NOV-2012 19:56:41
      Uptime 0 days 0 hr. 0 min. 11 sec
      Trace Level off
      Security ON: Local OS Authentication
      SNMP OFF
      Default Service XE
      Listener Parameter File C:\ORACLEXE\APP\ORACLE\PRODUCT\11.2.0\SERVER\network\a
      dmin\listener.ora
      Listener Log File C:\oraclexe\app\oracle\diag\tnslsnr\EWANG-W7\listener\
      alert\log.xml
      Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.80.194)(PORT=1521)))
      Services Summary...
      Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
      Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
      The command completed successfully

      ------------------------

      Both the "OracleServiceXE" and "OracleXETNSListener" has been started.

      Would really appreciate it if someone can help me resolve this. Thanks!