Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ODBC connection issues c++

2713495Jul 15 2014 — edited Jul 16 2014

Hi,

I have some connection issues with odbc in c++.

Configuration :

- Windows 7 64 bits.

- Oracle express 11g 64 bits

-instantclient 64 bits

- odbc driver 64 bits

- ide : visual studio 2013

Connection string :SQLDriverConnectW(sqlconnectionhandle, NULL, L"Driver={Microsoft ODBC for Oracle};Server=Serv; UID = testUser; PWD = testpwd; ", SQL_NTS, NULL, 0, NULL, SQL_DRIVER_COMPLETE)

I followed the same procedure on another computer and everything is working.

Here are the 2 errors :

  • "failure of sqlAllocHandle - IM004"
  • "Oracle(tm) client and networking components were not found"

Environment variables have been updated.

The driver installation is succesful and I can connect to the db via odbc in control pannel.

Any ideas ?

This post has been answered by 2713495 on Jul 15 2014
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 13 2014
Added on Jul 15 2014
3 comments
1,954 views