martes, 4 de junio de 2013

Upgrade EBS R12.1.1 a R12.1.3



   4.      Upgrade Ebs R12.1.1 A R12.1.3
Para realizar el upgrade a R12.1.3 debemos bajar el parche 9239090, descargamos de la pag. https://updates.oracle.com/Orion/SimpleSearch/get_form?
 Para nuestro ejemplo debemos descargar para la plataforma Linux x86


Pre Requisitos
Antes de aplicar el parche de upgrade debemos aplicar el parche R12.AD.B.DELTA.3 Patch 9239089.
Antes de aplicar debemos setear las variables de entorno de la Base de Datos.

[oracle@cr12 r12.1.3]$ . /u01/oracle/PROD/db/tech_st/11.1.0/PROD_cr12.env


Instrucciones para correr el AD Grants:
1.       Sobre el servidor de Base de datos crear el siguiente directorio:
  $ORACLE_HOME/appsutil/admin
 
[oracle@cr12 r12.1.3]$ mkdir $ORACLE_HOME/appsutil/admin

2.       Ahora debemos descomprimir el parche p9239089_R12.AD.B_R12_LINUX.zip, de donde copiaremos el archivo adgrants.sql, Del directorio 9239089/admin al directorio $ORACLE_HOME/appsutil/admin
3.       Ejecutamos el archivo adgrants.sql desde sqlplus
[oracle@cr12 admin]$ sqlplus /nolog
SQL> @$ORACLE_HOME/appsutil/admin/adgrants.sql apps



Al final debe mostrar el mensaje PL/SQL procedure successfully completed.



Ahora podemos aplicar el parche  9239089 

Seteamos las variables de ambiente de la aplicación.
[oracle@cr12 9239089]$ . /u01/oracle/PROD/apps/apps_st/appl/APPSPROD_cr12.env             

Bajemos la capa de aplicación y colocamos en modo de mantenimiento
[oracle@cr12 9239089]$ cd $ADMIN_SCRIPTS_HOME
[oracle@cr12 scripts]$ adstpall.sh

Con el utilitario adadmin podemos cambiar el modo de mantenimento
[oracle@cr12 9239089]$ adadmin

Del menú seleccionamos la opción    5.    Change Maintenance Mode
Luego la opción    1.    Enable Maintenance Mode

Usamos el utilitario “adpatch” para poder aplicar el parche, ingresamos a la carpeta del parche 9239089.
[oracle@cr12 9239089]$ adpatch

Una vez aplicado el parche debemos realizar algunos pasos post la instalación, Con el utilitario adadmin compilamos todo el esquema APPS.

Seleccionamos la opción:   3.    Compile/Reload Applications Database Entities menu
Luego la opción:   1.    Compile APPS schema 
Run Invoker Rights processing in incremental mode [No] ?No

Luego de esperar varios minutos ahora ya está listo para aplicar el parche de upgrade a 12.1.3
Debemos descomprimir los siguientes archivos:
p9239090_R12_LINUX_1of6.zip
p9239090_R12_LINUX_2of6.zip
p9239090_R12_LINUX_3of6.zip
p9239090_R12_LINUX_4of6.zip
p9239090_R12_LINUX_5of6.zip
p9239090_R12_LINUX_6of6.zip

Para descomprimir todo en uno podemos usar el siguiente comando:
[oracle@cr12 R12.1.3]$ unzip '*.zip'


Ingresamos al directorio y seteamos las variables de ambiente de APP:
[oracle@cr12 R12.1.3]$ cd 9239090
[oracle@cr12 9239090]$ . /u01/oracle/PROD/apps/apps_st/appl/APPSPROD_cr12.env

Para evitar un bug debemos remplazar en el archivo $AD_TOP/bin/adrelinknew.sh.
 On R12.1.3, The Patch 9239090 Failed During The Relink of FEMCCE module, what Is the Potential solution? [ID 1303269.1]

CPP_LDFLAGS=' -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/stubs -lclntsh'
Por:
CPP_LDFLAGS=' -L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/lib/stubs -lclntsh -Wl,--noinhibit-exec'

Debemos asegurar que el Tablespace APPS_TS_TX_DATA tenga suficiente espacio para la actualización de datos.

Ahora aplicamos el parche con el utilitario adpatch
[oracle@cr12 9239090]$ adpatch
Your default directory is '/u01/oracle/PROD/apps/apps_st/appl'.
Is this the correct APPL_TOP [Yes] ?Yes
Filename [adpatch.log] : 9239090.log
Do you wish to activate this feature [No] ?No
Please enter the batchsize [1000] : 1000
using ORACLE executables in '/u01/oracle/PROD/apps/tech_st/10.1.2'.
Is this the correct database [Yes] ?Yes
Enter the password for your 'SYSTEM' ORACLE schema:manager
Enter the ORACLE password of Application Object Library [APPS] :apps
The default directory is [/u01/R12.1.3/9239090] : /u01/R12.1.3/9239090
Please enter the name of your AutoPatch driver file : u9239090.drv
The translated version of the patch should be applied immediately AFTER
applying this base patch.
Do you wish to apply this patch now [No] ?Yes
Enter the number of parallel workers [8] : 16


Es posible que salga error al compilar paquetes del módulo AR (.pll), estos errores podemos omitirlo ya que luego aplicaremos parches para solucionar.

Ahora aplicamos el parche idioma:
[oracle@cr12 R12.1.3]$ cd 9239090_ESA/
[oracle@cr12 9239090_ESA]$ adpatch
Your default directory is '/u01/oracle/PROD/apps/apps_st/appl'.
Is this the correct APPL_TOP [Yes] ?Yes
Filename [adpatch.log] : 9239090_esa.log
Do you wish to activate this feature [No] ?No
Please enter the batchsize [1000] :1000
Is this the correct database [Yes] ?Yes
Enter the password for your 'SYSTEM' ORACLE schema:manager
Enter the ORACLE password of Application Object Library [APPS] :apps
The default directory is [/u01/R12.1.3/9239090_ESA] :
Please enter the name of your AutoPatch driver file : u9239090.drv
Enter the number of parallel workers [8] : 16

Debemos aplicar el siguiente parche 9239095 para habilitar la ayuda online

[oracle@cr12 9239095]$ unzip p9239095_R12_GENERIC.zip


[oracle@cr12 post]$ cd 9239095/
[oracle@cr12 9239095]$ adpatch
Is this the correct APPL_TOP [Yes] ?
Filename [adpatch.log] : 9239085.log
Do you wish to activate this feature [No] ?
Please enter the batchsize [1000] :
Is this the correct database [Yes] ?
Enter the password for your 'SYSTEM' ORACLE schema:
Enter the ORACLE password of Application Object Library [APPS] :
The default directory is [/u01/R12.1.3/post/9239095] :
Please enter the name of your AutoPatch driver file : u9239095.drv
Enter the number of parallel workers [8] : 16



Pasos de Post Update
Luego de la instalación del parche upgrade debemos realizar los siguientes pasos:
1.       Aplicar parches:
-          Patch 9817770 (9817770:R12.ATG_PF.B [POST-R12.ATG_PF.B.DELTA.3 CONSOLIDATED PATCH].)
-          Patch 9966055 (9966055:R12.FND.B [TRANSLATED VERSION OF FNDSCSGN NOT LAUNCHED].)

Parche 9817770.
[oracle@cr12 post]$ cd 9817770
[oracle@cr12 9817770]$ adpatch
Is this the correct APPL_TOP [Yes] ?
Filename [adpatch.log] : 9817770.log
Do you wish to activate this feature [No] ?
Please enter the batchsize [1000] :
Is this the correct database [Yes] ?
Enter the password for your 'SYSTEM' ORACLE schema:
Enter the ORACLE password of Application Object Library [APPS] :
The default directory is [/u01/R12.1.3/post/9817770] :
Please enter the name of your AutoPatch driver file : u9817770.drv

Parche 9966055
[oracle@cr12 9817770]$ cd ../9966055/
[oracle@cr12 9966055]$ adpatch
Is this the correct APPL_TOP [Yes] ?
Filename [adpatch.log] : 9817770.log
Do you wish to activate this feature [No] ?
Please enter the batchsize [1000] :
Is this the correct database [Yes] ?
Enter the password for your 'SYSTEM' ORACLE schema:
Enter the ORACLE password of Application Object Library [APPS] :
The default directory is [/u01/R12.1.3/post/9966055] :
Please enter the name of your AutoPatch driver file : u9966055.drv

2.       Reconstruir el appsutil para DB.
Ahora nos queda reconstruir la carpeta appsutil en la DB.
Nodo Aplicación:
-          Seteamos las variables de ambiente
[oracle@cr12 post]$ . /u01/oracle/PROD/apps/apps_st/appl/APPSPROD_cr12.env

-          luego ejecutamos el autoconfig donde nos debería salir un mensaje “AutoConfig completed successfully”
[oracle@cr12 post]$ cd $ADMIN_SCRIPTS_HOME
[oracle@cr12 scripts]$ adautocfg.sh

-          A continuación ejecutamos el utilitario admkappsutil.pl para crear el archivo appsutil.zip.
[oracle@cr12 scripts]$ perl $AD_TOP/bin/admkappsutil.pl

-          Ahora debemos copiar el archivo appsutil.zip en el directorio $ORACLE_HOME de la DB.
[oracle@cr12 scripts]$ cd  /u01/oracle/PROD/inst/apps/PROD_cr12/admin/out/
[oracle@cr12 u01]$ . /u01/oracle/PROD/db/tech_st/11.1.0/PROD_cr12.env
[oracle@cr12 out]$ cp appsutil.zip $ORACLE_HOME

-          Ingresamos al directorio $ORACLE_HOME de la base de datos y descomprimimos el archivo appsutil.zip
[oracle@cr12 u01]$ cd $ORACLE_HOME
[oracle@cr12 11.1.0]$ unzip -o appsutil.zip

Para finalizar el upgrade se tiene que correr la pre clonación en el nodo de base de datos y el nodo de aplicaciones.
Nodo BD
[oracle@cr12 11.1.0]$ cd $ORACLE_HOME/appsutil/scripts/PROD_cr12/
[oracle@cr12 PROD_cr12]$ perl adpreclone.pl dbTier

Al final de la pre clonación debería salir el mensaje “Completed Stage...”

Nodo APP

[oracle@cr12 out]$ cd $ADMIN_SCRIPTS_HOME
[oracle@cr12 scripts]$ perl adpreclone.pl appsTier

Al final de la pre clonación debería salir el mensaje “Completed Stage...”

Una vez finalizado la pre clonación debemos quitar el modo mantenimiento:
[oracle@cr12 scripts]$ adadmin
Is this the correct APPL_TOP [Yes] ?
Filename [adadmin.log] :
Do you wish to activate this feature [No] ?
Please enter the batchsize [1000] :
Is this the correct database [Yes] ?
Enter the password for your 'SYSTEM' ORACLE schema:
Enter the ORACLE password of Application Object Library [APPS] :


 5    Change Maintenance Mode


2    Disable Maintenance Mode
Review the messages above, then press [Return] to continue.

Por ultimo subimos la capa de aplicación.
[oracle@cr12 scripts]$ adstrtal.sh

Para verificar la versión ingresamos con “sysadmin” a la responsabilidad “System Administrator” luego ingresamos al menú “Oracle Aplications Manager” ahí seleccionamos el ítem “Dashboard”





Una vez ingresado a “Dashboard” debemos ingresar a la opción “Software updates”  donde ahí indica la versión.



Nota de Referencia:
Oracle E-Business Suite Release 12.1.3 Readme [ID 1080973.1]               

No se olviden se vale comentar...
  

No hay comentarios:

Publicar un comentario