一、 安装linux
略。
二、 配置Linux参数
/etc/sysctl.conf
kernel.core_uses_pid = 1
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel shmall = 2097152
kernel.sem = 250 32000 100 128
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_max = 262144
net.ipv4.ip_local_port_range = 1024 65000
vm.hugetlb_pool = 1024
/etc/security/limits.conf
oracle soft nofile 63536
oracle hard nofile 63536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft memlock 3145728
oracle hard memlock 3145728
三、 安装检查安装如下package
rpm -ivh compat-db-4.1.25-9.i386.rpm
compat-gcc-32-3.2.3-47.3.i386.rpm
compat-gcc-32-c++-3.2.3-47.3.i386.rpm
compat-glibc-2.3.2-95.30.i386.rpm
compat-libgcc-296-2.96-132.7.2.i386.rpm
compat-libstdc++-296-2.96-132.7.2.i386.rpm
glibc-headers-2.3.4-2.25.i386.rpm
glibc-devel-2.3.4-2.25.i386.rpm
binutils-2.15.92.0.2-21.rpm
compat-oracle-rhel4-1.0-5.i386.rpm
setarch-1.6-1.i386.rpm
openmotif-2.2.3-10.RHEL4.5.i386.rpm
tcl-8.4.7-2.i386.rpm
freetype-devel-2.1.9-1.i386.rpm
xorg-x11-deprecated-libs-devel-6.8.2-1.EL.13.37.i386.rpm
xorg-x11-devel-6.8.2-1.EL.13.37.i386.rpm
一、 安装patch
p3006854_9204_LINUX.zip
p4198954_21_LINUX.zip (解压此zip后,安装里面的两个RPM包,否则,安装过程中会出现link错误)。
二、 创建Oracle用户组DBA和Oracle用户
三、 安装java包
./ j2sdk-1_4_2_10-linux-i586-rpm.bin
rpm -ivh j2sdk-1_4_2_10-linux-i586-rpm
四、 设置Oracle环境shell
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
ORACLE_BASE=/home/oracle
ORACLE_HOME=/home/oracle/product/oracle9i
ORACLE_SID=nc230
export ORACLE_BASE ORACLE_HOME ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
ORACLE_OWNER=oracle; export ORACLE_OWNER
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
PATH=$ORACLE_HOME/bin:/usr/bin:/etc:/usr/local/bin:$PATH:$HOME/bin:$ORACLE_HOME/Apache/Apache/bin:$ORACLE_BASE/OPatch
PATH=$PATH:/usr/java/jdk1.3.1_09/bin
LD_LIBRARY_PATH=$ORACLE_HOME/lib
export ORA_NLS33 PATH LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export CLASSPATH
ORACLE_OEM_JAVARUNTIME=/usr/java/jdk1.3.1_09
export ORACLE_OEM_JAVARUNTIME
LC_ALL=C
export LC_ALL
LANG=C
export LANG
LD_ASSUME_KERNEL=2.4.1; export LD_ASSUME_KERNEL
THREADS_FLAG=native; export THREADS_FLAG
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
#DISPLAY=192.168.0.165:0.0
#export DISPLAY
#unset USERNAM
五、 在root下执行
Xhost +192.168.0.165
六、 解压Oracle 9204安装包,解压命令为:
cpio -idmv ….
七、 登入到oracle下,执行export DISPLAY=192.168.0.165:0.0
八、 执行安装程序
./runInstaller.sh
之后按提示进行常规安装即可。
以上操作为在linux as 4.0 上进行的实验,实验成功。
By Passion 2007-6-14
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/60088/viewspace-918871/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/60088/viewspace-918871/