Solved

Oracle Error: ORA-12514 on local Ubuntu Installation of XE

Posted on 2007-11-21
3
2,112 Views
Last Modified: 2013-12-18
I am trying a new installation of Oracle XE on an Ubuntu 7.10 Server.  After completing the installation, I attempt to login to SQLPLUS as follows:

sqlplus system@xe

SQL*Plus: Release 10.2.0.1.0 - Production on Wed Nov 21 21:17:37 2007

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

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

If I do a tnsping on XE, it comes back as:

tnsping xe

TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 21-NOV-2007 21:21:22

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

Used parameter files:


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ubuntu-server)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
OK (10 msec)


What is causing the ORA-12514 when I try to login using SQLPLUS?
0
Comment
Question by:TotalEnergy
3 Comments
 
LVL 47

Accepted Solution

by:
schwertner earned 250 total points
ID: 20334634
For STATIC registration of the Oracle service to the Listener:

Go to the remote 10g installation where the Oracle server resides.

Backup LISTENER.ORA file!!!!!!!

In ...\network\admin open listener.ora

see

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = D:\Ora10g)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (SID_NAME = test)
      (ORACLE_HOME = D:\Ora10g)
    )
  )

Add the entry
    (SID_DESC =
      (SID_NAME = test)
      (ORACLE_HOME = D:\Ora10g)
    )
with regard to the particular Oracle Home and SID Name.

Restart the listener:
c:>lsnrctl stop
c:>lsnctl start

0
 
LVL 11

Assisted Solution

by:Akenathon
Akenathon earned 250 total points
ID: 20334813
TNSPING proves that you can get to the LISTENER only. The problem is that no DB has registered under that service name with it.

1) Check your service_name db parameter
2) Ensure the DB reaches the listener: If it's not on the default 1521 port of the local host, you've got to tell the DB where the listener is running using the parameter local_listener
3) PMON registers every 60 seconds, but you can alter system register to force it
4) Check doing "lsnrctl services" which services the listener does know of

You'll no doubt troubleshoot the problem with all that, please update the thread :-)
0
 

Author Comment

by:TotalEnergy
ID: 20334851
I got it to work. I uninstalled oracle-xe and purged all configuration files. I did a fresh install but not before I installed the bc package.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many‚Ķ
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to recover a database from a user managed backup

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question