Re: C++ connectivity and Oracle version

From: Mladen Gogala <>
Date: Thu, 3 Oct 2013 16:53:00 +0000 (UTC)
Message-ID: <>

On Thu, 03 Oct 2013 15:55:09 +0000, Ken wrote:

> Although I would note that if a program is written in C/C++, it should
> never use ODBC. There is simply no good reason for that. I'll grant that
> writing OCI code can be a challenge, but OLEDB is easy to use and is the
> preferred alternative to ODBC. The days of ODBC being separate from
> OLEDB are long gone. At this point ODBC is essentually just a
> translation layer that sits on top of OLEDB. So why have the extra
> layer. Learning how to make OLEDB calls is simple and there are no
> convolutions such as those that sometimes must be used with ODBC to use
> things like 'fn ......" or curley braces around some expressions. I
> haven't written ODBC code for years because I've never found a situation
> where ODBC works better than OLEDB.

What happens if you need to run your program on non-Windows platform, like AIX or Solaris? Or even Linux? I don't think that OLEDB exists for such platforms. ODBC does exist for all of the above.

Mladen Gogala
The Oracle Whisperer
Received on Thu Oct 03 2013 - 18:53:00 CEST

Original text of this message