473,386 Members | 1,886 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,386 software developers and data experts.

ORA-12224 TNS:no listener

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 and installed
the Oracle client on my box and I have the tnsnames file, but I still
can't establish a connection to the database from my development
environment... I'm getting an error message "ORA-12224 TNS:no
listener".

At a previous company I also had Visual Studio and was able to connect
to the Oracle databases from it... I want to do the same thing here,
plus I need to set the Oracle database up as a "linked server" with my
SQL Servers so I can make distributed transactions. (No heart
attacks please, I'm going to create a couple of tables on the Oracle
side and the Oracle DBA will put triggers on them so that whenever I
insert to them he grabs the data and feeds it to the canned processes
in OF.)

The Oracle DBA gave me a little utility with a window where I can type
freehand SQL and get results but not nicely, so I know the connection
isn't impossible, but I need to be able to address the Oracle database
programmatically. I thought the problem might be related to the fact
that I don't see the unix box in Network, although I can ping it
either by name or IP address... the Oracle guy said for me to see it
in Network he'd have to install something I forget the name of.
(Something like NFS???) Someone suggested I put an entry in the hosts
file, which I did, to no avail... although I think it's in the wrong
place, it's in WINNT\System32\Drivers\etc. The Oracle guy says he
thinks the problem is that the MS OLE DB Provider for Oracle doesn't
know to look in the tnsnames file, but I find that difficult to
believe. He said maybe somewhere I need to enter a "path" to it...
(I vaguely remember something about setting paths back in the DOS
days...)

So anyway, can any of you tell me what to do?

Thanks very much in advance. :)
Jul 19 '05 #1
6 16614
On Wed, 12 May 2004 01:08:44 -0700, in comp.databases.oracle, Ellen K.
<72************************@compuserve.com> scribbled:
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 and installed
the Oracle client on my box and I have the tnsnames file, but I still
can't establish a connection to the database from my development
environment... I'm getting an error message "ORA-12224 TNS:no
listener".

At a previous company I also had Visual Studio and was able to connect
to the Oracle databases from it... I want to do the same thing here,
plus I need to set the Oracle database up as a "linked server" with my
SQL Servers so I can make distributed transactions. (No heart
attacks please, I'm going to create a couple of tables on the Oracle
side and the Oracle DBA will put triggers on them so that whenever I
insert to them he grabs the data and feeds it to the canned processes
in OF.)

The Oracle DBA gave me a little utility with a window where I can type
freehand SQL and get results but not nicely, so I know the connection
isn't impossible, but I need to be able to address the Oracle database
programmatically. I thought the problem might be related to the fact
that I don't see the unix box in Network, although I can ping it
either by name or IP address... the Oracle guy said for me to see it
in Network he'd have to install something I forget the name of.
(Something like NFS???) Someone suggested I put an entry in the hosts
file, which I did, to no avail... although I think it's in the wrong
place, it's in WINNT\System32\Drivers\etc. The Oracle guy says he
thinks the problem is that the MS OLE DB Provider for Oracle doesn't
know to look in the tnsnames file, but I find that difficult to
believe. He said maybe somewhere I need to enter a "path" to it...
(I vaguely remember something about setting paths back in the DOS
days...)

So anyway, can any of you tell me what to do?

Thanks very much in advance. :)


When connecting to Oracle in Visual Studio, I have to set up a DSN in
Admin Tools | ODBC Data Sources. That may be what you mean in your
last paragraph, that you have set it up there. What language are you
using "programmatically"?

--
Teresa Redmond
Programmer/Analyst III
Anteon Corporation
tredmond at anteon dot com
Jul 19 '05 #2
I can certainly try that, but the process of setting up an OLE DB
connection is really quite similar to setting up an ODBC one... if I
use ODBC I'm inserting an extra layer. At the company where I used
Oracle before I was able to define an OLE DB connection. Still, it
can't hurt to try, thanks. :)

On Wed, 12 May 2004 14:51:04 GMT, Teresa Redmond
<XK**********@spammotel.co> wrote:
On Wed, 12 May 2004 01:08:44 -0700, in comp.databases.oracle, Ellen K.
<72************************@compuserve.com> scribbled:
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 and installed
the Oracle client on my box and I have the tnsnames file, but I still
can't establish a connection to the database from my development
environment... I'm getting an error message "ORA-12224 TNS:no
listener".

At a previous company I also had Visual Studio and was able to connect
to the Oracle databases from it... I want to do the same thing here,
plus I need to set the Oracle database up as a "linked server" with my
SQL Servers so I can make distributed transactions. (No heart
attacks please, I'm going to create a couple of tables on the Oracle
side and the Oracle DBA will put triggers on them so that whenever I
insert to them he grabs the data and feeds it to the canned processes
in OF.)

The Oracle DBA gave me a little utility with a window where I can type
freehand SQL and get results but not nicely, so I know the connection
isn't impossible, but I need to be able to address the Oracle database
programmatically. I thought the problem might be related to the fact
that I don't see the unix box in Network, although I can ping it
either by name or IP address... the Oracle guy said for me to see it
in Network he'd have to install something I forget the name of.
(Something like NFS???) Someone suggested I put an entry in the hosts
file, which I did, to no avail... although I think it's in the wrong
place, it's in WINNT\System32\Drivers\etc. The Oracle guy says he
thinks the problem is that the MS OLE DB Provider for Oracle doesn't
know to look in the tnsnames file, but I find that difficult to
believe. He said maybe somewhere I need to enter a "path" to it...
(I vaguely remember something about setting paths back in the DOS
days...)

So anyway, can any of you tell me what to do?

Thanks very much in advance. :)


When connecting to Oracle in Visual Studio, I have to set up a DSN in
Admin Tools | ODBC Data Sources. That may be what you mean in your
last paragraph, that you have set it up there. What language are you
using "programmatically"?


Jul 19 '05 #3
Just for the record, although I didn't expect it to work, I tried
setting up a DNS. It didn't work.

We now have a new error (I think this is progress), 12514, it can't
find RDBMS80.

On Wed, 12 May 2004 14:51:04 GMT, Teresa Redmond
<XK**********@spammotel.co> wrote:

When connecting to Oracle in Visual Studio, I have to set up a DSN in
Admin Tools | ODBC Data Sources. That may be what you mean in your
last paragraph, that you have set it up there. What language are you
using "programmatically"?


Jul 19 '05 #4
On Fri, 14 May 2004 00:00:10 -0700, in comp.databases.oracle, Ellen K.
<72************************@compuserve.com> scribbled:
Just for the record, although I didn't expect it to work, I tried
setting up a DNS. It didn't work.

We now have a new error (I think this is progress), 12514, it can't
find RDBMS80.


This is the error message on OTN:

TNS-12514 TNS:listener could not resolve SERVICE_NAME given in connect
descriptor

Cause: The SERVICE_NAME in the CONNECT_DATA was not found in the
listener's tables.

Action: Check to make sure that the SERVICE_NAME specified is correct.
You might want to check your TNSNAMES.ora file to make sure the
information for RDBMS80 is correct: or if it is missing. That would
be my first shot after seeing this message.

Also, I find this link to be invaluable:

<http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76999/toc.htm>

It's the error message TOC for Oracle 8i, which I am running. Any
time I get an error, that's where I go first. I had to go two links
in to find your error above, but I find this site to be very easy to
use. Sometimes the message is not necessarily the issue, but it can
point you in the right direction.

Also, here's what I do in my VB code to connect. I use the
connection.connectionstring property to set up the connection to
Oracle, and it uses the DSN that I set up in ODBC:

Set cn = New ADODB.Connection
cn.CursorLocation = adUseClient
cn.ConnectionString = "Provider=MSDAORA.1;" & _
"Password=****;User Id=username;Data Source=SourceName"
cn.Open

The DSN I set up is MS ODBC for Oracle, the name is SourceName just
like in my string above, and the server information I use is the IP
address of the machine I'm accessing.

I don't know if this will help, it may be stuff you've already done,
but it just may give you an idea of where I'm coming from in my
thoughts and maybe help you.

--
Teresa Redmond
Programmer/Analyst III
Anteon Corporation
tredmond at anteon dot com
Jul 19 '05 #5
Thanks for all the info. :)

Somewhere I have a copy of the Oracle documentation on CD (left over
from my previous job), but anyway the Oracle DBA promised me a new
one... Really this problem is his responsibility but I'm not one to
let grass grow under my feet so I've been trying to find out whatever
I can that might help. He did make some modifications to the
tnsnames file, which is how we got from the original error to this
one.

On Fri, 14 May 2004 15:09:48 GMT, Teresa Redmond
<XK**********@spammotel.com> wrote:
On Fri, 14 May 2004 00:00:10 -0700, in comp.databases.oracle, Ellen K.
<72************************@compuserve.com> scribbled:
Just for the record, although I didn't expect it to work, I tried
setting up a DNS. It didn't work.

We now have a new error (I think this is progress), 12514, it can't
find RDBMS80.


This is the error message on OTN:

TNS-12514 TNS:listener could not resolve SERVICE_NAME given in connect
descriptor

Cause: The SERVICE_NAME in the CONNECT_DATA was not found in the
listener's tables.

Action: Check to make sure that the SERVICE_NAME specified is correct.
You might want to check your TNSNAMES.ora file to make sure the
information for RDBMS80 is correct: or if it is missing. That would
be my first shot after seeing this message.

Also, I find this link to be invaluable:

<http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76999/toc.htm>

It's the error message TOC for Oracle 8i, which I am running. Any
time I get an error, that's where I go first. I had to go two links
in to find your error above, but I find this site to be very easy to
use. Sometimes the message is not necessarily the issue, but it can
point you in the right direction.

Also, here's what I do in my VB code to connect. I use the
connection.connectionstring property to set up the connection to
Oracle, and it uses the DSN that I set up in ODBC:

Set cn = New ADODB.Connection
cn.CursorLocation = adUseClient
cn.ConnectionString = "Provider=MSDAORA.1;" & _
"Password=****;User Id=username;Data Source=SourceName"
cn.Open

The DSN I set up is MS ODBC for Oracle, the name is SourceName just
like in my string above, and the server information I use is the IP
address of the machine I'm accessing.

I don't know if this will help, it may be stuff you've already done,
but it just may give you an idea of where I'm coming from in my
thoughts and maybe help you.


Jul 19 '05 #6
On Fri, 14 May 2004 10:53:25 -0700, in comp.databases.oracle, Ellen K.
<72************************@compuserve.com> scribbled:
Thanks for all the info. :)
No problem. I know how frustrating it is to figure out why you're
getting a TNS error! And me with several TNSNAMES files for several
processes running on several computers/servers...
Somewhere I have a copy of the Oracle documentation on CD (left over
from my previous job), but anyway the Oracle DBA promised me a new
one... Really this problem is his responsibility but I'm not one to
let grass grow under my feet so I've been trying to find out whatever
I can that might help. He did make some modifications to the
tnsnames file, which is how we got from the original error to this
one.


I seriously recommend using SQL*Net to configure your TNSNAMES, or
whatever the name of your TNSNAMES configuring tool is (that's the
name of what I have). Whenever I've gone in and tried to do anything
with TNSNAMES freehand I tend to get into more trouble, unless I'm
doing something innocuous (for me, anyway) like changing the IP
address of the connection. I got into trouble once because I was
using computer names instead of IP addresses, and when we move to a
new location that was fine, but then the helpdesk people went around
changing everyone's machine names to reflect the location. Boom. No
connection to Oracle. So, now it's all IP based, and I've had to yell
a few times in the past over someone somewhere changing IPs without
telling anyone, but that's "not done" anymore. ;-)

--
Teresa Redmond
Programmer/Analyst III
Anteon Corporation
tredmond at anteon dot com
Jul 19 '05 #7

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

Similar topics

8
by: Shino | last post by:
Hi, Can anyone help with this error: "ORA-00904: invalid column name"? Thanks! SQL> create view PPFa as 2 SELECT L.UserID AS LecID, U.Name, U.Email, I.IntakeID, S.UserID AS StudID 3 FROM...
1
by: Galina | last post by:
Hello I have created a trigger not to let records with certain fields null to be inserted into the table: BEGIN IF :new.RUL_CODE is null or :new.FES_UINS_CODE is null or :new.FES_UIO_CALOCC is...
7
by: Cherrish Vaidiyan | last post by:
hello, I am been getting mad with so many doubts and errors.. I have posted some doubts,test cases regarding listener,replication and standby database.But i havent got any response..(I am...
1
by: Adam Ruth | last post by:
I'm using OCI on Mac OS X and I've run into a strange problem with my TNSNAMES.ORA file. My TNSNAMES.ORA file has one entry INV4II and it works fine. However, it will only work if that is the...
2
by: J.Bijleveld | last post by:
Hello colleagues, At this moment we have a real big problem using a .NET application with an Oracle database (v8.1.6). I hope someone has encountered this problem before and is able to help me...
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 #...
2
by: Dwie | last post by:
Dear All, I'm a new in Oracle DB. I'm using Windows 2000 as server and Windows XP as client. I installed Oracle Enterprise on server and Oracle 8.1 on clients. I have some client with 2 different...
3
by: karpalmera | last post by:
We have checked the status of listener and it's okay. ORAORD7, TNSG473 & G4G407 are okay. Still, we are encountering this problem when trying to connect to DB2....
0
by: Zahi Savion | last post by:
Hi All, I tried evething: but no help, I'm connecting from my home trough 1.5 MB ADSL Line to Oracle Server and getting ORA-12170 Oracle 10g Actions that didn't help:
0
by: wolfee | last post by:
I'm running 10gR2 RAC in Prod, Test and DEV and after doing a clone to the DEV environment I'm getting a wierd ORA-12514 error for only one node. I can tnsping the node and it comes back fine. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.