Aplicando Patch no Oracle SOA Suíte 12.2.1.3

No Oracle SOA Suíte 10.3 existiam três formas de aplicação de Patch: OPATCH,BSU e PSA

O OPATCH funciona para patchs no Oracle Home, o BSU que funciona para no weblogic e PSU funciona para patchs no FMW schemas que no caso são os esquemas de banco que criamos com o rca. Acho bem interessante fazer esse comentário sobre o Oracle SOA Suíte 10.3 devido a maioria dos produtos Oracle ainda funcionarem em cima dessa versão do Weblogic.
No Oracle SOA Suíte 12.2 as formas de aplicação de Patch foram simplificadas, ficando apenas o Opatch e o PSU.

Vamos iniciar baixando o nossos patchs.

Para realizar o downloard do patch e necessário uma conta no Oracle Suport.

Entre no site do Oracle Suport  https://support.oracle.com 

Digite o seu usuário e senha

Vá ate a aba Patchs & Updates

Vá na opção Product or Family e digite os dados do produto que deseje baixar os patchs.

Click no patch 27311023

Agora click em downloard

Após baixar o patch copie para um diretório no servidor.

cp p27311023_122130_Generic.zip  /u01/install

Extraia o patch

unzip p27311023_122130_Generic.zip

Antes de aplicar o patch verifique se todos os serviços do Oracle SOA Suite estão off

[oracle@soaapp soa_domain]$ ps -ef |grep java

oracle    6734  6708  0 23:08 pts/0    00:00:00 grep java

[oracle@soaapp soa_domain]$

Agora vamos gera uma lista dos patchs que já estão aplicados no Oracle SOA Suíte.

Entre no Opatch_Home /u01/app/oracle/product/12.2.1.2/fmw/OPatch

e execute o opatch com a opção lsinventory

[oracle@soaapp OPatch]$ ./opatch lsinventory

Oracle Interim Patch Installer version 13.9.2.0.0

Copyright (c) 2018, Oracle Corporation.  All rights reserved.

Oracle Home       : /u01/app/oracle/product/12.2.1.2/fmw

Central Inventory : /u01/app/oracle/oraInventory

   from           : /u01/app/oracle/product/12.2.1.2/fmw/oraInst.loc

OPatch version    : 13.9.2.0.0

OUI version       : 13.9.2.0.0

Log file location : /u01/app/oracle/product/12.2.1.2/fmw/cfgtoollogs/opatch/opatch2018-04-02_23-20-29PM_1.log
OPatch detects the Middleware Home as "/u01/app/oracle/product/12.2.1.2/fmw"
Lsinventory Output file location : /u01/app/oracle/product/12.2.1.2/fmw/cfgtoollogs/opatch/lsinv/lsinventory2018-04-02_23-20-29PM.txt

--------------------------------------------------------------------------------

Local Machine Information::

Hostname: soaapp.localdomain

ARU platform id: 226

ARU platform description:: Linux x86-64

Interim patches (4) :

Patch  26355633     : applied on Wed Mar 07 23:08:02 BRT 2018

Unique Patch ID:  21447583

Patch description:  "One-off"

   Created on 1 Aug 2017, 21:40:20 hrs UTC

   Bugs fixed:

     26355633

Patch  26287183     : applied on Wed Mar 07 23:07:47 BRT 2018

Unique Patch ID:  21447582

Patch description:  "One-off"

   Created on 1 Aug 2017, 21:41:27 hrs UTC

   Bugs fixed:

     26287183

Patch  26261906     : applied on Wed Mar 07 23:07:20 BRT 2018

Unique Patch ID:  21344506

Patch description:  "One-off"

   Created on 12 Jun 2017, 23:36:08 hrs UTC

   Bugs fixed:

     25559137, 25232931, 24811916

Patch  26051289     : applied on Wed Mar 07 23:07:10 BRT 2018

Unique Patch ID:  21455037

Patch description:  "One-off"

   Created on 31 Jul 2017, 22:11:57 hrs UTC

   Bugs fixed:

     26051289

--------------------------------------------------------------------------------

OPatch succeeded.

Para a aplicação do patch é bem simples

Entre no diretório onde está o patch e chame o executável do opatch com a opção apply

cd 27311023 
/u01/app/oracle/product/12.2.1.2/fmw/OPatch/opatch apply

[oracle@soaapp 27311023]$ /u01/app/oracle/product/12.2.1.2/fmw/OPatch/opatch apply

Oracle Interim Patch Installer version 13.9.2.0.0

Copyright (c) 2018, Oracle Corporation.  All rights reserved.

Oracle Home       : /u01/app/oracle/product/12.2.1.2/fmw

Central Inventory : /u01/app/oracle/oraInventory

   from           : /u01/app/oracle/product/12.2.1.2/fmw/oraInst.loc

OPatch version    : 13.9.2.0.0

OUI version       : 13.9.2.0.0

Log file location : /u01/app/oracle/product/12.2.1.2/fmw/cfgtoollogs/opatch/opatch2018-04-02_23-23-00PM_1.log

OPatch detects the Middleware Home as "/u01/app/oracle/product/12.2.1.2/fmw"
Verifying environment and performing prerequisite checks...

OPatch continues with these patches:   27311023

Do you want to proceed? [y|n]

y

User Responded with: Y

All checks passed.

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.

(Oracle Home = '/u01/app/oracle/product/12.2.1.2/fmw')

Is the local system ready for patching? [y|n]

y

User Responded with: Y

Backing up files...

Applying interim patch '27311023' to OH '/u01/app/oracle/product/12.2.1.2/fmw'

ApplySession: Optional component(s) [ oracle.bpm.processspaces, 12.2.1.3.0 ]  not present in the Oracle Home or a higher version is found.

Patching component oracle.integration.soainfra, 12.2.1.3.0...

Patch 27311023 successfully applied.

Log file location: /u01/app/oracle/product/12.2.1.2/fmw/cfgtoollogs/opatch/opatch2018-04-02_23-23-00PM_1.log

OPatch succeeded.

[oracle@soaapp 27311023]$

Agora vamos consultar novamente e ver se o patch foi realmente aplicado

oracle@soaapp 27311023]$ /u01/app/oracle/product/12.2.1.2/fmw/OPatch/opatch lsinventory

Oracle Interim Patch Installer version 13.9.2.0.0

Copyright (c) 2018, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/product/12.2.1.2/fmw

Central Inventory : /u01/app/oracle/oraInventory

   from           : /u01/app/oracle/product/12.2.1.2/fmw/oraInst.loc

OPatch version    : 13.9.2.0.0

OUI version       : 13.9.2.0.0

Log file location : /u01/app/oracle/product/12.2.1.2/fmw/cfgtoollogs/opatch/opatch2018-04-02_23-24-46PM_1.log


OPatch detects the Middleware Home as "/u01/app/oracle/product/12.2.1.2/fmw"



Lsinventory Output file location : /u01/app/oracle/product/12.2.1.2/fmw/cfgtoollogs/opatch/lsinv/lsinventory2018-04-02_23-24-46PM.txt



--------------------------------------------------------------------------------

Local Machine Information::

Hostname: soaapp.localdomain

ARU platform id: 226

ARU platform description:: Linux x86-64





Interim patches (5) :



Patch  27311023     : applied on Mon Apr 02 23:24:02 BRT 2018

Unique Patch ID:  22076499

Patch description:  "One-off"

   Created on 2 Apr 2018, 15:44:29 hrs PST8PDT

   Bugs fixed:

     27311023



Patch  26355633     : applied on Wed Mar 07 23:08:02 BRT 2018

Unique Patch ID:  21447583

Patch description:  "One-off"

   Created on 1 Aug 2017, 21:40:20 hrs UTC

   Bugs fixed:

     26355633



Patch  26287183     : applied on Wed Mar 07 23:07:47 BRT 2018

Unique Patch ID:  21447582

Patch description:  "One-off"

   Created on 1 Aug 2017, 21:41:27 hrs UTC

   Bugs fixed:

     26287183



Patch  26261906     : applied on Wed Mar 07 23:07:20 BRT 2018

Unique Patch ID:  21344506

Patch description:  "One-off"

   Created on 12 Jun 2017, 23:36:08 hrs UTC

   Bugs fixed:

     25559137, 25232931, 24811916



Patch  26051289     : applied on Wed Mar 07 23:07:10 BRT 2018

Unique Patch ID:  21455037

Patch description:  "One-off"

   Created on 31 Jul 2017, 22:11:57 hrs UTC

   Bugs fixed:

     26051289


--------------------------------------------------------------------------------

OPatch succeeded.

[oracle@soaapp 27311023]$

Por enquanto ficamos por aqui, Até Mais!

One comment

Leave a Reply

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *