Oracle XE 11gR2 installation – “OracleXEService should not be installed already”
Oracle XE 11gR2 beta has just been released, some details here and download here. It’s not a great deal of use for sandboxing DWH-specific stuff, given this list of excluded functionality (and this is by no means everything that’s not included):
- Bitmapped index, bitmapped join index, and bitmap plan conversions
- Oracle Partitioning
- Parallel Data Pump Export/Import
- Parallel query/DML
- Parallel Statement Queuing
(source)
However, it’s always interesting to have to hand for trying out other things. And I like playing with new toys 🙂
On running the installer, I hit this problem:
«OracleXEService should not be installed already»
[…]
Checking for Oracle XE Service instance…:
Expected result : OracleXEService should not be installed already.
Actual result: OracleServiceXE found on system.
Check complete: The overall result of this check is failed.
The previous owner of the machine had installed Oracle XE 10, but I’d removed this:
No Oracle XE 10g listed in add/remove programs
Or so I thought:
OracleServiceXE still listed in Services
To remove the service entry, use the sc command:
sc delete OracleServiceXE
For good measure I did the same for OracleJobSchedulerXE.
Delete service entries using sc
After this, installation proceeded as normal.
Sorry, the comment form is closed at this time.
Skip to content
- Download “latest” http://www.oracle.com/technetwork/database/database-technologies/express-edition/overview/index.html
- Install to dir without spaces e.g. c:/dev/env/
- Type”services” in Windows programs search to start services program. View service names starting with Oracle. You should see:
- OracleJobSchedulerXE
- OracleMTSRecoveryService
- OracleServiceXE
- OracleXEClrAgent
- OracleXETNSListener
- Change startup type to manual for all of them. When you want to start Oracle XE just start manually: OracleServiceXE and OracleXETNSListener
- When you cannot connect to the listener due to:
Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
then check port and hostname in listener.ora and tnsanmes.org (present for my installation in C:\dev\env\oracle11gXE\app\oracle\product\11.2.0\server\network\ADMIN) :
... LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) (ADDRESS = (PROTOCOL = TCP)(HOST = DCNU251B78K.mydomain.com)(PORT = 1521)) ) ) DEFAULT_SERVICE_LISTENER = (XE)
and
XE = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = DCNU251B78K.mydomain.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE) ) ) ...
Here my host is DCNU251B78K.mydomain.com and port 1521
- Then make sure you SqlDeveloper settions are:
- Connection type: Basic
- Role: default
- Hostname: localhost
- Port: 1521
- Selected SID: XE
- If you still cannot connect due to listener problem then open Windows command line (type CMD in Windows program) and type:
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\me>sqlplus "/as sysdba" SQL*Plus: Release 11.2.0.2.0 Production on Wed Aug 10 13:27:24 2016 Copyright (c) 1982, 2014, Oracle. All rights reserved. Connected to: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production SQL> alter system set LOCAL_LISTENER='(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))' scope=both; System altered. SQL> alter system register; System altered. SQL>
and try to reconnect using SqlDeveloper or your app. Alternatively restart OracleServiceXE and OracleXETNSListener services and run the SQL alter statements.
8. Output of the command below should list now XE (which was missing earlier for ORA-12514)
C:\Users\me>lsnrctl status LSNRCTL for 64-bit Windows: Version 11.2.0.2.0 - Production on 10-AUG-2016 14:09:27 Copyright (c) 1991, 2014, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for 64-bit Windows: Version 11.2.0.2.0 - Production Start Date 10-AUG-2016 13:03:59 Uptime 0 days 1 hr. 5 min. 34 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Default Service XE Listener Parameter File C:\dev\env\oracle11gXE\app\oracle\product\11.2.0\server\network\admin\listener.ora Listener Log File C:\dev\env\oracle11gXE\app\oracle\diag\tnslsnr\DCNU251B78K\listener\alert\log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=DCNU251B78K.mycompany.com)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(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... Service "XEXDB" has 1 instance(s). Instance "xe", status READY, has 1 handler(s) for this service... Service "xe" has 1 instance(s). Instance "xe", status READY, has 1 handler(s) for this service... The command completed successfully
Распознавание голоса и речи на C#
UnmanagedCoder 05.05.2025
Интеграция голосового управления в приложения на C# стала намного доступнее благодаря развитию специализированных библиотек и API. При этом многие разработчики до сих пор считают голосовое управление. . .
Реализация своих итераторов в C++
NullReferenced 05.05.2025
Итераторы в C++ — это абстракция, которая связывает весь экосистему Стандартной Библиотеки Шаблонов (STL) в единое целое, позволяя алгоритмам работать с разнородными структурами данных без знания их. . .
Разработка собственного фреймворка для тестирования в C#
UnmanagedCoder 04.05.2025
C# довольно богат готовыми решениями – NUnit, xUnit, MSTest уже давно стали своеобразными динозаврами индустрии. Однако, как и любой динозавр, они не всегда могут протиснуться в узкие коридоры. . .
Распределенная трассировка в Java с помощью OpenTelemetry
Javaican 04.05.2025
Микросервисная архитектура стала краеугольным камнем современной разработки, но вместе с ней пришла и головная боль, знакомая многим — отслеживание прохождения запросов через лабиринт взаимосвязанных. . .
Шаблоны обнаружения сервисов в Kubernetes
Mr. Docker 04.05.2025
Современные Kubernetes-инфраструктуры сталкиваются с серьёзными вызовами. Развертывание в нескольких регионах и облаках одновременно, необходимость обеспечения низкой задержки для глобально. . .
Создаем SPA на C# и Blazor
stackOverflow 04.05.2025
Мир веб-разработки за последние десять лет претерпел коллосальные изменения. Переход от традиционных многостраничных сайтов к одностраничным приложениям (Single Page Applications, SPA) — это. . .
Реализация шаблонов проектирования GoF на C++
NullReferenced 04.05.2025
«Банда четырёх» (Gang of Four или GoF) — Эрих Гамма, Ричард Хелм, Ральф Джонсон и Джон Влиссидес — в 1994 году сформировали канон шаблонов, который выдержал проверку временем. И хотя C++ претерпел. . .
C# и сети: Сокеты, gRPC и SignalR
UnmanagedCoder 04.05.2025
Сетевые технологии не стоят на месте, а вместе с ними эволюционируют и инструменты разработки. В . NET появилось множество решений — от низкоуровневых сокетов, позволяющих управлять каждым байтом. . .
Создание микросервисов с Domain-Driven Design
ArchitectMsa 04.05.2025
Архитектура микросервисов за последние годы превратилась в мощный архитектурный подход, который позволяет разрабатывать гибкие, масштабируемые и устойчивые системы. А если добавить сюда ещё и. . .
Многопоточность в C++: Современные техники C++26
bytestream 04.05.2025
C++ долго жил по принципу «один поток — одна задача» — как старательный солдатик, выполняющий команды одну за другой. В то время, когда процессоры уже обзавелись несколькими ядрами, этот подход стал. . .
• 1 min read
If for any reason you have a two databases running on the same server and one of them is Oracle 11g Express Edition then you will get surprised that listener of XE is not started automatically during boot if there is another listener already running. Debugging the startup script I found that this happens because of a bug in the code, which assumes that XE listener is running if it finds the word LISTENER within the processes list.
In file /etc/init.d/oracle-xe, at line 556 the code is failing:
+ status='oracle 2889 1 0 May13 ? 00:00:05 /oracle/ora112se/bin/tnslsnr LISTENER -inherit'
+ '[' 'oracle 2889 1 0 May13 ? 00:00:05 /oracle/ora112se/bin/tnslsnr LISTENER -inherit' == '' ']'[/plain]
As you can see I have another database running and because of the XE startup script found the keyword LISTENER it’s supposing that the XE LISTENER is already running.
Simply changing line 556 from:
status=`ps -ef | grep tns | grep oracle`[/plain]
To:
status=`ps -ef | grep tns | grep oracle | grep xe`[/plain]
is fixing the error and now XE listener is started automatically during boot.
Regards,
Sve
#1 2013-10-21 15:38:20
- SteveDeFacto
- Member
- Registered: 2013-08-16
- Posts: 158
How to start Oracle Database 11g listener?
When I try to run the listener it gives me this error message:
Message 1070 not found; No message file for product=network, facility=TNSTNS-12545: Message 12545 not found; No message file for product=network, facility=TNS
TNS-12560: Message 12560 not found; No message file for product=network, facility=TNS
TNS-00515: Message 515 not found; No message file for product=network, facility=TNS
Linux Error: 2: No such file or directory
I assume it is a configuration file I need to edit but I have not found any instructions?
Last edited by SteveDeFacto (2013-10-21 15:49:06)
#2 2013-10-21 17:42:39
- Janilson
- Member
- From: Recife-PE/Brazil
- Registered: 2013-03-05
- Posts: 55
Re: How to start Oracle Database 11g listener?
I don’t know which oracle version you are using but, I use the Express version (Oracle-xe)
In order to configure it I run
sudo /etc/rc.d/oracle-xe configure
After configure oracle, I start oracle service
sudo /etc/rc.d/oracle-xe start
I don’t know if it helps
#3 2013-10-22 13:20:02
- stee1rat
- Member
- Registered: 2013-10-22
- Posts: 70
Re: How to start Oracle Database 11g listener?
What command do you use to run it? And what are your environment variables?
#4 2013-10-23 13:24:15
- SteveDeFacto
- Member
- Registered: 2013-08-16
- Posts: 158
Re: How to start Oracle Database 11g listener?
Janilson wrote:
I don’t know which oracle version you are using but, I use the Express version (Oracle-xe)
In order to configure it I runsudo /etc/rc.d/oracle-xe configure
After configure oracle, I start oracle service
sudo /etc/rc.d/oracle-xe start
I don’t know if it helps sad
I don’t see any thing in rc.d. I use systemctl to start daemons.
stee1rat wrote:
What command do you use to run it? And what are your environment variables?
lsnrctl start
#5 2013-10-24 13:22:37
- gurnaik
- Member
- From: Smethwick
- Registered: 2011-09-07
- Posts: 13
Re: How to start Oracle Database 11g listener?
The error messages are:
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
I’m not sure how you installed Oracle 11g, but the instructions here: https://wiki.archlinux.org/index.php/Or … erlands%29 (use Google translate if you need to), have worked for me. You can try running netca and dbca to see if you can get them to configure the database correctly.
—
«You know what they say: no good deed goes unpunished.»
#6 2013-10-24 14:12:12
- stee1rat
- Member
- Registered: 2013-10-22
- Posts: 70
Re: How to start Oracle Database 11g listener?
What are your environment variables?
env | grep ORA
env | grep TNS
The configuration files for SQL*Net stored in $ORACLE_HOME/network/admin by default or in $TNS_ADMIN if it’s set.
But it doesn’t seem that you have problem with them. It looks like lsnrctl couldn’t find its message files in $ORACLE_HOME/network/mesg.
You probably haven’t set your ORACLE_HOME variable correctly.