打印本文 打印本文 关闭窗口 关闭窗口
RHAD AS4 上安装 Oracle 数据库 10.2.0 手册
作者:武汉SEO闵涛  文章来源:敏韬网  点击数8038  更新时间:2009/4/22 22:03:18  文章录入:mintao  责任编辑:mintao
/sbin/sysctl -a | grep sem

/sbin/sysctl -a | grep file-max

/sbin/sysctl -a | grep ip_local_port_range

如果系统的参数设置的比上述参数值小,则编辑 /etc/sysctl.conf 文件,添加或更改这些参数。完成后,运行以下命令激活更改:

/sbin/sysctl -p

 

 

 

oracle 用户设置 Shell 限制

Oracle 建议对每个 Linux 帐户可以使用的进程数和打开的文件数设置限制。要进行这些更改,以 root 用户的身份执行下列命令:

cat >> /etc/security/limits.conf <<EOF

oracle               soft    nproc   2047

oracle               hard    nproc   16384

oracle               soft    nofile  1024

oracle               hard    nofile  65536

EOF

 

 

 

cat >> /etc/pam.d/login <<EOF

session    required     /lib/security/pam_limits.so

EOF

对于 RHEL 4,使用以下命令:

cat >> /etc/profile <<EOF

if [ \$USER = "oracle" ]; then 

if [ \$SHELL = "/bin/ksh" ]; then

ulimit -p 16384

ulimit -n 65536

else

ulimit -u 16384 -n 65536

fi

umask 022

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]  ...  下一页 >> 

打印本文 打印本文 关闭窗口 关闭窗口