Oracle XE TNSListerner Service Failure

Problem:

Oracle XE services in Windows refuses to start. An attempt to start  it from the ‘Services Windows’ in Windows 7 results in a dialog showing:

The OracleXETNSLIsterner service on Local Computer started and then stopped.
Some services stop automatically if they are not in use by other services or programs.

Prerequisites:

  • Oracle 11g Express Edition, most probably it affects other oracle editions/versions.
  • Windows 7  O/S, symptoms only noted on Windows.

Resolution steps:

1. Go to the command prompt and check the listener status

C:\>lsnrctl status

LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 – Production on 17-SEP-2012 11:56:25

Copyright (c) 1991, 2005, 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
32-bit Windows Error: 2: No such file or directory
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=srv01.olddomain.org)(PORT=1521)))
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
32-bit Windows Error: 1001: Unknown error

TNS-12545, TNS-12560, and TNS-00515 errors occur after a migration to a new domain, oracle network files – tnsnames.ora and listener.ora – still references the old domain.

2. Change the domain part of the host to the new one

3. Restart the service :

C:\>lsnrctl start

or

From the ‘Services Windows’ in Windows 7

4. Check the listerner’s status again.

C:\>lsnrctl status

LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 – Production on 17-SEP-2012 12:22:24

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
————————
Alias                     LISTENER
Version                   TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 – Production
Start Date                17-SEP-2012 12:21:48
Uptime                    0 days 0 hr. 0 min. 36 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Default Service           XE
Listener Parameter File   C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
Listener Log File         C:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
Listening Endpoints Summary…
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srv01.newdomain.org)(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

Result:

Oracle TNS Listener is now running without any problem.

2 Responses to Oracle XE TNSListerner Service Failure

  1. sam says:

    how do we change domain part of the host to the new one?,,kindly show us

Leave a comment