Oracle 8.1.7 for RedHat Linux 7.2的安裝過程
1).確認你已安裝了以下兼容包:
rpm –ivh compat-libstdc++-6.2-2.9.0.16
rpm –ivh compat-glibc-6.2-2.1.3.2
rpm –ivh compat-egcs-c++-6.2-1.1.2.16
rpm –ivh compat-libs-6.2-3
rpm –ivh compat-egcs-6.2-1.1.2.16
rpm –ivh compat-egcs-objc-6.2-1.1.2.16
2).安裝binutils-2.10.91.0.2.i386.rpm包
rpm -Uvh --force --nodeps binutils-2.10.91.0.2-3.i386.rpm
3).安裝Jdk1.1.8_v3到/usr/local,這個不用多說了(不一定要的)
bunzip2 jdk118_v3.tar.bz2
tar -xvf jdk118_v3.tar
ln -s jdk118_v3 Java
4).獲得補丁包------Oracle的glibc-2.1.3-stubs.tar.gz
Oracle的env_ctx.mk ( )
5).准備用戶環境(root)。
groupadd dba
useradd Oracle -g dba
passwd Oracle
.bash_profile的內容:
ORACLE_BASE=/home/oracle; export Oracle_BASE
ORACLE_HOME=/home/oracle; export Oracle_HOME
ORACLE_SID=ORCL; export Oracle_SID
ORA_NLS33=/home/Oracle/ocommon/nls/admin/data; export ORA_NLS33
NLS_LANG=american_america.zhs16cgb231280;export NLS_LANG
LD_LIBRARY_PATH=/home/Oracle/lib; export LD_LIBRARY_PATH
CLASSPATH=.:/home/Oracle/jdbc/lib/classes111.zip;export CLASSPATH
PATH=$PATH:$ORACLE_HOME/bin:$Oracle_HOME/dbs:/etc; export PATH
./Oracle/envLinux.sh
export LD_ASSUME_KERNEL=2.2.5
export LDEMULATION=elf_i386_glibc21
export GCC_EXEC_PREFIX=/usr/i386-glibc21-Linux/lib/gcc-lib/
6).臨時更改glibc
將/usr/i386-glibc21-linux/bin/i386-glibc21-Linux-env.sh復制一份到/usr/Oracle並改名為envlinux.sh.(注:本人在沒有復的制的情況下,沒能成功運行起i386-glibc21-Linux-env.sh)
並在. bash_profile中加入:
./Oracle/envLinux.sh
export LD_ASSUME_KERNEL=2.2.5
執行.bash_profile看看是否己替換:
./home/Oracle/.bash_profile
gcc –v
替換前是:Reading specs from /usr/lib/gcc-lib/i386-redhat-Linux/2.96/specs
gcc version 2.96 20000731(Red Hat Linux7.1.2.9