Ying-Hung Chen
7-25-2001
Last updated 8-7-2001
Oracle 8i installation tips for glibc2-2 systems
Issues:
Mandrake 8.0 (and others) ships with glibc 2.2. Oracle compiles with glibc 2.1.
Work around:
Temporary replaced the compiler and linker and others with the binary compiled against glibc2.1 before installing the oracle 8i, so in its installation, it will be able to link it correctly and functional.
And then, the work around
ftp://ftp.kernel.org/pub/software/libs/glibc/hjl/sdk/2.1/README.Oracle8i
Work around
instructions:
Oracle 8i is not compile/link time compatible with glibc 2.2. Itrequires the glibc 2.1 compatibility SDK, i386-glibc-2.1-linux.tar.gz,to install under systems based on glibc 2.2, like RedHat 7.0. Thefollowing steps work for me 1. Make gcc, cc and ld from the glibc 2.1 SDK available for the Oracleinstaller: cd /tar xfz ..../i386-glibc-2.1-linux.tar.gz 2. Hide gcc, cc and ld under /usr/bin so that the Oracle installerwon't pick it up by accident with # gcc ...# cc ...# ld ... Do cd /usr/binmkdir savedmv gcc cc ld savedln -s /usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-gcc gccln -s gcc ccln -s /usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-ld ld 3. Hide libc.so, libdl.so, libm.so and libpthread.so under /usr/lib sothat the Oracle installer won't pick it up by accident # gcc -L/usr/lib ... since -L/usr/lib tells gcc to search /usr/lib first. Neither -L/usr/libnor -L/lib are needed under Linux. Do cd /usr/libmkdir savedmv libc.so libdl.so libm.so libpthread.so savedmv libc.a libdl.a libm.a libpthread.a saved 4. Install Oracle 8i: ./runInstaller 5. Restore /usr/bin: cd /usr/binrm -f gcc cc ldcd /usr/bin/savedmv * ..cd ..rm -rf saved 6. Restore /usr/lib: cd /usr/lib/savedmv * ..cd ..rm -rf saved Comments on Oracle installation: 1. -L/lib and -L/usr/lib should be removed for Linux. They are notnecessary under Linux and may cause problems for the glibc 2.1 SDK.2. /lib:/usr/lib should be removed from -Wl,-rpath for Linux. They arenot necessary under Linux and may cause problems for the glibc 2.1 SDK.
During
installation, use ‘minimal’ for now.
For
database, use oralin.domain.name (NOTE: its required to have ‘real’ network
name)
Other
Tips:
Oracle initial script (when login as oracle,
source this file)
export BASH_ENV=$HOME/.bashrc
ORACLE_BASE=/usr/oraInventory; export ORACLE_BASE
ORACLE_HOME=/usr/oracle; export ORACLE_HOME
ORACLE_SID=oralin; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
TEMP=/tmp; export TEMP
TMPDIR=/tmp; export TMPDIR
TMP=/tmp; export TMP
PATH=$PATH:$ORACLE_HOME/bin:/usr/local/java/bin; export PATH
CLASSPATH=.:$ORACLE_HOME/jdbc/lib/classes111.zip; export CLASSPATH
LD_LIBRARY_PATH=/usr/oracle/lib;
export LD_LIBRARY_PATH
How to start Oracle server:
Reference URL’s