473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Listener cannot read SERVICE_NAME in TNS-Descriptor

Hi,

I have a listener problem. The listener cannot read SERVICE_NAME in
TNS-Descriptor. The service-name I specified in Oracle Net Manager for
this database is testdb as well.

(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP) (HOST=axel-0560nntbn1)
(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERV ICE_NAME=testdb)))

It is a local database so I tried testdb.localhost, but this didn't
work too!

Thanks

Axel
Jul 19 '05 #1
5 13397
Axel Dachtler wrote:
Hi,

I have a listener problem. The listener cannot read SERVICE_NAME in
TNS-Descriptor. The service-name I specified in Oracle Net Manager for
this database is testdb as well.

(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP) (HOST=axel-0560nntbn1)
(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERV ICE_NAME=testdb)))

It is a local database so I tried testdb.localhost, but this didn't
work too!

Thanks

Axel


You did not provide enough information to troubleshoot the problem.
A listener is NOT required to access a local database.

"didn't work"?
EXACTLY what did not work?
EXACTLY what was the error message?
I have NO idea what you actually tried to do
or the error message with which Oracle responded.
Jul 19 '05 #2
> EXACTLY what did not work?
EXACTLY what was the error message?

I added a new database MYBD to the tree. But I cannot access MYDB. I
get this message:

ORA-12514: TNS:Listener couldn't dissolve SERVICE_NAME in connection
descriptor

(translated from German into English!)

That is in my tnsnames.ora:

MYDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = axel-0560nntbn1)(PORT =
1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = mydb)
)
)
Thanks
Axel
Jul 19 '05 #3
Axel Dachtler wrote:
EXACTLY what did not work?
EXACTLY what was the error message?


I added a new database MYBD to the tree. But I cannot access MYDB. I
get this message:

ORA-12514: TNS:Listener couldn't dissolve SERVICE_NAME in connection
descriptor

(translated from German into English!)

That is in my tnsnames.ora:

MYDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = axel-0560nntbn1)(PORT =
1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = mydb)
)
)
Thanks
Axel


1) What Operating System (OS)?
2) What OS version?
3) What is contents of listener.ora file
4) EXACTLY what are you doing to generate the ORA-12514 error?
5) If you are logged onto the actual database server system DIRECTLY,
then SQL*Net and Listener is NOT required to connect to the database.
6) "ping axel-0560nntbn1"
produces what output?
(without double quote marks)
7) lsnrctl status
produces what output?
8) while logged onto the database server
what is produced when the following is entered at the command line?
sqlplus
/ as sysdba
exit

Jul 19 '05 #4
> 1) What Operating System (OS)?
2) What OS version?
3) What is contents of listener.ora file
4) EXACTLY what are you doing to generate the ORA-12514 error?
5) If you are logged onto the actual database server system DIRECTLY,
then SQL*Net and Listener is NOT required to connect to the database.
6) "ping axel-0560nntbn1"
produces what output?
(without double quote marks)
7) lsnrctl status
produces what output?
8) while logged onto the database server
what is produced when the following is entered at the command line?
sqlplus
/ as sysdba

1) Windows XP
2) OS version 2002

3a) contents of tnsnames.ora:

# TNSNAMES.ORA Network Configuration File:
C:\oracle\ora92\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.

INST1_HTTP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = axel-0560nntbn1)(PORT =
1521))
)
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = MODOSE)
(PRESENTATION = http://HRService)
)
)

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

ORACLE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = axel-0560nntbn1)(PORT =
1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = oracle.localhost)
)
)

MYDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = axel-0560nntbn1)(PORT =
1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = mydb.localhost)
)
)

3b) contents of listener.ora:

# LISTENER.ORA Network Configuration File:
C:\oracle\ora92\network\admin\listener.ora
# Generated by Oracle configuration tools.

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = axel-0560nntbn1)(PORT =
1521))
)
)
)

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\ora92)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = oracle.localhost)
(ORACLE_HOME = C:\oracle\ora92)
(SID_NAME = oracle)
)
)
4) ORA-12514 error: I doubleklick on the database icon of MYDB I just
added to the tree to open it! There is a pre-configured database
called "oracle" in the tree. When I click on this one it changes into
"oracle - Axel as sysdba" and opens.

5) I run Oracle 9i on my laptop, so I am logged onto the database
server system DIRECTLY. You say a Listener is NOT required to connect
to a database directly. But why do I get bothered by this ORA-12514
error ?

6) ping statistic for 172.0.0.1:
response from 172.0.0.1: Bytes = 32 time <1ms TTL 128
(4 times)
package: sent = 4 got = 4 lost = 0

7)lsnrctl status produces these Services:

-----------------------

Dienst "PLSExtProc" ...

Dienst "oracle.localhost" ...

Dienst "oracleXDB.localhost" ...

--------------------------

obviously there is no service running for MYDB !?
Thanks Axel
Jul 19 '05 #5
Axel Dachtler wrote:
1) What Operating System (OS)?
2) What OS version?
3) What is contents of listener.ora file
4) EXACTLY what are you doing to generate the ORA-12514 error?
5) If you are logged onto the actual database server system DIRECTLY,
then SQL*Net and Listener is NOT required to connect to the database.
6) "ping axel-0560nntbn1"
produces what output?
(without double quote marks)
7) lsnrctl status
produces what output?
8) while logged onto the database server
what is produced when the following is entered at the command line?
sqlplus
/ as sysdba


1) Windows XP
2) OS version 2002

3a) contents of tnsnames.ora:

# TNSNAMES.ORA Network Configuration File:
C:\oracle\ora92\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.

INST1_HTTP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = axel-0560nntbn1)(PORT =
1521))
)
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = MODOSE)
(PRESENTATION = http://HRService)
)
)

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

ORACLE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = axel-0560nntbn1)(PORT =
1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = oracle.localhost)
)
)

MYDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = axel-0560nntbn1)(PORT =
1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = mydb.localhost)
)
)

3b) contents of listener.ora:

# LISTENER.ORA Network Configuration File:
C:\oracle\ora92\network\admin\listener.ora
# Generated by Oracle configuration tools.

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = axel-0560nntbn1)(PORT =
1521))
)
)
)

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\ora92)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME = oracle.localhost)
(ORACLE_HOME = C:\oracle\ora92)
(SID_NAME = oracle)
)
)
4) ORA-12514 error: I doubleklick on the database icon of MYDB I just
added to the tree to open it! There is a pre-configured database
called "oracle" in the tree. When I click on this one it changes into
"oracle - Axel as sysdba" and opens.

5) I run Oracle 9i on my laptop, so I am logged onto the database
server system DIRECTLY. You say a Listener is NOT required to connect
to a database directly. But why do I get bothered by this ORA-12514
error ?

6) ping statistic for 172.0.0.1:
response from 172.0.0.1: Bytes = 32 time <1ms TTL 128
(4 times)
package: sent = 4 got = 4 lost = 0

7)lsnrctl status produces these Services:

-----------------------

Dienst "PLSExtProc" ...

Dienst "oracle.localhost" ...

Dienst "oracleXDB.localhost" ...

--------------------------

obviously there is no service running for MYDB !?
Thanks Axel

Upon further review & reading between the lines
it might be the case that you think you added a
new database/instance onto this system.

Somehow I serious doubt that by simply manipulating
some silly GUI that you actually created a 2nd DB.

If you log into the "oracle" DB which seems to be OK,
please do the following:
SELECT FILE_NAME FROM DBA_DATA_FILES;

The result is a collection of files which comprise
the majority of this instance.

If, in fact, a 2nd DB exists on this system,
you should be able to locate files with similar
or identical name which reside in a different path
where typically the pathname includes the SID.

My gut says that you do not have two databases on this system.

Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Cherrish Vaidiyan | last post by:
Hello all, A warm Xmas greetings to all. I have a small problem with starting up the database. Here my strategy. I have installed Oracle 9i R 2 on Red Hat 9. i created two database on this...
1
by: Cherrish Vaidiyan | last post by:
sir, I have a small error in Listener configuration.I have two system with a database in each. I am using Red Hat 9 and Oracle 9i. so i shall anme the database and system. system 1 - node2 ...
6
by: Ellen K. | last post by:
Hi all, I'm a developer. While at my current job I've been working with mostly SQL Server, now I need to connect to our Oracle Financials running on HP-UX. The Oracle DBA set me up as a user...
1
by: Marc | last post by:
Hi! I'm working with a C# client that calls a php web service. I've created a wrapper to call the service using .NET wsdl tool (adding a web reference). The call to the server works fine, it...
0
by: kalpanaanand | last post by:
I am new to Oracle 9i client. i tried to log in but i am getting this error. this is my listenerfile # LISTENER.ORA Network Configuration File: C:\ProgramFiles\oracle\NETWORK\ADMIN\listener.ora #...
1
by: smita81 | last post by:
Hi, I have a problem while trying to login to toad. My operating system is WINDOWS XP. I have Oracle 9i at my system. I installed the Toad into the system.When I start the Toad "Toad Server...
5
by: Nitvar | last post by:
When i am trying to connect to oracle it is giving me these two errors ORA-12224: TNS:no listener ORA-01034: ORACLE not available I am new to oracle ,plz help I am using solaris 5.6 and...
2
by: trakal | last post by:
Hello all readers, I have a question concerning an error that i really want to understand. I have an application client (C#) that connect to an Oracle server. Normally, it work good but just this...
1
by: www.douglassdavis.com | last post by:
I have an Apache server, PHP 5.2.5 and Oracle 10g Express Edition for development purposes on my laptop running Windows XP. I am using OCI to connect to Oracle from PHP I am using MDB2...
1
by: michael ngong | last post by:
michael.john@gmx.at (Michael John) wrote in message news:<90cc4edd.0306230900.28075193@posting.google.com>... MIchael I you stated the OS and platform that could make it easier to address your...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.