Home » Infrastructure » Windows » ODBC not reading TNS_ADMIN (Oracle 10.2, Windows XP SP2)
ODBC not reading TNS_ADMIN [message #351758] Thu, 02 October 2008 19:55 Go to next message
SpJohnm
Messages: 3
Registered: October 2008
Location: Australia
Junior Member

My PC is on a large network and when I run ODBC (odbcad32.exe)
it uses a network tnsnames.ora.

I want ODBC to read the local tnsnames so I set up a TNS_ADMIN
variable pointing to my %ORACLE_HOME%\NETWORK\ADMIN directory.

I put the value for TNS_ADMIN in the Environment and in the registry.
All to no avail - ODBC still reads the network tnsnames.

How can I get it to read the local one?

Thanks,

SPJohnm
Re: ODBC not reading TNS_ADMIN [message #351764 is a reply to message #351758] Thu, 02 October 2008 22:17 Go to previous messageGo to next message
ebrian
Messages: 2794
Registered: April 2006
Senior Member
Does your environment variables include %ORACLE_HOME% ? If not, did you try to include the full path to the tnsnames.ora ?

Re: ODBC not reading TNS_ADMIN [message #351766 is a reply to message #351764] Thu, 02 October 2008 23:10 Go to previous messageGo to next message
SpJohnm
Messages: 3
Registered: October 2008
Location: Australia
Junior Member

Hi,

Yes, ORACLE_HOME is set (C:\Ora10g)
and TNS_ADMIN = C:\Ora10g\NETWORK\ADMIN

I was wondering - I am not the Administrator on my machine
but I have full administrator rights.

Regardless of this, would ODBC be using the Administrator
login which won't have the TNS_ADMIN variable set?

Thanks,

John
Re: ODBC not reading TNS_ADMIN [message #351769 is a reply to message #351766] Fri, 03 October 2008 00:21 Go to previous messageGo to next message
ebrian
Messages: 2794
Registered: April 2006
Senior Member
You should be able to set TNS_ADMIN as a user environment variable using the account that has full administrator account. Specifying the TNS_ADMIN user environment variable as C:\ora10g\network\admin "should" work for you. This account does have read access to the directory, right?
Re: ODBC not reading TNS_ADMIN [message #351785 is a reply to message #351758] Fri, 03 October 2008 01:45 Go to previous message
SpJohnm
Messages: 3
Registered: October 2008
Location: Australia
Junior Member

I can read the Administrators Documents and Settings but I
cannot log on as Administrator. I have "Administrator" rights
in that I can access most things an administrator can - except
the Admin login.

I don't have any trouble setting the TNS_ADMIN variable. I just
cannot get ODBC to use it when it reads the tnsnames.ora file.

[Updated on: Fri, 03 October 2008 01:47]

Report message to a moderator

Previous Topic: Create table from EXCEL Table
Next Topic: Help Required
Goto Forum:
  


Current Time: Thu Nov 14 04:35:13 CST 2024