ODBC Oracle Connection 10g

Este forum é destinado a perguntas relacionadas a Oracle, mas que não se enquadram nos forums acima. Aqui serão tratadas também sobre outras tecnologias da oracle, como o Workflow, BPEL, Spatial, OCS, etc.
Post Reply
Pomps
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Wed, 17 Mar 2010 10:01 am
Location: Minas Gerais

Good morning
I'm trying to make an ODBC connection from Oracle Client 10g, but the error is or-12154: TNS: Could not resolve the invalid connection identifier!
From what I'vê read, you have to set up the tnnames.ora file! I made the file here with the host and the door .. but I do not know where to put it inside the installation part!
say it's along with TNS_ADMIN, but I did not find him too!

Sera q How can you help me?

Thank you ..!
victorhugomuniz
Moderador
Moderador
Posts: 1396
Joined: Fri, 01 Feb 2008 2:06 pm
Location: Rio de Janeiro - RJ
Contact:
:D

TNS_ADMIN is a variable environment that some use to set the site of tnsnames.ora .. but it is not necessary

you should put your file in a path similar to this

Select all

\ora92\network\ADMIN
mine and so oh

Select all

C:\oracle\ora92\network\ADMIN
diegolenhardt
Moderador
Moderador
Posts: 1177
Joined: Thu, 15 Oct 2009 10:28 am
Location: Recife

It is not necessary to configure this variable, when the Oracle Client is used, it is only required with the Instant Client,

see if you can connect to the server through:

Telnet IP 1521 (usually the port), to see if you have connectivity first,

then test with SQLPlus,

You installed the client or instant client, more details ..
Pomps
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Wed, 17 Mar 2010 10:01 am
Location: Minas Gerais

Hello Diegolenhardt.

I installed Xeclient ..
by SQL Plus connects beauty service ..

Select all

system/******@192.168.4.50:1521/xe
But in ODBC does not recognize any service TNS ...
and error! ..

I have to find out which folder goes the tnnames.ora file to try to make the connection ..
Pomps
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Wed, 17 Mar 2010 10:01 am
Location: Minas Gerais

Hello Victorhugomuniz

has no way similar to this!
Sera that if you create can work?

would create the Network and Admin folder !!
because it does not have any related folder!
Playing the tnsnames.ora file inside the folder!

Here maybe it would be:

Select all

C:\XEClient\Network\admin
diegolenhardt
Moderador
Moderador
Posts: 1177
Joined: Thu, 15 Oct 2009 10:28 am
Location: Recife

UHM never used this xeclient,

TRIES SQLPLUS SYSTEM @ XE

See if password asks,
diegolenhardt
Moderador
Moderador
Posts: 1177
Joined: Thu, 15 Oct 2009 10:28 am
Location: Recife

Dude, now a question arose, why do you want to create an ODBC?

BDE?
Pomps
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Wed, 17 Mar 2010 10:01 am
Location: Minas Gerais

Is that I am creating a data source and I will need to import information from OurTa data source!
diegolenhardt
Moderador
Moderador
Posts: 1177
Joined: Thu, 15 Oct 2009 10:28 am
Location: Recife

Well, to solve the problem I suggest:

1 - Install the Oracle 10G / 11G client, with the administrator option (which is the most complete) that will not miss any library (DLL) ,

a test that you can do with this clientxe is to try to put the clientxe directory in the PATH environment variable, and still create a variable Oracle_Home environment by pointing it to the clientxe directory , and one more, TNS_ADMIN, pointing it to the directory wherever you want, as long as you have tnnames.ora,


Pomps
Rank: Programador Júnior
Rank: Programador Júnior
Posts: 17
Joined: Wed, 17 Mar 2010 10:01 am
Location: Minas Gerais

Good morning Diegolenhardt ..
I solved the problem! .. I just created the Network and Admin folders and threw the archway inside and worked out! :?
But I had already tried add to Path!

Thanks for the help of you! :)

Thanks
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 11 guests