Falha ao tentar instalar Banco de Dados Oracle 10.2.0.1 em Oracle Linux 5.7

Este artigo tem como objetivo explicar e solucionar a Falha durante a instalação do Banco de Dados 10g no Oracle Linux 5.7.

Durante a instalação ocorreu o seguinte erro:
“Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
Failed <<<<“


Segue evidência abaixo:

[oracle@serveroracle database]$ ./runInstaller
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
                                      Failed <<<<

Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2012-03-29_11-17-22AM/installActions2012-03-29_11-17-22AM.log
[oracle@serveroracle database]$

O erro ocorreu pois ao checar a versão do Sistema Operacional o Oracle Linux 5 não passou pela certificação. Isso acontece pois o instalador do Oracle 10g é antigo, ou seja, novos instaladores são já certificados.
Observando os sistemas operacionais na mensagem acima “must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2” não tem o redhat-5.

Há duas maneiras de solucionar este problema:
– Adicionando o “redhat-5” no arquivo “oraparam.ini”;
– Utilizar o comando “./runInstaller -ignoreSysPrereqs”. Veja no Metalink: [ID 419646.1]

Vou utilizar a primeira opção. Vamos adicionar o “redhat-5” no arquivo de instalação do Oracle.

[oracle@serveroracle database]$ ls -l
total 28
drwxr-xr-x 9 oracle oinstall 4096 Oct 29  2007 doc
drwxr-xr-x 5 oracle oinstall 4096 Mar 29 11:19 install
drwxr-xr-x 2 oracle oinstall 4096 Oct 29  2007 response
-rwxr-xr-x 1 oracle oinstall 1327 Jul  2  2005 runInstaller
drwxr-xr-x 9 oracle oinstall 4096 Oct 29  2007 stage
-rwxr-xr-x 1 oracle oinstall 5213 Jul  2  2005 welcome.html
[oracle@serveroracle database]$

Vamos acessar o diretório “install/”.

[oracle@serveroracle database]$ cd install/
[oracle@serveroracle install]$ ls -l
total 180
-rwxr-xr-x 1 oracle oinstall     28 Jul  2  2005 addLangs.sh
-rwxr-xr-x 1 oracle oinstall     76 Jul  2  2005 addNode.sh
drwxr-xr-x 2 oracle oinstall   4096 Oct 29  2007 images
-rwxr-xr-x 1 oracle oinstall  35634 Jul  2  2005 lsnodes
-rwxr-xr-x 1 oracle oinstall   2268 Jul  2  2005 oneclick.properties
-rwxr-xr-x 1 oracle oinstall   2387 Jul  2  2005 oraparam.ini
-rwxr-xr-x 1 oracle oinstall   6428 Jul  2  2005 oraparamsilent.ini
drwxr-xr-x 2 oracle oinstall   4096 Oct 29  2007 resource
drwxr-xr-x 2 oracle oinstall   4096 Oct 29  2007 response
-rwxr-xr-x 1 oracle oinstall 102612 Jul  2  2005 unzip
[oracle@serveroracle install]$

No arquivo “oraparam.ini” estão os parâmetros de inicialização para a instalação do Software Oracle no Linux.
Vamos visualizar o mesmo.

[oracle@serveroracle install]$ cat oraparam.ini
[Oracle]
DISTRIBUTION=TRUE
SOURCE=../stage/products.xml
LICENSE_LOCATION=
JRE_LOCATION=../stage/Components/oracle.swd.jre/1.4.2.8.0/1/DataFiles
JRE_MEMORY_OPTIONS=" -mx150m"
DEFAULT_HOME_LOCATION=oracle/product/10.2.0/db
DEFAULT_HOME_NAME=OraDb10g_home
NO_BROWSE=/net
NLS_ENABLED=TRUE
BOOTSTRAP=TRUE
PREREQ_CONFIG_LOCATION=../stage/prereq
OUI_VERSION=10.2.0.1.0
#SHOW_HOSTNAME=ALWAYS_SHOW shows the hostname panel always
#SHOW_HOSTNAME=NEVER_SHOW does not the hostname panel
#SHOW_HOSTNAME=CONDITION_SHOW shows the hostname panel on condition
SHOW_HOSTNAME=NEVER_SHOW
#THIN_JDBC_FILENAME is optional and defaults to classes12.jar
#The value specified for this should be packaged with OUI, and should
#be relative to <OUI expanded stagedir>/jlib/
THIN_JDBC_FILENAME=classes12.jar
#JRE_OSDPARAM is to set OS dependent param for JRE ( mainly for native VM in 1.3.1)
#JRE_OSDPARAM is optional and should be set to -native for the JRE's
#that support native VM ( mainly for Unix platforms ), in JRE 1.3.1
#For JRE 1.4.1 this should be set to empty or the type of VM that is
#supported client/server. The default value is -native in UNIX platforms
#that supports native VM
#Unix supporting native - JRE_OSDPARAM="-native"
#Unix NOT supporting native and 1.4.1 - JRE_OSDPARAM=""
JRE_OSDPARAM=""
CLUSTERWARE={"oracle.crs","10.1.0.2.0"}
#RUN_OUICA specifies the batch script name that needs to be run
#The script is ouica.bat for win32, and ouica.sh for solaris.
#If the value is not specified, then the OUICA script is not run
RUN_OUICA=ouica.sh
SILENT_VARIABLE_VALIDATION=TRUE

[Certified Versions]
Linux=redhat-3,SuSE-9,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2

[UnitedLinux-1.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256

[Linux-redhat-3.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256

[Linux-SuSE-9-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256

[Linux-redhat-4.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256

[Linux-asianux-1.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256

[Linux-asianux-2.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256

[IMAGES]
FILE1=images/rdbms_1.gif
FILE2=images/rdbms_2.gif
FILE3=images/rdbms_3.gif
FILE4=images/rdbms_4.gif
FILE5=images/rdbms_5.gif
FILE6=images/rdbms_6.gif
FILE7=images/rdbms_7.gif
FILE8=images/rdbms_8.gif

LICENSE_LOCATION=license.txt
[oracle@serveroracle install]$

Conforme acima, na linha abaixo de [Certified Versions] “Linux=redhat-3,SuSE-9,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2” vamos adicionar o redhat-5 nesta.

[oracle@serveroracle install]$ vi oraparam.ini
[oracle@serveroracle install]$ cat oraparam.ini
[Oracle]
DISTRIBUTION=TRUE
SOURCE=../stage/products.xml
LICENSE_LOCATION=
JRE_LOCATION=../stage/Components/oracle.swd.jre/1.4.2.8.0/1/DataFiles
JRE_MEMORY_OPTIONS=" -mx150m"
DEFAULT_HOME_LOCATION=oracle/product/10.2.0/db
DEFAULT_HOME_NAME=OraDb10g_home
NO_BROWSE=/net
NLS_ENABLED=TRUE
BOOTSTRAP=TRUE
PREREQ_CONFIG_LOCATION=../stage/prereq
OUI_VERSION=10.2.0.1.0
#SHOW_HOSTNAME=ALWAYS_SHOW shows the hostname panel always
#SHOW_HOSTNAME=NEVER_SHOW does not the hostname panel
#SHOW_HOSTNAME=CONDITION_SHOW shows the hostname panel on condition
SHOW_HOSTNAME=NEVER_SHOW
#THIN_JDBC_FILENAME is optional and defaults to classes12.jar
#The value specified for this should be packaged with OUI, and should
#be relative to <OUI expanded stagedir>/jlib/
THIN_JDBC_FILENAME=classes12.jar
#JRE_OSDPARAM is to set OS dependent param for JRE ( mainly for native VM in 1.3.1)
#JRE_OSDPARAM is optional and should be set to -native for the JRE's
#that support native VM ( mainly for Unix platforms ), in JRE 1.3.1
#For JRE 1.4.1 this should be set to empty or the type of VM that is
#supported client/server. The default value is -native in UNIX platforms
#that supports native VM
#Unix supporting native - JRE_OSDPARAM="-native"
#Unix NOT supporting native and 1.4.1 - JRE_OSDPARAM=""
JRE_OSDPARAM=""
CLUSTERWARE={"oracle.crs","10.1.0.2.0"}
#RUN_OUICA specifies the batch script name that needs to be run
#The script is ouica.bat for win32, and ouica.sh for solaris.
#If the value is not specified, then the OUICA script is not run
RUN_OUICA=ouica.sh
SILENT_VARIABLE_VALIDATION=TRUE

[Certified Versions]
Linux=redhat-3,SuSE-9,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2,redhat-5

[UnitedLinux-1.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256

[Linux-redhat-3.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256

[Linux-SuSE-9-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256

[Linux-redhat-4.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256

[Linux-asianux-1.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256

[Linux-asianux-2.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256

[IMAGES]
FILE1=images/rdbms_1.gif
FILE2=images/rdbms_2.gif
FILE3=images/rdbms_3.gif
FILE4=images/rdbms_4.gif
FILE5=images/rdbms_5.gif
FILE6=images/rdbms_6.gif
FILE7=images/rdbms_7.gif
FILE8=images/rdbms_8.gif

LICENSE_LOCATION=license.txt
[oracle@serveroracle install]$

Após adicionarmos o redhat-5 na linha de certificação das versões dos sistemas operacionais, vamos executar novamente o “./runInstaller”.

[oracle@serveroracle database]$ ./runInstaller
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1, asianux-2 or redhat-5
                                      Passed

All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-03-29_11-21-25AM. Please wait ...[oracle@serveroracle database]$

Pronto solucionamos o problema, agora basta continuar a instalação.

%name Falha ao tentar instalar Banco de Dados Oracle 10.2.0.1 em Oracle Linux 5.7

Autor: Maycon Tomiasi

Formado em Tecnologia da Informação na FIPP (Faculdade de Informática de Presidente Prudente), Analista DBA Oracle pela Teiko Soluções em Tecnologia da Informação, residente em Blumenau/ SC, Certificado OCP 10g/11g/12c, OCS 11g Implementation, OCE 11g Performance Tuning, OCE 11g RAC & GRID e OPN Specialist. Conhecimentos em PHP.