(for Qt developers)
installation needs the following procedures:
download rpm of Instant Client for Linux x86-64
from this link oracle site.
list of required packages:
- Basic
- SDK
- odbc (optional)
convert rpm to deb by (Oracle's rpms):
$>sudo alien blah.rpm
install deb
packages by:
$>sudo dpkg -i blah.deb
Oracle's client library (.so
files) depend on libaio1:
$>sudo apt-get install libaio1
make sure Oracle's libs are added to LD_LIBRARY_PATH
by:
$>sudo su
$>echo "path/to/oracle/client/libs" > /etc/ld.so.conf.d/oracle.conf
$>ldconf
compile Qt OCI plugin as described in Qt docs: Qt doc 4.8
the output shoulb be somthing like libqsqloci.so
copy (or link) the compiled *.so
file to:
$>cp libqsqloci.so /usr/lib/x86_64-linux-gnu/qt4/plugins/sqldrivers
or any other path on your system which contains other Qt SQL drivers.