在64位RHEL5.5上安装Oracle10gR2的简易步骤
1)安装所需rpm:
# cd /media/RHEL_5.5 x86_64 DVD/Server rpm -ivh compat-libstdc++-33-3.2.3-61.i386.rpm rpm -ivh compat-libstdc++-33-3.2.3-61.x86_64.rpm rpm -ivh gcc-c++-4.1.2-48.el5.x86_64.rpm rpm -ivh libstdc++-devel-4.1.2-48.el5.x86_64.rpm rpm -ivh glibc-headers-2.5-49.x86_64.rpm rpm -ivh glibc-devel-2.5-49.x86_64.rpm rpm -ivh glibc-devel-2.5-49.i386.rpm rpm -ivh libgomp-4.4.0-6.el5.x86_64.rpm rpm -ivh gcc-4.1.2-48.el5.x86_64.rpm rpm -ivh libXp-1.0.0-8.1.el5.i386.rpm rpm -ivh sysstat-7.0.2-3.el5.x86_64.rpm rpm -ivh util-linux-2.13-0.52.el5_4.1.x86_64.rpm rpm -ivh kernel-headers-2.6.18-194.el5.x86_64.rpm验证软件包安装:
# rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep glibc-devel
2)创建安装组和用户:
3)创建安装目录并设置相应权限:
# mkdir -p /u01/app/oracle# chown -R oracle:oinstall /u01# chmod -R 775 /u014)调整内核参数:
# vim /etc/sysctl.conf kernel.sem = 250 32000 100 128 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.shmall = 2097152 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 262144 net.core.rmem_max = 2097152 net.core.wmem_default = 262144 net.core.wmem_max = 262144
使调整生效:
5)调整shell运行参数:
# /etc/security/limits.conf oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536
载入验证模块:
调整oracle用户最大可打开的进程数(u)和文件数(n)(针对bash):
http://www.ibm.com/developerworks/cn/linux/l-cn-ulimit/
# vim /etc/profile if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi
6)设置ORACLE_BASE环境变量
7)开始安装: