CentOS 6 真的是万众瞩目啊!
#添加用户组:
/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
/usr/sbin/groupadd oper
#添加用户
/usr/sbin/useradd -g oinstall -G dba oracle
#创建安装目录
mkdir -p /home/oracle/oracle
#创建数据文件目录
mkdir /home/oracle/oradata
#赋权:
chown -R oracle:oinstall /home/oracle
chmod -R 775 /home/oracle/
编辑:
vi /etc/sysctl.conf
添加(如果原有的,则注释掉)
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
编辑:
vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
编辑
vi /etc/pam.d/login
session required /lib64/security/pam_limits.so
编辑
vi /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
编辑
vi /etc/redhat-release
#CentOS Linux release 6.0 (Final)
redhat-4