Oracle 安装环境内容
1.编辑/etc/sysctl.conf
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
kernel.shmmax = 536870912
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
2.在oracle用户下命令:vi~/.bash_profile
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.1/db_1
export EDITOR=/usr/bin/vim
export ORACLE_SID=orcl
export PATH=$ORACLE_HOME/bin:$PATH
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
最后使用命令soure .bash_profile使配置生效
3.修改配置文件vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 4096
oracle hard nofile 65536
4.创建文件目录
mkdir -p /opt/oracle
chown -R oracle:inostall /opt/oracle
chmod -R 775 /opt/oracle
5.编辑login vi/etc/pam.d/login
session required pam_limits.so
session required /lib/security/pam_limits.so
6.给oracle用户赋予使用图形界面权限
#xhost loacl:oracl
(更多精彩文章欢迎到我的网站:87技术网 http://www.qu87.com)
本文出自 “87IT技术服务” 博客,请务必保留此出处http://qu87w.blog.51cto.com/3080528/1556772