views:

1338

answers:

3

Using ActiveX Data Objects 2.8 Library as a Reference from Excel VBA, and the connection string is:

"Driver={Microsoft ODBC for Oracle}......."

And I also have the "Microsoft ODBC for Oracle" (MSORCL32.dll) entry in the Drivers tab of Windows XP's ODBC Manager.

Now, will I be able to connect to an oracle databse, without any oracle client/products installed on my machine?

+2  A: 

I'm pretty sure you need to install Oracle client; what's more, I believe it has to be Oracle 8 Client (MS hasn't updated that driver in years, as far as I know).

But have you tried using Oracle Instant Client? It's pretty painless to install, way, WAY smaller than the standard Oracle client and doesn't interfere with other installations. All you need to do is copy the files to a target directory, set your PATH to include that directory (which can be done inside your app - no need to actually set global PATH if you don't want to), and insert the appropriate registry entry into HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI. We use it for all our ADO clients.

It also has the added bonus of not requiring the maintenance of a TNSNAMES.ORA file; your connect string can simply be user/password@server:port/SID.

Steve Broberg
It doesn't have to be the Oracle 8 client. If you install the instant client, you'll get Oracle's ODBC driver which you can (and generally should) use in place of Microsoft's driver.
DCookie
While experimenting various things (wrt this question: http://stackoverflow.com/questions/1250644/the-provider-is-not-compatible-with-the-version-of-oracle-client-error-when-using ) I tried this approach, but ran into problems when launching SQL* Plus
Sathya
I use sqlplus and an odbc app both using the same Instant Client and it works fine. Were you using the specially compiled version of sqlplus that is bundled with Instant Client (also available in my link above)?
Steve Broberg
A: 

You will need the Oracle client. I had tried this out yesterday, on trying to connect ODBC driver yells back at me, "Oracle client is not installed".

Sathya
A: 

there are other ODBC drivers out there that don't use the Oracle client software. DataDirect supply one http://www.datadirect.com/

TLMC

TLMC