viernes, 19 de septiembre de 2014

UPGRADE A 9.2.0.8


Ahora que ya tenemos instalado el software 9.2.0.1 vamos a hacer un upgrade a la versión 9.2.0.8  corriendo el parche 4547809 que se encuentra en  /media/patch/

  • Lo descomprimimos con el usuario oracle
  • Una vez descomprimido nos posicionamos en el directorio generado  
    • Disk1
  • Corremos el runInstaller
    • ./runInstaller.sh
  • Nos preguntará “destination”
    • escribimos el path
    • O el que sea el path de nuestro ORACLE_HOME
    • y damos next
  • Seleccionamos el producto.
    • En este caso el parche.
  • Nos va a pedir correr el archivo root.sh y lo corremos con el usuario root
    • ./root.sh
    • recordemos que se encuentra en la ruta de ORACLE_HOME
  • Damos ok y listo !

OPATCH

Colocamos la carpeta OPatch copiandola desde un servidor que ya la tenga
scp OPatch.tar oracle@ipdestino:/temporal
La colocamos en ORACLE_HOME
Le cambiamos de usuario
chown oracle:oinstall OPatch.tar
La descomprimimos
tar -xvf OPatch.tar
Exportamos lo siguiente
export PATH=$PATH:$ORACLE_HOME/bin
export PATH=$PATH:$ORACLE_HOME/OPatch
POSTPASOS

Instalar los siguientes parches
1) Parche 9119275
2) Parche 9655027
3) Parche 5576565
Se instalarán en ese orden ya que uno es prerequisito del otro.


PARCHE 9119275

Para ver los parches instalados usamos el comando
opatch lsinventory
Nos colocamos en la ruta /ruta_del_parche/9119275
Para ver si pudiera haber conflictos corremos el comando
opatch apply -report
Comenzamos con la aplicación del parche con el comando
opatch apply

Procedemos con el siguiente parche.

Nota:
ERRORES QUE SE PUEDEN PRESENTAR:
1. $ORACLE_HOME/jdk/bin/jar file is missing
2. $ORACLE_HOME/jdk/bin/jar file fails to execute
3. $ORACLE_HOME/jdk/bin/jar file is an invalid symbolic link

PARA SOLUCIONAR EL ERROR
Primero, localizar el archivo en cuestión para crear el link.
Opción 1:
AIX 5L
 opatch apply -jdk /usr/java14

Opción 2:
AIX 5L
ln -s /usr/java14/bin/jar $ORACLE_HOME/jdk/bin/jar





Remove the following line in $ORACLE_HOME/Apache/Apache/conf/httpd.conf, if it exists:
FastCGIServer fcgi-bin/echo -initial-env ORACLE_HOME -initial-env NLS_LANG

Run the following commands as the root user:
chown root $ORACLE_HOME/bin/dbsnmp
chmod 6750 $ORACLE_HOME/bin/dbsnmp

PARCHE 9655027

Para ver si pudiera haber conflictos corremos el comando
opatch apply -report
Comenzamos con la aplicación del parche con el comando
opatch apply

Run the remove_demo.sh script to remove vulnerable Oracle HTTP Server demos. The demos cannot be restored after you run the script. If you expect to use the demos in the future, then manually backup the files in the $ORACLE_HOME/Apache/Apache/fcgi-bin directory before running the script.

To run remove_demo.sh, go to the directory where you downloaded the patch and enter the following commands:
cd 9655027
sh remove_demo.sh

Remove the following line in $ORACLE_HOME/Apache/Apache/conf/httpd.conf, if it exists:
FastCGIServer fcgi-bin/echo -initial-env ORACLE_HOME -initial-env NLS_LANG

Run the following commands as the root user:
chown root $ORACLE_HOME/bin/dbsnmp
chmod 6750 $ORACLE_HOME/bin/dbsnmp

PARCHE 5576565
Para ver si pudiera haber conflictos corremos el comando
opatch apply -report
Comenzamos con la aplicación del parche con el comando
opatch apply

DESPUÉS DE INSTALAR LOS PARCHES

Después de instalar los parches corremos el script
remove_demo.sh

Remover la siguiente linea en $ORACLE_HOME/Apache/Apache/conf/httpd.conf, en caso de que exista:
FastCGIServer fcgi-bin/echo -initial-env ORACLE_HOME -initial-env NLS_LANG

Correr los siguientes comandos con el usuario root:
chown root $ORACLE_HOME/bin/dbsnmp
chmod 6750 $ORACLE_HOME/bin/dbsnmp

No hay comentarios.:

Publicar un comentario