oracle ODBC test return ORA-12154:TNS:Could not resolve serv

When you post information about some problem, please include the following details: - OS version (e.g. Windows 2000 Professional SP3); HostMonitor version; problem description.
Post Reply
seteor
Posts: 2
Joined: Wed May 04, 2011 1:36 am

oracle ODBC test return ORA-12154:TNS:Could not resolve serv

Post by seteor »

We are using Hostmonitor version 8.6 running on Windows Server 2003 Enterprise X64 Edition SP2. At the moment we are using ODBC Query,it returns ORA-12154:TNS:Could not resolve service name.

Oracle client is 10.2.0.1 win32

I use sqlplus test is fine.
Test in odbcad32.exe is fine too.
Test in hostmonitor is not fine.

Then I test ODBC Query with win7-32+oracle client 10.2 win32 in hostmonitor 8.6 is fine.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

oracle ODBC test return ORA-12154:TNS:Could not resolve serv

Post by KS-Soft Europe »

Looks like problem is related to different ODBC settings for x64 and x86 applications.
I assume, you are using x64 ODBC datasource C:\WINDOWS\SYSTEM32\odbcad32.exe to configure ODBC drivers.
Please use 32 bit ODBC datasource C:\WINDOWS\SysWOW64\odbcad32.exe to configure ODBC for HostMonitor.
Quote from manual:
Windows x64
HostMonitor is 32bit application that can be started on 64bit Windows OS. If you are using Windows x64 Edition and you want to setup ODBC Logging or ODBC test method, you should setup ODBC datasources using 32-bit ODBC Data Source Administrator (e.g. C:\WINDOWS\SysWOW64\odbcad32.exe).
seteor
Posts: 2
Joined: Wed May 04, 2011 1:36 am

Post by seteor »

I am sure, I was used 32 bit ODBC datasource C:\WINDOWS\SysWOW64\odbcad32.exe to configure ODBC for HostMonitor.
If Use 64 bit ODBC datasource C:\WINDOWS\System32\odbcad32.exe to configure ODBC for HostMonitor then the DataSourec can't be found in hostmonitor


I test connect with C:\WINDOWS\SysWOW64\odbcad32.exe is fine.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Does path to folder where HostMonitor is installed contain '(' or ')' symbols?
Then this problem can be caused by bug in Oracle software.

As we know Oracle fixed this problem in version 10.2.0.3

Regards
Alex
Post Reply