在Oracle VirtualBox 安装 Oracle 10g For Oracle Linux 5(二)

2014-11-24 18:34:27 · 作者: · 浏览: 1
p_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


"/etc/sysctl.conf" 47L, 1280C written


[root@ora10g /]# /sbin/sysctl-p


net.ipv4.ip_forward = 0


net.ipv4.conf.default.rp_filter = 1


net.ipv4.conf.default.accept_source_route = 0


kernel.sysrq = 0


kernel.core_uses_pid = 1


net.ipv4.tcp_syncookies = 1


kernel.msgmnb = 65536


kernel.msgmax = 65536


kernel.shmmax = 4294967295


kernel.shmall = 268435456


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


5、 修改安全限制参数


这两个参数是对linux用户可以使用的进程数和打开的文件数的设置限制


|'GITPUB个人空间MFyl L$k7KL
oxf%O l2UUsoft是软限制:用户可以超过这个设置的值,但一定不能超过hard的值。


hard是硬限制:一般soft比hard小。


如果用LV管理的话,还需要加上如下两行:
m^$P$D+yf^t/J,Y20674423M$K
c2C&[^doracle,db2,sqlserver,sybase,mysql,erp,scm,sap,java,.netoracle soft memlock 3145728
L.bsqZ20674423x2e_



--------------------------------------------------------------------------------



hB_)sloracle hard memlock 3145728oracle,db2,sqlserver,sybase,mysql,erp,scm,sap,java,.net:}3y,Y6]-X0LY


[root@ora10g /]# vi /etc/security/limits.conf


oracle soft nproc 2047 --


oracle hard nproc 16384 --单用户可打开的最大进程数为16384个


oracle soft nofile 1024 --


oracle hard nofile 65536 --可打开最大文件个数65536


"/etc/security/limits.conf" 56L, 1903C written


7、配置相关的限制


[root@ora10g /]# vi/etc/pam.d/login


session required/lib/security/pam_limits.so ---设置可插入认证模块(PAM)限制


session required pam_limits.so ---为oracle设置Shell限制


"/etc/pam.d/login" 18L, 722C written


8、添加如下系统环境变量


[root@ora10g /]# vi /etc/profile


# /etc/profile


if [ $USER = "oracle" ]; then


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


ulimit -p 1638


ulimit -n 65536


else


ulimit -u 16384 -n 65536


fi


fi


"/etc/profile" 68L, 1205C written