Building Oracle 10.x for Linux
- Managed to get a 10.2 sqlplus client to talk to our 9.2 database server from Solaris. Regular expressions, however, do not work.
- Since there is no 9.2 Oracle 64 bit client for Linux I decided to attempt to get the 10.2 Oracle 64 bit client installed. Managed to get a 10.2 sqlplus client to talk to our 9.2 database server from Linux! Went to build the Qt OCI portion and failed.
- libclntsh.so (all versions)
- libwtc9.so (only Oracle 9)
Building Qt OCI
Pat, I managed to install the Oracle Client 10.x for Linux - Will had gotten a 64 bit version. I even managed to use sqlplus to connect to RANCQ_RANDBS from Linux!
Now it's time to build Qt's OCI interface so that I can ultimately build the Linux version of ucmwb.
Trolltech, makers of Qt, state:
How to Build the OCI Plugin on Unix and Mac OS X
For Oracle 10g, all you need is the "Instant Client Package - Basic" and "Instant Client Package - SDK". For Oracle prior to 10g, you require the standard Oracle client and the SDK packages.Oracle library files required to build the driver:
Tell qmake where to find the Oracle header files and shared libraries and run make:
For Oracle version 9:
cd $QTDIR/src/plugins/sqldrivers/oci qmake -o Makefile "INCLUDEPATH+=$ORACLE_HOME/rdbms/public $ORACLE_HOME/rdbms/demo" "LIBS+=-L$ORACLE_HOME/lib -lclntsh -lwtc9" oci.pro makeFor Oracle version 10, we assume that you installed the RPM packages of the Instant Client Package SDK (you need to adjust the version number accordingly):
cd $QTDIR/plugins/src/sqldrivers/oci qmake -o Makefile "INCLUDEPATH+=/usr/include/oracle/10.1.0.3/client/" "LIBS+=-L/usr/lib/oracle/10.1.0.3/client/lib" oci.pro make
Unfortunately, after installing the Oracle client I didn't have a /usr/include/oracle... And I didn't have a /usr/lib/oracle either. Nor did I see an include directory under where I installed the Oracle client (/opt/oracle). Before I ask Trolltech support what the appropriate paths should be I thought I'd ask you. Perhaps I have not properly installed a portion of Oracle...