Installing Oracle GI. Database 11g (11.2.0.1) on OEL 6.5
Autor: Eduardo Valentim | Publicado: 2014-08-15T22:32:00-03:00

Amigos,
Criei este tutorial em vídeo para ajudá-los a instalar o Oracle GI com Database em um Linux 6 (Oracle Enterprise Linux ou Red Hat Enterprise Linux). Sabemos que há uma certa incompatibilidade (erro durante execução do root.sh do GI) nesta versão, mas foram contornadas e demonstradas neste vídeo. Quaisquer dúvidas ou comentários para melhorar os tutoriais são bem-vindos!





Abaixo algumas listagens de comandos para auxiliar na instalação:

- Pacotes para instalar o VMWARE TOOLS:

cd /mnt/Packages
yum -y install kernel-uek-headers
rpm -Uvh kernel-uek-devel*x86_64*
rpm -Uvh binutils-2*x86_64*
rpm -Uvh gcc-4*x86_64*

- Pacotes para a instalação do Oracle:

rpm -Uvh glibc-2*x86_64* nss-softokn-freebl-3*x86_64*
rpm -Uvh glibc-2*i686* nss-softokn-freebl-3*i686*
rpm -Uvh compat-libstdc++-33*x86_64*
rpm -Uvh glibc-common-2*x86_64*
rpm -Uvh glibc-devel-2*x86_64*
rpm -Uvh glibc-devel-2*i686*
rpm -Uvh glibc-headers-2*x86_64*
rpm -Uvh elfutils-libelf-0*x86_64*
rpm -Uvh elfutils-libelf-devel-0*x86_64*
rpm -Uvh libstdc++-devel-4*x86_64*
rpm -Uvh gcc-c++-4*x86_64*
rpm -Uvh ksh-*x86_64*
rpm -Uvh libaio-0*x86_64*
rpm -Uvh libaio-devel-0*x86_64*
rpm -Uvh libaio-0*i686*
rpm -Uvh libaio-devel-0*i686*
rpm -Uvh libgcc-4*x86_64*
rpm -Uvh libgcc-4*i686*
rpm -Uvh libstdc++-4*x86_64*
rpm -Uvh libstdc++-4*i686*
rpm -Uvh make-3.81*x86_64*
rpm -Uvh numactl-devel-2*x86_64*
rpm -Uvh sysstat-9*x86_64*
rpm -Uvh compat-libstdc++-33*i686*
rpm -Uvh compat-libcap*
rpm -Uvh unixODBC-2*x86_64*
rpm -Uvh unixODBC-devel-2*x86_64*
rpm -Uvh oracleasm-support-2*x86_64*
rpm -Uvh ksh-*x86_64*

- Parâmetros de Kernel:

kernel.sem = 250 32000 100 256
fs.file-max = 6815744
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576

- Limites de Kernel:

oracle &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;soft &nbsp; &nbsp;nproc &nbsp; 2047
oracle &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hard &nbsp; &nbsp;nproc &nbsp; 16384
oracle &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;soft &nbsp; &nbsp;nofile &nbsp;4096
oracle &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hard &nbsp; &nbsp;nofile &nbsp;65536
oracle &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;soft &nbsp; &nbsp;stack &nbsp; 10240

grid &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;soft &nbsp; &nbsp;nproc &nbsp; 2047
grid &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hard &nbsp; &nbsp;nproc &nbsp; 16384
grid &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;soft &nbsp; &nbsp;nofile &nbsp;4096
grid &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hard &nbsp; &nbsp;nofile &nbsp;65536
grid &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;soft &nbsp; &nbsp;stack &nbsp; 10240

- Bash Profiles:

/home/grid/.bash_profile:

export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/grid
export ORACLE_SID=+ASM
export PATH=$PATH:$ORACLE_HOME/bin
umask 022

/home/oracle/.bash_profile:

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_UNQNAME=orcl
export ORACLE_SID=orcl
export PATH=$PATH:$ORACLE_HOME/bin
umask 022

- Texto para inserir no script "/u01/app/grid/product/11.2.0/grid/crs/install/s_crsconfig_lib.pm" antes de executar o "root.sh" para evitar o erro "ohasd failed to start: Inappropriate ioctl for device":

my $UPSTART_OHASD_SERVICE = "oracle-ohasd";
my $INITCTL = "/sbin/initctl";

($status, @output) = system_cmd_capture ("$INITCTL start $UPSTART_OHASD_SERVICE");
if (0 != $status)
{
error ("Failed to start $UPSTART_OHASD_SERVICE, error: $!");
return $FAILED;
}

- Conteúdo do /etc/init/oracle-ohasd.conf criado antes de executar o "root.sh":

start on runlevel [35]
stop on runlevel [!35]
respawn
exec /etc/init.d/init.ohasd run &gt;/dev/null 2&gt;&amp;1 &lt;/dev/null