I noticed these libraries are not free, can anyone point me to a free C++ Oracle Libraries?
Printable View
I noticed these libraries are not free, can anyone point me to a free C++ Oracle Libraries?
It seems like SQLAPI++ should be able to do that.
http://www.sqlapi.com/
--
Mats
Oracle's got there own OCCI libraries for MS Visual C++ 8/9 (2005/2008) or for g++ compiler's:
http://www.oracle.com/technology/tec...cci/index.html
Far as I know they are free to download and use to your heart's content.
[edit]Those are for Oracle 10/11g databases.[/edit]
Just use standard Win32 api methods (Odbc and others)
ODBC is not part of the win32 api.
You can find drivers and examples of using ODBC online, it's one of the more popular ways to connect to an RDBMS.
used the example on this forum which you find all over then NET.. So irritating that you can't find the required header file
Never heard of a dbmanager.h header, but my relevant headers for the OCCI stuff were installed (I believe) when I installed the Oracle database itself. On my machine they were located in the C:\oracle\product\10.2.0\client_1\oci\include directory. If you want, I could email you a file with the headers. I would have thought that downloading the libraries would come with the necessary headers.
[edit]Actually it was an Oracle client I installed on the machine in question and not the Oracle database.[/edit]
ODCB is all C, though. Not recommended if you are looking for a C++ solution to a problem.
Actually, I would avoid it. But perhaps that's just me.
This library also has an Oracle backend:
http://soci.sourceforge.net/
Cornedbee, trying to understand (link)configuring soci_lib.sln on VS2005 ... But confused ...
In my case, all these point to "C:\Program Files\Firebird\Firebird_2_0\include" which am not even sure when/how was firebird installed ... Should i change this to the soci....\lib folder?Quote:
* FIREBIRD_INCLUDE_DIR - path to FireBird client library headers
* FIREBIRD_LIB_DIR - path to FireBird client library
* FIREBIRD_LIB - FireBird library, can be left unchanged
* MYSQL_INCLUDE_DIR - NOT USED
* MYSQL_LIB_DIR - NOT USED
* MYSQL_LIB - NOT USED
* ODBC_INCLUDE_DIR - ODBC include path, can be left unchanged
* ODBC_LIB_DIR - ODBC libraries path, can be left unchanged
* ODBC_LIB - ODBC library file, can be left unchanged
* ORACLE_INCLUDE_DIR - path to OCI headers
* ORACLE_LIB_DIR - path to OCI libraries
* ORACLE_LIB - list of OCI libraries
* POSTGRESQL_INCLUDE_DIR - path to libpq headers
* POSTGRESQL_LIB_DIR - path to libpq library
* POSTGRESQL_LIB - libpq library, can be left unchanged
* SQLITE3_INCLUDE_DIR - path to SQLite 3 headers
* SQLITE3_LIB_DIR - path to SQLite 3 library
* SQLITE3_LIB - SQLite 3 library, can be left unchanged
Unless you plan to use the Firebird database, I think you can ignore them.