Skip to Main Content

Oracle Database Discussions

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

re: Question on how to check if there exists a Microsoft ODBC Driver?

3599577Dec 27 2017 — edited Dec 27 2017

Hello All,

  Happy New Year!

I am new to microsoft ODBC and I have tried many, many days and failed on connecting to Oracle 11g through my microsoft ODBC.

I am not sure on what I did wrong so I would like to seek your helps and your expertise.

1) I configured my Oracle ODBC driver configuration on my window machine and I was able to connect to the Oracle 11g. Test connection was successful.

2) I was also able to connect to oracle through C:\Windows\SysWOW64\odbcad32.exe

2) However, I was having a problem when I tried to connect to oracle 11g through Microsoft ODBC for Oracle driver through my connection string . It said that Microsoft ODBC Driver was not defined or specified.

con = CreateObject ("ADODB.Connection")

strCon = "Driver={Microsoft ODBC for Oracle}; " & _

                            "CONNECTSTRING=(DESCRIPTION=" & _

                             "(ADDRESS=(PROTOCOL=TCP)" & _

                             "(HOST=" & host & ")(PORT=1521))" & _

                             "(CONNECT_DATA=(SERVICE_NAME=myOracleDatabase))); uid=Loginid;pwd=" & Password & ";"

con.Open strCon

3) Please correct me if I am wrong. Am I correct to say that I already my Microsoft ODBC driver for oracle on my machine since I was able to connect to Oracle 11g through Oracle ODBC driver configuration and I was able to connect to Oracle through  C:\Windows\SysWOW64\odbcad32.exe?  If the above statement was true , why it said that Microsoft ODBC Driver was not defined or specified?

4) If I was completely wrong about having Microsoft ODBC Driver on my machine, then what do I need to do in order to check

        4a) If there exists a Microsoft ODBC Driver on my machine?

        4b) How to install Microsoft ODBC Driver if I don't have it?

Many Many thanks for ALL of your wonderful helps!!!

To

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 24 2018
Added on Dec 27 2017
15 comments
10,230 views