RHEL5.2 安装 ORACLE 10g

RHEL5.2 安装 ORACLE 10g (10201_database_linux32.zip)
第一步:安装RHEL5.2
 装了所有的devel包
 使用的是VM 6.5,swap 2G,内存 1G,磁盘 58G。
第二步:检查包
 需要安装的RPM包(RHEL5版):
binutils-2.17.50.0.6-2.el5
compat-libstdc++-33-3.2.3-61
elfutils-libelf-0.125-3.el5
elfutils-libelf-devel-0.125
gcc-4.1.1-52
gcc-c++-4.1.1-52
glibc-2.5-12
glibc-common-2.5-12
glibc-devel-2.5-12
glibc-headers-2.5-12
libaio-0.3.106
libaio-devel-0.3.106
libgcc-4.1.1-52
libstdc++-4.1.1
libstdc++-devel-4.1.1-52.e15
make-3.81-1.1
sysstat-7.0.0
libXp libXp-devel  这两个也要
第三步:初始化oracle安装环境
写了一个脚本:
#! /bin/bash
cat >> /etc/sysctl.conf <<EOF
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
EOF
/sbin/sysctl -p
cat >> /etc/security/limits.conf << EOF
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
EOF
# create oracle group and user
groupadd oinstall
groupadd dba
useradd -m -g oinstall -G dba oracle
echo "oracle" | passwd oracle --stdin
#create install directory
mkdir -p /u01/app/oracle
mkdir -p /u01/oradata
chown -R oracle:oinstall /u01
chmod -R 775 /u01/app/oracle /u01

#environment variable
cd /home/oracle
cat >> .bash_profile <<EOF
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0
export ORACLE_SID=orcl
export PATH=$PATH:$ORACLE_HOME/bin
EOF
echo "session required pam_limits.so" >> /etc/pam.d/login
cat >> /etc/profile <<EOF
if [ $USER = "oracle" ]; then
        if [ $SHELL = "/bin/ksh" ]; then
            ulimit -p 16384
            ulimit -n 65536
        else
            ulimit -u 16384 -n 65536
        fi
fi
EOF

修改/etc/redhat-release文件
 因为Oracle 10g官方只支持到RHEL4为止,所以需要更改版本说明,编辑/etc/redhat-release文件,
 删除Red Hat Enterprise Linux Server release 5 (Tikanga)
 替换为:Red Hat Enterprise Linux AS release 4 (Nahant Update 4)

 
第四步:正式安装ORACLE 10g
 解压10201_database_linux32.zip到/u01/app/oracle/
 chown -R oracle.oinstall database
 切换到oracle用户下,进入/u01/app/oracle/database,执行./runInstaller 开始安装
 
 

你可能感兴趣的:(oracle,安装,10g,休闲,RHEL5.2)