This discussion is archived
3 Replies Latest reply: Nov 27, 2012 7:42 AM by 943610 RSS

Which OCI library to use for static linking with application on Unix, Linux

910885 Newbie
Currently Being Moderated
Hi Friends

I am new to OCI programming.

I am developing a C++ application that works on Windows 7 (32, 64 bit, VS-9) and Linux (32, 64 bit), with OCI-11.2.0.3 version and Oracle 10g Express edition.

I want to statically link OCI library in my application.

For Windows, I got oci.lib in the package: instantclient-sdk-nt-11.2.0.3.0.zip\instantclient_11_2\sdk\lib\msvc downloaded from [Instantclient download location.|http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html] .

But, the instanclient packages instantclient-basic-linux-11.2.0.3.0.zip & instantclient-sdk-linux-11.2.0.3.0.zip do not contain a static archive for OCI library.
These packages have only include files and following .so (shared libraries) for Linux:
libclntsh.so.11.1
libnnz11.so
libocci.so.11.1
libociei.so
libocijdbc11.so

Can someone please guide me, where can I find the static archive (possibly liboci.a or libociei.a) for OCI-11.2.0.3 - 32 & 64 bit?

Many thanks in advance for your time and kind guidance.

Best Regards,
-ganes

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points