shirobert 发表于 2018-9-25 07:31:27

Fast Setup for Oracle Install on HP-UX

  快速设置环境、内核、网络参数for Oracle11gR2在HP-UX 11.31上得安装;
  使用方法,和上两篇一样,您懂的;
  祝你成功:)
  #!/usr/bin/ksh
  # Copyright (C) 2004-2011 Alexatrebooting
  # All Rights Reserved.
  # Create by:alexatrebooting
  # Email: alexatrebooting
  # Update: 2011-12-1
  # Usage:revise to direct execute
  # description: Oracle 11g HP-UX Server install prepare script.
  echo "create user and group"
  mkdir -p /home/oracle
  mkdir -p /home/grid
  mkdir -p /u01/app/crs_base
  mkdir -p /u01/app/crs_home
  mkdir -p /u01/app/oracle/product/11.2.0/db_1
  /usr/sbin/groupadd -g 501 oinstall
  /usr/sbin/groupadd -g 502 dba
  /usr/sbin/groupadd -g 503 oper
  /usr/sbin/groupadd -g 504 asmadmin
  /usr/sbin/groupadd -g 505 asmoper
  /usr/sbin/groupadd -g 506 asmdba
  /usr/sbin/useradd -g oinstall -G dba,asmdba,oper oracle
  /usr/sbin/useradd -g oinstall -G asmadmin,asmdba,asmoper,oper,dba grid
  chown -Roracle:oinstall /home/oracle
  chown -R grid:oinstall /home/grid
  chown -R grid:oinstall /u01/app/crs*
  chown -R oracle:oinstall /u01/app/oracle
  echo "tune kernel parameter"
  #kctune -h nproc=4096
  #kctune -h ksi_alloc_max=32768
  #kctune -h executable_stack=0
  #kctune -h max_thread_proc=1024
  #kctune -h maxdsiz=1073741824
  #kctune -h maxdsiz_64bit=2147483648
  #kctune -h maxfiles=1024
  #kctune -h maxfiles_lim=63488
  #kctune -h maxssiz=134217728
  #kctune -h maxssiz_64bit=1073741824
  kctune -h maxuprc=3686
  kctune -h msgmni=4096
  kctune -h msgtql=4096
  kctune -h ncsize=35840
  kctune -h nflocks=4096
  kctune -h ninode=34816
  kctune -h nkthread=7184
  kctune -h semmni=8192 #?
  kctune -h semmns=16384 #?
  kctune -h semmnu=4092
  kctune -h semvmx=32767
  kctune -h shmmax=82463372083
  kctune -h shmmni=4096
  kctune -h shmseg=512
  kctune -h swchunk=65536 #?
  kctune -h vps_ceiling=16384 #?
  echo "revise nddconf file"
  cp /etc/rc.config.d/nddconf /etc/rc.config.d/nddconf.org.`date +%s`
  cat >>/etc/rc.config.d/nddconf
页: [1]
查看完整版本: Fast Setup for Oracle Install on HP-UX