I noticed these libraries are not free, can anyone point me to a free C++ Oracle Libraries?
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
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
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]
Last edited by hk_mp5kpdw; 02-03-2009 at 08:31 AM.
"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens
used the example on this forum which you find all over then NET.. So irritating that you can't find the required header file
from the occi readme file, could someone please explain step 3 & 4?
Am really struggling to understand what they mean1) Create a new sub-directory "vc8" under %ORACLE_HOME%\oci\lib\msvc
2) Copy the .lib, .dll and .manifest files from this archive to
%ORACLE_HOME%\oci\lib\msvc\vc8
3) Include %ORACLE_HOME%\oci\lib\msvc\vc8 directory in the list of library
directories when linking the application. Include oraocci10.lib or
oraocci10d.lib, as appropriate, in the application link command.
4) Ensure that %ORACLE_HOME%\oci\lib\msvc\vc8 is first in the PATH when
running the application.
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.
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]
Last edited by hk_mp5kpdw; 03-18-2009 at 04:33 PM.
"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens
This library also has an Oracle backend:
http://soci.sourceforge.net/
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law