473,714 Members | 2,623 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
programmaticall y. 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 16668
On Wed, 12 May 2004 01:08:44 -0700, in comp.databases. oracle, Ellen K.
<72************ ************@co mpuserve.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
programmatical ly. 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 "programmatical ly"?

--
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**********@s pammotel.co> wrote:
On Wed, 12 May 2004 01:08:44 -0700, in comp.databases. oracle, Ellen K.
<72*********** *************@c ompuserve.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
programmatica lly. 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 "programmatical ly"?


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**********@s pammotel.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 "programmatical ly"?


Jul 19 '05 #4
On Fri, 14 May 2004 00:00:10 -0700, in comp.databases. oracle, Ellen K.
<72************ ************@co mpuserve.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.conn ectionstring property to set up the connection to
Oracle, and it uses the DSN that I set up in ODBC:

Set cn = New ADODB.Connectio n
cn.CursorLocati on = adUseClient
cn.ConnectionSt ring = "Provider=MSDAO RA.1;" & _
"Password=****; User Id=username;Dat a Source=SourceNa me"
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**********@s pammotel.com> wrote:
On Fri, 14 May 2004 00:00:10 -0700, in comp.databases. oracle, Ellen K.
<72*********** *************@c ompuserve.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.con nectionstring property to set up the connection to
Oracle, and it uses the DSN that I set up in ODBC:

Set cn = New ADODB.Connectio n
cn.CursorLocati on = adUseClient
cn.ConnectionSt ring = "Provider=MSDAO RA.1;" & _
"Password=****; User Id=username;Dat a Source=SourceNa me"
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************ ************@co mpuserve.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
64827
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 User_Lecturer L, User_Student S, TBL_Intake I, Users U 4 WHERE L.UserID=S.InitialSupervisorID And L.UserID=U.UserID And
1
26772
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 null then RAISE_APPLICATION_ERROR(-20000,'Record is not saved. Check course record and try to save again.'); end if;
7
12867
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 sorry as some of the queries i have posted twice).Is it that my doubt are funny and simple for u gurus. I am just interested in Oracle on Linux . i request u all to guide me.
1
5153
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 name of the entry. If I use any other name for that entry I get the dreaded ORA-12154. For example: TNSNAMES.ORA -> INV4II Application -> INV4II :: works fine TNSNAMES.ORA -> INV4DEV Application -> INV4DEV :: ORA-12154 TNSNAMES.ORA -> INV4DEV...
2
8446
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 with it. The problem is that we *Sometimes* get the ORA-24338 error when executing a query. This problem occurs random, sometimes twice a day, sometimes not at all. In the eventlog we get an exception like this one (stacktrace):
0
3899
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 # Generated by Oracle configuration tools. SID_LIST_TEST = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = Oracle9) (ORACLE_HOME = C:\ProgramFiles)
2
43620
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 IP address, 172.16.xx.xx and 192.168.xxx.xx whices I want to connect to the server DB. How can I set the Listener.ora & Tnsnames.ora so all clients could connect to server. Right now I can connect just only one IP and the other IP is offline, but...
3
8257
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. =================================================== Oracle7 Server Release 7.2.3.0.0 - Production Release With the distributed option PL/SQL Release 2.2.3.0.0 - Production SQL> desc tablev@oramvs ERROR:
0
4735
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
3494
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. Oracle Home is shared, so I'm using the same listener.ora file and tnsnames.ora file from both nodes. I can connect using sqlplus @<node1> fine and @<service name> fine but when I try to connect @<node2> I get the ORA-12514. This is odd because I have...
0
8707
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9314
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9174
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9015
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7953
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6634
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5947
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2520
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2110
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.