test11_3

Maximum number of open file descriptors nofile 65536
  Maximum number of processes available to a single user nproc 16384
  
  现在创建这些限定:
  
  1. 加入下面的行到文件/etc/security/limits.conf
  
  * soft nproc 2047
  * hard nproc 16384
  * soft nofile 1024
  * hard nofile 65536
  
  
  2. 加入下面的行到文件/etc/pam.d/login ,假如它不存在的话
  
  session required /lib/security/pam_limits.so
  
  3.根据oracle 用户的默认shell,对默认 shell start-up文件作如下改变,如果是Bourne, Bash, or Korn shell,
       修改环境变量/etc/profile文件如下:
  
  if [ $USER = "oracle" ]; then
  if [ $SHELL = "/bin/ksh" ]; then
  ulimit -p 16384
  ulimit -n 65536
  else
  ulimit -u 16384 -n 65536
  fi
  
  fi
  
  如果是c shell,则环境变量文件 /etc/csh.login的修改值如下:
  
  if ( $USER == "oracle" ) then
  limit maxproc 16384
  limit descriptors 65536
  endif
  
  接下来挂接光盘,#mount /dev/cdrom /mnt/cdrom 。

你可能感兴趣的:(oracle,c,Security,bash,UP)