Install Oracle Instantclient on debian wheezy

Get the (latest) Oracle packages from the Oracle site:

oracle-instantclient11.2-basic-11.2.0.2.0.i386.rpm

oracle-instantclient11.2-devel-11.2.0.2.0.i386.rpm

oracle-instantclient11.2-jdbc-11.2.0.2.0.i386.rpm

oracle-instantclient11.2-sqlplus-11.2.0.2.0.i386.rpm

apt-get install libaio1

alien -i oracle-instantclient11.2-basic-11.2.0.2.0.i386.rpm oracle-instantclient11.2-devel-11.2.0.2.0.i386.rpm oracle-instantclient11.2-jdbc-11.2.0.2.0.i386.rpm oracle-instantclient11.2-sqlplus-11.2.0.2.0.i386.rpm

apt-get install cmake cdbs qt4-qmake libqt4-dev libqscintilla2-dev

apt-get install postgresql-dev libmysqlclient-dev

echo "/usr/lib/oracle/11.2/client/lib" >> /etc/ld.so.conf.d/oracle.conf

ldconfig

mcedit /usr/share/cdbs/1/class/cmake.mk

find DEB_CMAKE_NORMAL_ARGS ?= … row

concatenate its’ end the

-DORACLE_INCLUDES="/usr/include/oracle/11.2/client" -DORACLE_HOME="/usr/lib/oracle/11.2/client"

string

apt-get source tora

cd tora-2.1.3

./debian/rules binary

cd ..

dpkg -i tora_2.1.3-1_i386.deb

You need to setup the TNS_ADMIN environment variable.

setup of the environment variables:

if you previously installed the Oracle XE

copy the lines below into the ~/.bashrc

ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server

PATH=$PATH:$ORACLE_HOME/bin

TNS_ADMIN=$ORACLE_HOME

LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH

export ORACLE_HOME

export ORACLE_SID=XE

export PATH

export TNS_ADMIN

export LD_LIBRARY_PATH

Kategória: Nincs kategorizálva | A közvetlen link.

Elnézést, a hozzászólás ezen a részen nem engedélyezett.