oracle9i on redhat as 4.4

1:oracle 9.2.04

检查所需要的软件包是否已经安装:

rpm -q make                           /
       compat-db                      /
       compat-gcc-32                  /
       compat-gcc-32-c++              /
       compat-oracle-rhel4            /
       compat-libcwait                /
       compat-libgcc-296              /
       compat-libstdc++-296           /
       compat-libstdc++-33            /
       gcc                            /
       gcc-c++                        /
       gnome-libs                     /
       gnome-libs-devel               /
       libaio-devel                   /
       libaio                         /
       make                           /
       openmotif21                    /
       xorg-x11-deprecated-libs-devel /
       xorg-x11-deprecated-libs
/*************************** 

      compat-oracle-rhel4   &&  compat-libcwait               

  /没有装会引起错误:

  Error occurred during initialization of VM
    Unable to load native library:
    /tmp/OraInstall2007-04-24_03-14-57PM/jre/lib/i386
    /libjava.so symbol _libc_wait, version GLIBC_2.0 not
    defined in file libc.so.6 with link time reference

oralce官方有此rpm包

地址:http://oss.oracle.com/projects/compat-oracle/files/RedHat/
2:donw&&install jdk

www.sun.com down jdk-1_5_0_08-linux-i586.bin

install is so sample.

3:环境变量的设置:

cd /home/oracle

vi .bash_profile

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME
export LD_ASSUME_KERNEL=2.4.19 # for RHEL AS 4
# Oracle Environment
export ORACLE_BASE=/opt/oracle  
export ORACLE_HOME=$ORACLE_BASE/product/9.2.0
export ORACLE_SID=test
export ORACLE_TERM=xterm
# export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
export NLS_LANG=AMERICAN;
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH

# Set shell search paths
export PATH=$PATH:$ORACLE_HOME/bin

/*********

vi /etc/profile

HOSTNAME=`/bin/hostname`
HISTSIZE=1000
JAVA_HOME=/home/down/jdk1.5.0_08
CLASSPATH=.:/home/down/jdk1.5.0_08/lib
PATH=$PATH:$JAVA_HOME/bin
#JAVA_HOME=/site/app/bea/jdk142_11
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar

4:cd /Disk1

  ./runInstal

一步步安装就可以了

http://www.puschitz.com/InstallingOracle9i.shtml

你可能感兴趣的:(oracle9i on redhat as 4.4)