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
7、对 oracle 用户设置限制,提高软件运行性能
进入编辑状态:vi /etc/security/limits.conf
找到最后一行# End of file,在它上面空行处添加如下代码:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
保存并退出。
8、配置用户的环境变量
进入编辑状态:vi /home/oracle/.bash_profile
export PATH=/home/oracle/app/oracle/product/11.2.0/dnhome_1/bin:
$PATH
export ORACLE_BASE=/home/oracle
export
ORACLE_HOME=$ORACLE_BASE/app/oracle/product/11.2.0/dbhome_1
export ORACLE_SID=orcl
export ORACLE_TERM=xterm
export PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH