sexta-feira, 30 de setembro de 2011

Installing Oracle 10g on CentOs 5x


1. Download

# mkdir /opt/oracle
# mkdir /opt/oracle/oracle10gx86linux
# cd /opt/oracle/oracle10gx86linux
# wget http://download.oracle.com/otn/linux/oracle10g/10201/10201_database_linux32.zip
#


2. Pre-requirements


# yum install compat-db sysstat libaio-devel libXp
#
# vim /etc/sysctl.conf  # editar parametros de kernel
       :
  kernel.shmmax = 2147483648
  kernel.shmall = 2097152
  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=1048576
  net.core.rmem_max=1048576
  net.core.wmem_default=262144
  net.core.wmem_max=262144          
      :
# /sbin/sysctl -p /etc/sysctl.conf
#
# vim /etc/security/limits.conf   # editar parametros de seguranca
       :
  oracle              soft    nproc   2047
  oracle              hard    nproc   16384
  oracle              soft    nofile  1024
  oracle              hard    nofile  65536
       :
# vim /etc/pam.d/login
       :
  session    required     /lib/security/pam_limits.so
  session    required     pam_limits.so
       :
# vim /etc/profile
       :
  # Oracle 10g
  if [ $USER = "oracle" ]; then
     if [ $SHELL = "/bin/ksh" ]; then
        ulimit -p 16384
        ulimit -n 65536
     else
        ulimit -u 16384 -n 65536
     fi
  fi
       :
#
# cp /etc/redhat-release /etc/redhat-release.original   # backup original release
# echo redhat-4? > /etc/redhat-release                  # redhat-4 fake
#
# groupadd  oinstall
# groupadd  dba
# useradd -m -g oinstall -G dba -d /home/oracle -s /bin/bash -c "Oracle Software Owner" oracle
# passwd oracle
  New UNIX password: oracle
  Retype new UNIX password: oracle
#


3. Run Oracle Installer

   #
   # su - oracle
   # cd /opt/oracle/oracle10gx86linux
   # ./runInstaller  # se o bicho pegar tente a) usar o parametro -ignoreSysPrereqs; b) fazer login como oracle na interface grafica ao inves de su
      [x] Basic Installation
          Oracle Home Location: /home/oracle/product/10.2.0/db_1
          Installation Type   : Enterprise Edition (1.3GB)
          DBA Group           : oinstall
          [x] Create Starter Database
          Global Database Name: orcl
          Database Password   : manager10g
          Enter full path inventory directory: /home/oracle/oraInventory
          Specify OSGroupName : oinstall
          Check Network Config Requirements [x]
      [x] Advanced Installation
          DBA Group : oinstall
          Enter or select a name for installation: OraDb10g_home1
          Path      : /home/oracle/oracle/product/10.2.0/db_1
          Components:
                      [x] Oracle Call Interface (OCI) 10.2.0.1.0
                      [x] Oracle Programmer (OCI) 10.2.0.1.0
          # 


4. References



Nenhum comentário:

Postar um comentário