标签:
http://www.linuxidc.com/Linux/2012-08/69082.htm
http://www.linuxidc.com/Linux/2013-10/91270.htm
1、内存检测 Oracle11g要求最低1GB内存
grep MemTotal /proc/meminfo
2、交换空间检测 通常交换空间是内存1.5倍
grep SwapTotal /proc/meminfo
3、临时目录/tmp检查
df -h /tmp
1、创建用户和用户组
/usr/sbin/groupadd dba /usr/sbin/useradd -g dba -m oracle passwd oracle mkdir /home/oracle/app mkdir /home/oracle/app/oracle mkdir /home/oracle/app/oradata mkdir /home/oracle/app/oracle/product chown -R oracle:dba /home/oracle/app
2、修改用户的SHELL的限制
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 /lib/security/pam_limits.so session required 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
3、修改linux内核
vi /etc/sysctl.conf fs.file-max = 6815744 fs.aio-max-nr = 1048576 kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 4194304 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576
立即生效
/sbin/sysctl -p
4、配置oracle用户的环境变量
su – oracle vi .bash_profile umask 022 export ORACLE_BASE=/home/oracle/app export ORACLE_HOME=$ORACLE_BASE/oracle/product/11.2.0/dbhome_1 export ORACLE_SID=orcl export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin #注意删除已有的 export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
注销系统
unzip linux_11gR2_database_1of2.zip unzip linux_11gR2_database_2of2.zip export LANG=en_US.UTF-8 ./runInstaller
标签:
原文地址:http://www.cnblogs.com/windyWu/p/4605983.html