Re: ORA-12514 with 10g Install (LONG...)

From: Frank van Bortel <frank.van.bortel_at_gmail.com>
Date: Sat, 29 Dec 2007 16:19:49 +0100
Message-ID: <53be7$47766592$524b5c40$26981@cache5.tilbu1.nb.home.nl>


OK - installed XE on Xp.

For one - you do not need a listener for local SQL*plus connection:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>sqlplus system/manager
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Dec 29 15:22:28 2007 Copyright (c) 1982, 2005, Oracle. All rights reserved.

Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production

Running the option "Run SQL Command line" from the XE menu yields similar results:

SQL*Plus: Release 10.2.0.1.0 - Production on Sat Dec 29 15:28:56 2007 Copyright (c) 1982, 2005, Oracle. All rights reserved.

SQL> conn system/manager
Connected.

No connect string required...

If you insist on using a connect string, there's a slight problem. As there is no XE service defined in the listener, XE needs to register itself, which can take a while. Your symptoms match beautifully:

C:\>tnsping xe
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 29-DEC-2007 15:23:07 Copyright (c) 1997, 2005, Oracle. All rights reserved.

Used parameter files:
c:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora

Used TNSNAMES adapter to resolve the alias Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = cs-frank03)(PORT = 1521))(CONNECT_DATA = [snipped] (SERVICE_NAME = XE))) TNS-12541: TNS:no listener

C:\>lsnrctl status

LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 29-DEC-2007 15:23:15 Copyright (c) 1991, 2005, Oracle. All rights reserved.

Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=cs-frank03)(PORT=1521))) TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   32-bit Windows Error: 61: Unknown error 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                29-DEC-2007 15:14:38
Uptime                    0 days 0 hr. 8 min. 38 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=tcp)(HOST=127.0.0.1)(PORT=1521)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc))) 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

So - there *is* a listener, but it does not service XE 9it does service PLSExtProc and CLRExtProc, though)

Now - in order to get rid of the first error lines, revert the IPC and TCP lines in listener.ora - I'll post mine lateron. *From the beginning*:
C:\>lsnrctl start

LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 29-DEC-2007 15:48:01
Copyright (c) 1991, 2005, Oracle. All rights reserved. Starting tnslsnr: please wait...

TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production System parameter file is
c:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora Log messages written to
c:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log Listening on:
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc))) Listening on:
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=cs-frank03)(PORT=1521)))

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                29-DEC-2007 15:48:02
Uptime                    0 days 0 hr. 0 min. 1 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=cs-frank03)(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

*Note: NO XE services!* Now, manually register the instance with the listener:
C:>sqlplus system/manager
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Dec 29 15:48:11 2007 Copyright (c) 1982, 2005, Oracle. All rights reserved.

Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production

SQL> alter system register;
System altered.
SQL> exit

C:\>lsnrctl status
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 29-DEC-2007 15:48: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                29-DEC-2007 15:48:02
Uptime                    0 days 0 hr. 0 min. 21 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=cs-frank03)(PORT=1521)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=HTTP)(Session=RAW)) 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_XPT" 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

Please note:
*XE, XEXDB and XE_XPT* are all serviecs; now you should be able to connect *with as well as without tns alias*:

C:\>sqlplus system/manager_at_xe
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Dec 29 15:48:37 2007 Copyright (c) 1982, 2005, Oracle. All rights reserved.

Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production

In your first post, you mentioned:
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production Message 279 not found; No message file for product=NETWORK, facility=NL
Message 1073 not found; No message file for product=NETWORK, facility=TNS

This sounds like wrong environment settings...

My listener.ora:



SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = c:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)

    )
    (SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = c:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)

    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = cs-frank03)(PORT = 1521))
    )
  )

DEFAULT_SERVICE_LISTENER = (XE)



tnsnames.ora:
XE =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))     (CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)

    )
  )

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

    )
  )

ORACLR_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    )
    (CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)

    )
  )


Although I tested with these listener and tnsnames files successfully, too:

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = cs-frank03)(PORT = 1521))
    )
  )

DEFAULT_SERVICE_LISTENER = (XE)



XE =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))     (CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)

    )
  )

One last observation: changing the listener address to localhost causes XE to no longer register itself - symptoms are: before mentioned ORA-12514, or TNS-12541, or http home page is unavailable.
Changing the address in tnsnames from the actual host name (cs-frank03) to localhost makes no difference. Not that the homepage is at 127.0.0.1, too.

-- 
Regards,
Frank van Bortel

Top-posting is one way to shut me up...
Received on Sat Dec 29 2007 - 09:19:49 CST

Original text of this message