Unable to connect to Oracle XE
NickName:Mike Ask DateTime:2014-08-23T03:36:30

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:

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)
    )
    (SID_DESC =
      (SID_NAME = XE)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
    ))

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      (ADDRESS = (PROTOCOL = TCP)(HOST = Home-PC)(PORT = 1521))
    )
   (PROGRAM = extproc)
  )

DEFAULT_SERVICE_LISTENER = (XE)

The following Windows Services are all started:

OracleJobSchedulerXE 
OracleMTSRecoveryService 
OracleServiceXE       
OracleXEClrAgent 
OracleTNSListener

When I switch Windows Firewall off (just in case it is blocking port 1521), it still brings up the error

What else can I check?

Copyright Notice:Content Author:「Mike」,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/25454381/unable-to-connect-to-oracle-xe

Answers
Mike 2014-08-23T18:37:16

It must have been a permissions issue for some reason\n\nWhen I ran the Start Database batch file, it just hung\n\nFrom the SQL Command Line, I typed\n\nSTARTUP\n\n\nand got\n\nORA-01038: insufficient privileges\n\n\nSo I connected using\n\nconnect sys as sysdba\n\n\nand got\n\nConnected to an idle instance\n\n\nI then used\n\nSTARTUP\n\n\nagain and it started! I had not changed anything else. I can only assume I will have to change my Start.bat file to connect as sysdba first",


More about “Unable to connect to Oracle XE” related questions

Unable to connect to my oracle XE database

I am unable to connect to my oracle XE database through sql dveloper after changing my system host name. Please help me to connect to database. Status : Failure -Test failed: Listener refused the

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

Unable to connect eclipse with oracle xe database

I tried to run a simple java program to create a table in oracle Db My program is import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statemen...

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

Unable connect oracle 10g XE to django

I am trying to connect to oracle 10g XE database from windows but getting following error Here is my settings for database DATABASES = { 'default': { 'ENGINE': 'django.db.backends.

Show Detail

Unable to connect to Oracle 10g XE

My code : package java_connect; import java.sql.*; public class JdbcOracleXe { public static void main(String[] args) { System.out.println("-------- Oracle JDBC Connection Testing -...

Show Detail

Cannot connect to Oracle XE 11g2

This has been driving me crazy for two days. I recently installed Oracle Express Edition 11g2 on my localhost (Windows 7 Enterprise). I can start the database and the listener, but I am unable to c...

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

Not able to connect to Oracle 11g XE Apex Web Interface in Linux Mint

I have installed Oracle database Express Edition 11g Release 2 for Linux x64 on my Linux Mint 17.3 system. The install process was successful. I am able to connect to database using sqlplus, create...

Show Detail

ORA-01017 error when attempting to connect to Oracle XE from servlet

I'm trying to write a servlet application for learning purposes that connects to an Oracle database, queries some data and then prints it to the browser. Simple! However, I'm experiencing an ORA-...

Show Detail