云中漫步 发表于 2018-9-25 12:05:45

oracle11gR2安装

  1.
  If necessary, enter the following commands to create the oinstall and dba
  groups:
  # /usr/sbin/groupadd oinstall
  # /usr/sbin/groupadd dba
  2.
  If the oracle user does not exist, enter the following command to create it:
  # /usr/sbin/useradd -g oinstall -G dba oracle
  3.
  Enter the following command to set the password of the oracle user:
  # passwd oracle
  4.
  Using any text editor, create or edit the vi/etc/sysctl.conf file, and add or
  edit lines similar to the following:
  fs.aio-max-nr = 1048576
  fs.file-max = 6815744
  kernel.shmall = 2097152
  kernel.shmmax = 536870912
  kernel.shmmni = 4096
  kernel.sem = 250 32000 100 128
  net.ipv4.ip_local_port_range = 9000 65500
  net.core.rmem_default = 262144
  net.core.rmem_max = 4194304
  net.core.wmem_default = 262144
  net.core.wmem_max = 1048586
  Enter the following command to change the current values of the kernel
  parameters:
  # /sbin/sysctl –p
  5.
  Add the following lines in thevi /etc/security/limits.conf file:
  oracle soft nproc 2047
  oracle hard nproc 16384
  oracle soft nofile 1024
  oracle hard nofile 65536
  6.
  Add the following line to the vi /etc/pam.d/login file, if it does not already exist:
  session required pam_limits.so
  7.
  Depending on the oracle user's default shell, make the following changes to the
  default shell startup file:
  For the Bourne, Bash, or Korn shell, add the following lines in the
  /etc/profile file (or the /etc/profile.local file on SUSE Linux
  Enterprise Server systems):
  if [ $USER = "oracle" ]; then
  if [ $SHELL = "/bin/ksh" ]; then
  ulimit -p 16384
  ulimit -n 65536
  else
  ulimit -u 16384 -n 65536
  fi
  fi
  7.
  Enter commands similar to the following to create the recommended

  subdirectories in the mount point directory that you>  appropriate owner, group, and permissions on them:
  # mkdir -p /u01/app/
  # chown -R oracle:oinstall /u01/app/
  # chmod -R 775 /u01/app/
  8.
  $ su – oracle
  Bourne shell (sh), Bash shell on Red Hat (bash), or Korn shell (ksh):
  $ vi .bash_profile
  export TMP=/tmp
  export TMPDIR=$TMP
  export ORACLE_BASE=/u01/app/oracle
  export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome
  export ORACLE_SID=secooler
  export ORACLE_TERM=xterm
  export PATH=/usr/sbin:$PATH
  export PATH=$ORACLE_HOME/bin:$PATH
  umask 022
  9.reboot
  10. root用户下
  xhost +
  11.vnc下安装

页: [1]
查看完整版本: oracle11gR2安装