为Oracle用户设定Shell的限制
一般来说,出于性能上的考虑,还需要需要进行如下的设定,以便改进Oracle用户的有关 nofile(可打开的文件描述符的最大数)和nproc(单个用户可用的最大进程数量)
1、修改限制
# vi /etc/security/limits.conf
# 添加如下的行
* soft nofile 4096
* hard nofile 65536
* soft nproc 2047
* hard nproc 16384
也可以只为oracle用户设定限制
oracle soft nofile 4096
oracle hard nofile 65536
orcle soft nproc 2047
oracle hard nproc 16384
2、为使其后续生效,运行命令vi /etc/pam.d/login,在其中加入
session required /lib/security/pam_limits.so
session required pam_limits.so
3、检查修改的参数
Check the soft and hard limits for the file descriptor setting. Ensure that the result is in the recommended range. For example
$ ulimit -Sn
$ ulimit -Hn
Check the soft and hard limits for the number of processes available to a user. Ensure that the result is in the recommended range. For example:
$ ulimit -Su
$ ulimit -Hu
相关推荐
oracle 11gR2 rac 1 更改网卡别名配置 /etc/udev/rules...10 配置权限参数 /etc/security/limits.conf 11 配置全局shell /etc/profile 12 互信 13 时钟同步 14 配置共享磁盘 验证安装Grid环境
1:创建ORACLE 用户,用户组,安装目录,授予相应的权限(root用户执行) /usr/sbin/groupadd -g 501 oinstall /usr/sbin/groupadd -g 502 dba ...vi /etc/security/limits.conf(root用户) 增加红色信息
1.4 修改/etc/security/limits.conf 6 1.5 修改/etc/pam.d/login 7 1.6 配置/etc/profile 7 1.7 修改oracle用户环境变量 7 1.8 创建oracle安装目录 7 1.9 配置系统参数文件 8 1.10 配置ntp服务 8 第二章 图形界面...
1)修改用户的SHELL的限制,修改/etc/security/limits.conf文件 输入命令:vi /etc/security/limits.conf,按i键进入编辑模式,将下列内容加入该文件。 oracle soft nproc 2047 oracle hard nproc 16384 oracle ...
前言 关于Linux系统的HugePages与Oracle数据库优化,可以参考熊...在/etc/security/limits.conf配置文件中,设置oracle用户memlock无限制: vi /etc/security/limits.conf oracle soft memlock unlimited oracle har
一.安装环境: Linux系统: CentOS 6.3 64位 Oracle: Oracle11gR2 64位 二....1.Linux安装Oracle系统要求 ...一般为内存的2倍,例如:1G的内存可以设置swap 分区为3G大小 ...输入命令:vi /etc/security/limits.conf,按i
1、配置系统内核参数,以root用户登录,...3、在/etc/security/limits.conf文件中加入下列行: oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536
从ORACLE 11gR2 for linux版本,已经不需要DBA们手动去编辑/etc/...件和/etc/security/limits.conf文件来修改操作系统的内核参数和限额,这些工作ORACL E会生成一个脚本,DBA只需要用root用户执行一下这个脚本即可。
[root@dbserver ~]# vi /etc/security/limits.conf …… oracle soft nproc 8192 oracle hard nproc 16384 oracle soft nofile 32768 oracle hard nofile 65536 运行runInstaller安装程序 将下载的两个zip包解压...
六、修改/etc/security/limits.conf,配置oracle 用户的shell 限制 七、修改/etc/pam.d/login 配置文件 八、修改/etc/profile 文件 九、修改内核配置文件 十、配置oracle 用户SSH 对等性 十一、配置共享磁盘 十二、...
/etc/sysctl.conf4.3.2 修改系统限制参数编辑: /etc/security/limits.conf4.3.3 配置oracle用户的环境变量文件4.3.4 创建文件夹4.3.4 开始上传附件5 安装5.1 安装前准备5.1.1 临时关闭SELinux 执行命令5.1.2 关闭...
[root@rac01 ~]# vi /etc/security/limits.conf oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 [root@rac01 ~]# vi /etc/pam.d/login session required /lib/...
mv /etc/ntp.conf /etc/ntp.conf.bak 重启所有节点 安装yum源规划 在/etc/yum.repos.d/ 目录下添加rhel5.repo文件 [root@node1 yum.repos.d]# pwd /etc/yum.repos.d [root@node1 yum.repos.d]# ls rhel5.repo ...
compatibility with older or less security conscience applications. We ; recommending using the production ini in production and testing environments. ; ...
/etc/security/limits //IBM核心参数配置文件 /etc/system //SUN核心参数配置文件 kmtune //HP-UX下用kmtune>kernel.txt将内核参数信息导出到kernel.txt文件中配置文件为: /usr/conf/master.d/core-hpux ##操作系统...