Oracle 10g2 Debian

The file that I used to install oracle 10g2 was that one :

10201_database_linux32.zip

my system was :

Debian 4.0 2.6.18-4-686 #1

The packages that needed to be install was :

libaio1
autoconf
automake
binutils
bzip2
doxygen - not really necessary as it is for documentation
gcc
less
libc6-dev
make
perl-doc - not really necessary as it is for documentation
unzip
zlibc
x-window-system
libxp6

So, do an apt-get for all these packages !
Now, we need to configure our kernel, add this :
kernel.shmmax = 2147483648
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000

to :

/etc/sysctl.conf

and load this new parm to the kernel with :

sysctl -p

now add this :

oracle               soft     nofile  4096
oracle               hard    nofile  63536
*                    soft     nproc   2047
*                       hard    nproc   16384

to :

/etc/security/limits.conf

and add this :

session required /lib/security/pam_limits.so
session required /lib/security/pam_unix.so

to :

/etc/pam.d/common-auth

and add this :

ulimit -u 10000 -n 10000

to the oracle :

.profile

and now some linking :

# ln -s /usr/bin/awk /bin/awk
# ln -s /usr/bin/rpm /bin/rpm
# ln -s /lib/libgcc_s.so.1 /lib/libgcc_s.so
# ln -s /usr/bin/rpm /bin/rpm
# ln -s /usr/bin/basename /bin/basename

create a new file :

# touch /etc/redhat-release

and add this :

Red Hat Enterprise Linux AS release 4 (Nahant Update 4)

to the new file file just created.
add user and group :

# groupadd oinstall
# groupadd dba
# groupadd nobody
# useradd -g oinstall -G dba,nobody -d /home/oracle -s /bin/bash oracle
# mkdir -p /home/oracle
# chown oracle:dba /home/oracle

And add this :
export ORACLE_BASE=/home/oracle/product
export ORACLE_HOME=/home/oracle/product/10.2
export ORACLE_SID=ORAASZ
export PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_TERM=xterm
export CLASSPATH=$ORACLE_HOME/jdbc/lib/classes12.zip
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export DISABLE_HUGETLBFS=1
export PATH=$ORACLE_HOME/bin:$PATH
export ROOTPATH=$ORACLE_HOME/bin
export LDPATH=$ORACLE_HOME/lib

to :

.profile

of oracle user.

Error

If you get an error like this one when launching runInstaller :

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2008-07-12_07-00-14PM. Please wait ...oracle@dell-poweredge-debian4:~/install/database$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2008-07-12_07-00-14PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(Unknown Source)
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at sun.security.action.LoadLibraryAction.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
        at sun.awt.DebugHelper.<clinit>(Unknown Source)
        at java.awt.Component.<clinit>(Unknown Source)

You simply have to install this package :

# apt-get install libxtst6

and then re-launch the runInstaller, and you won't get anymore this error.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License