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

Error using ODBC on Win2k

Please help point me in the right direction.

I am trying to SQLDriverConnect to our Oracle Server, which resides on
another machine in the network.

I believe I have the ODBC connection set up correctly, as clicking
"Test Connection" and then entering a valid username/password connects
successfully.

Here is the tnsnames.ora file from my client machine:

CSDWORLD=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = w4533071)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = csdworld)
)
)

As you can see, the remote host is w4533071, which I can ping, etc
from my box, and I can connect to that remote database using the
various Oracle tools like SQL Plus or Enterprise Manager Console.

Here is the relevant ODBC trace section:
---------------------------------------------------
SRV40 98c-588 ENTER SQLDriverConnectW
HDBC 019D2188
HWND 00000000
WCHAR * 0x01997310 [ -3] "******\ 0"
SWORD -3
WCHAR * 0x01997310
SWORD 8
SWORD * 0x00000000
UWORD 0 <SQL_DRIVER_NOPROMPT>

SRV40 98c-588 EXIT SQLDriverConnectW with return code -1
(SQL_ERROR)
HDBC 019D2188
HWND 00000000
WCHAR * 0x01997310 [ -3] "******\ 0"
SWORD -3
WCHAR * 0x01997310
SWORD 8
SWORD * 0x00000000
UWORD 0 <SQL_DRIVER_NOPROMPT>

DIAG [08004] [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve
service name
(12154)

DIAG [IM006] [Microsoft][ODBC Driver Manager] Driver's
SQLSetConnectAttr failed (0)
---------------------------------------------------

If it matters, my test application is written in Visual C++ 6.0,
latest service pack.

Oracle version 9.2 .

Please get me started, and I look forward to trying your suggestions.

Regards,

JaeGuk Lee
Seoul, South of Korea
Nov 17 '05 #1
0 842

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

Similar topics

2
by: paul tomlinson | last post by:
Hi folks - i've got a windows 2000 server (SP3) i've run the IIS lockdown tool on it and set for dynamic websites - all the static pages within the site work ok but an ASP section has been put in...
3
by: John | last post by:
Hi, I am getting the above error message on a non-default website. But, default.asp and other asp files work properly. There are few asp files which are residing on this non- default website...
1
by: G Whitcomb | last post by:
I have a data base feeding a course catalog thta works just fine off my Win2k webserver but I upgraded my server to 03 and now I can't get the asp page to load. I have gone through TID after...
15
by: M P | last post by:
What does this mean? I am accessing an ASP page that queries Access Database thru fileDSN. I'm using IIS 5.0 Win2K SP4 Microsoft OLE DB Provider for ODBC Drivers error '80004005' General...
0
by: MBR | last post by:
Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 19 Organization: Arcor NNTP-Posting-Date: 02 Dec 2004 12:46:22 MET NNTP-Posting-Host:...
3
by: CD | last post by:
I am running on Win2k, SQL Server 2000 (sp3), MDAC 2.8 and using a TCP/IP client connection. I get this error when attempting to restore a database. ConnectionRead (WrapperRead()). General...
1
by: Glenn M | last post by:
I have an asp drive web page that writes a row to a table on sql server 2000. The web site is set to use windows authenication and the sql server is set to use windows authentication. This...
1
by: MyndPhlyp | last post by:
I am about to completely lose what is left of my poor mynd! The historical dissertation gets rather verbose, so I hope you can wade through it all. I really need some help on this one or I'm...
9
by: Martin | last post by:
Using ODBC in a PHP script, I'm trying to read an MS Access MDB file that resides on another computer on my LAN. I'm getting the error: Warning: odbc_connect() : SQL error: The Microsoft Jet...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...
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...
0
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...
0
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 projectplanning, coding, testing,...

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.