gorbeia-(e)k argitaratua | Azaroa 14, 2012

Installing TOra with Oracle Support on Ubuntu 12.10 (Quantal Quetzal)

Get instant client packages from Oracle download page.

  • oracle-instantclient11.2-basic-11.2.0.3.0-1.x86_64.rpm
  • oracle-instantclient11.2-devel-11.2.0.3.0-1.x86_64.rpm
  • oracle-instantclient11.2-sqlplus-11.2.0.3.0-1.x86_64.rpm

If you do not have alien installed install it:

sudo apt-get install alien

Install the Oracle packages using alien:

sudo alien -i oracle-instantclient11.2-basic-11.2.0.3.0-1.x86_64.rpm
sudo alien -i oracle-instantclient11.2-sqlplus-11.2.0.3.0-1.x86_64.rpm
sudo alien -i oracle-instantclient11.2-devel-11.2.0.3.0-1.x86_64.rpm

Download the sources and the dependencies to compile the ubuntu package:

apt-get source tora
sudo apt-get build-dep tora

Prepare the environment:

export ORACLE_HOME="/usr/lib/oracle/11.2/client64"
export LD_LIBRARY_PATH="${ORACLE_HOME}/lib"
export TNS_ADMIN="${ORACLE_HOME}"
export ORACLE_PATH_INCLUDES=/usr/include/oracle/11.2/client64/

Modify the FindOracle.cmake file:

vi tora-2.1.3/cmake/modules/FindOracle.cmake

to add the following line:

SET(ORACLE_PATH_INCLUDES $ENV{ORACLE_PATH_INCLUDES})

Now you can build and install the package:

cd tora-2.1.3/
fakeroot debian/rules binary
sudo dpkg -i ../tora_2.1.3-2_amd64.deb

References:
Installing TOra with Oracle Support on Ubuntu 10.04 (Lucid Lynx)
HowToBuildToraWithOracle

About these ads

Utzi erantzun bat

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Atalak

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: