查看linux系统版本
cat /etc/redhat-release
1、安装依赖包
yum install -y compat-libcap1 compat-libstdc++-33 gcc-c++ ksh libaio-devel libstdc++-devel elfutils-libelf-devel fontconfig-devel libXrender-devel
2、创建组和用户
groupadd oinstall
groupadd dba
groupadd oper
groupadd asmdba
groupadd backupdba
groupadd dgdba
groupadd kmdba
groupadd racdba
添加用户分组
useradd -g oinstall -G dba oracle
修改用户分组
usermod -a -G asmdba,backupdba,dgdba,kmdba,racdba oracle
查看用户分组
groups oracle
passwd oracle
oracle
oracle
3、修改用户的Shell限制(可不配置)
[root@bogon /]# vim /etc/security/limits.conf
在结尾添加如下内容
oracle soft core unlimited
oracle hard core unlimited
oracle soft nofile 10240
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
4、修改内核参数(可不配置)
[root@bogon /]# vim /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 16451328
kernel.shmmax = 33692319744
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
配置生效
[root@bogon /]# /sbin/sysctl -p
5、配置hosts
[root&#