Installing Oracle 10g client on Ubuntu 9.10 x64

Here is a very quick way to get the oracle client installed under Ubuntu, only down side i have found on this is that you have to install the build packages and X to the machine to get it to install which isn’t something I like doing on production machines i would rather have X and build tools else where and install just the needed packages but never mind.

Install necessary package

    apt-get install ia32-libs xorg build-essential

Extract the Oracle client into a temp directory

I normally use either the roots home directory or /var/tmp

    cpio -idmv < 10201_client_linux_x86_64.cpio

Create the oracle user and groups

    groupadd oinstall
    groupadd dba
    useradd -g oinstall -G dba  -d /home/oracle -s /bin/bash oracle
    mkdir /home/oracle
    chown -R oracle:oinstall /home/oracle

Create the oracle users environment

.bash_profile

    EDITOR=vi
    export EDITOR
    ORACLE_SID=testusr
    ORACLE_OWNER=oracle
    ORACLE_HOME=/home/oracle/app/oracle/product/10.2.0
    PATH=$PATH:$ORACLE_HOME/bin
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH:/usr/lib:
    ALERT_LOG=$ORACLE_BASE/admin/$ORACLE_SID/bdump/alert_$ORACLE_SID.log
    ARCHLOG=$ORACLE_BASE/../../arch
    export ORACLE_HOME PATH LD_LIBRARY_PATH ORACLE_SID ORAENV_ASK ORACLE_OWNER ALERT_LOG ARCHLOG
    ln -s /usr/bin/awk /bin/awk
    ln -s /usr/bin/basename /bin/basename

Remote into the machines X session to run the GUI installer

    xhost +
    su - oracle
    ./runInstaller -ignoreSysPrereqs
Share