yum -y install elfutils-libelf-devel unixODBC unixODBC-devel libaio-devel
cd /software/
yum localinstall pdksh-5.2.14-37.el5_8.1.x86_64.rpm
添加oracle用户
# groupadd oinstall
# groupadd dba
# useradd -g oinstall -G dba oracle
# id oracle
uid=500(oracle) gid=500(oinstall) groups=500(oinstall),501(dba)
# mkdir -p /u01/app/oracle
# chown -R oracle.oinstall /u01
# chmod -R 775 /u01
这些命令没有人不懂了吧
配置内核参数和资源限制
# vim /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
# sysctl -p
更改shell限制
# vim /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
还必须添加以下内容到vim /etc/pam.d/login
# vim /etc/pam.d/login
session required /lib/security/pam_limits.so
更改登录脚本
将以下内容添加到/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
# unzip linux.x64_11gR2_database_1of2.zip -d /tmp/
# unzip linux.x64_11gR2_database_1of2.zip -d /tmp/
# chown -R oracle.oinstall /tmp/database/
把主机名和ip地址的对应关系加入/etc/hosts文件,要不然安装过程中会出错
# echo '192.168.23.200 Oracle.Study' >> /etc/hosts
Oracle的安装
# xhost +
access control disabled, clients can connect from any host
# su - oracle
$ cd /tmp/database/
$ ./runInstaller
剩下的全部下一步,第一页面(email都不用写),什么都不选,直接下一步,中间遇到check失败的,全部忽略,到此全部完成