Como aplicar um PSU no OEM 12.1.0.4

This post is also available in: English

Neste artigo, vou mostrar com atualizar o seu Oracle Enterprise Manager Cloud Control 12c Release 4 para o primeiro Patch Set Update (PSU).

Primeiramente, é necessário checar a versão atual do seu opatch. O Patch 19218456 requer um OPatch versão 11.1.0.11.0 (ou maior).

[oem@oraem12ctrj001 ~]$ opatch version
OPatch Version: 11.1.0.10.4

OPatch succeeded.
[oem@oraem12ctrj001 ~]$

Como no meu caso a versão é abaixo da necessária, eu precisei fazer o download da última em: https://updates.oracle.com/download/6880880.html

Escolha a release "Oracle 11.1.0.0.0" e, no meu caso, é um Linux x86-64. Faça o download e posicione a nova versão corretamente.

[oem@oraem12ctrj001 ~]$ opatch version
OPatch Version: 11.1.0.12.3

OPatch succeeded.
[oem@oraem12ctrj001 ~]$

Melhorou.

OBS: É recomendado a leitura do arquivo "readme.html" no diretório do patch antes de iniciar.

Em seguida, faça o download e unzip do patch 19218456 (o nome do arquivo é p19218456_121040_Generic.zip):

[oem@oraem12ctrj001 ~]$ unzip p19218456_121040_Generic.zip
Archive:  p19218456_121040_Generic.zip
   creating: 19218456/
   ...
[oem@oraem12ctrj001 ~]$

Entre na pasta do patch e verifique se tudo está ok:

[oem@oraem12ctrj001 ~]$ cd 19218456
[oem@oraem12ctrj001 19218456]$ opatchauto apply -analyze
OPatch Automation Tool
Copyright (c) 2014, Oracle Corporation.  All rights reserved.


OPatchauto version : 11.1.0.12.3
OUI version        : 11.1.0.12.0
Running from       : /u01/app/oem/em12cR4/Middleware/oms
Log file location  : /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatch/opatch2015-01-16_18-12-30PM_1.log

OPatchauto log file: /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatchauto/19218456/opatch_oms_2015-01-16_18-12-32PM_analyze.log

Please enter OMS weblogic admin server URL(t3s://oraem12ctrj001:7102):>
Please enter OMS weblogic admin server username:> weblogic
Please enter OMS weblogic admin server password:>


Configuration Validation: Success


Running apply prerequisite checks for sub-patch(es) "19218456" and Oracle Home "/u01/app/oem/em12cR4/Middleware/oms"...
Please monitor OPatch log file: /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatch/19218456_Jan_16_2015_18_12_30/ApplyPrereq2015-01-16_18-13-02PM_2.log
Sub-patch(es) "19218456" are successfully analyzed for Oracle Home "/u01/app/oem/em12cR4/Middleware/oms"


Complete Summary
================


All log file names referenced below can be accessed from the directory "/u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatch/2015-01-16_18-12-30PM_SystemPatch_19218456_1"

Prerequisites analysis summary:
-------------------------------

The following sub-patch(es) are applicable:

  Oracle Home Name   Sub-patches                                          Log file
  ----------------   -----------                                          --------
           oms12c2      19218456   19218456_ApplyPrereq2015-01-16_18-13-02PM_2.log



Log file location: /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatchauto/19218456/opatch_oms_2015-01-16_18-12-32PM_analyze.log

OPatchauto succeeded.
[oem@oraem12ctrj001 19218456]$

Ótimo, tudo está Ok.

Agora pare o oms e aplique o patch.

[oem@oraem12ctrj001 19218456]$ emctl stop oms
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation.  All rights reserved.
Stopping WebTier...
WebTier Successfully Stopped
Stopping Oracle Management Server...
Oracle Management Server Successfully Stopped
Oracle Management Server is Down
[oem@oraem12ctrj001 19218456]$

Aplicando..

[oem@oraem12ctrj001 19218456]$ opatchauto apply
OPatch Automation Tool
Copyright (c) 2014, Oracle Corporation.  All rights reserved.


OPatchauto version : 11.1.0.12.3
OUI version        : 11.1.0.12.0
Running from       : /u01/app/oem/em12cR4/Middleware/oms
Log file location  : /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatch/opatch2015-01-16_18-14-49PM_1.log

OPatchauto log file: /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatchauto/19218456/opatch_oms_2015-01-16_18-14-51PM_deploy.log

Please enter OMS weblogic admin server URL(t3s://oraem12ctrj001:7102):>
Please enter OMS weblogic admin server username:> weblogic
Please enter OMS weblogic admin server password:>


Configuration Validation: Success


Running apply prerequisite checks for sub-patch(es) "19218456" and Oracle Home "/u01/app/oem/em12cR4/Middleware/oms"...
Please monitor OPatch log file: /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatch/19218456_Jan_16_2015_18_14_49/ApplyPrereq2015-01-16_18-15-34PM_2.log
Sub-patch(es) "19218456" are successfully analyzed for Oracle Home "/u01/app/oem/em12cR4/Middleware/oms"

To continue, OPatchauto will do the following:
[Patch and deploy artifacts]   : Apply sub-patch(es) [ 19218456 ] to Oracle Home "/u01/app/oem/em12cR4/Middleware/oms";
                                 Apply RCU artifact with patch "/u01/app/oem/em12cR4/Middleware/oms/.patch_storage/19218456_Oct_14_2014_03_22_39/original_patch"


Do you want to proceed? [y|n]
y
User Responded with: Y

Applying sub-patch "19218456" to Oracle Home "/u01/app/oem/em12cR4/Middleware/oms"...
Please monitor OPatch log file: /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatch/19218456_Jan_16_2015_18_14_49/apply2015-01-16_18-15-57PM_4.log

Updating repository with RCU reference file "/u01/app/oem/em12cR4/Middleware/oms/.patch_storage/19218456_Oct_14_2014_03_22_39/original_patch"

Complete Summary
================


All log file names referenced below can be accessed from the directory "/u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatch/2015-01-16_18-14-49PM_SystemPatch_19218456_1"

Patching summary:
-----------------

Binaries of the following sub-patch(es) have been applied successfully:

  Oracle Home Name   Sub-patches                                    Log file
  ----------------   -----------                                    --------
           oms12c2      19218456   19218456_apply2015-01-16_18-15-57PM_4.log

Deployment summary:
-------------------

The following artifact(s) have been successfully deployed:

  Artifacts                                                  Log file
  ---------                                                  --------
        SQL   rcu_applypatch_original_patch_2015-01-16_18-17-19PM.log


Log file location: /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatchauto/19218456/opatch_oms_2015-01-16_18-14-51PM_deploy.log

OPatchauto succeeded.
[oem@oraem12ctrj001 19218456]$

Traga o oms de volta ao ar:

[oem@oraem12ctrj001 19218456]$ emctl start oms
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation.  All rights reserved.
Starting Oracle Management Server...
Starting WebTier...
WebTier Successfully Started
Oracle Management Server Successfully Started
Oracle Management Server is Up
[oem@oraem12ctrj001 19218456]$

Verifique se está no inventário:

[oem@oraem12ctrj001 ~]$ opatch lsinv
Oracle Interim Patch Installer version 11.1.0.12.3
Copyright (c) 2015, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oem/em12cR4/Middleware/oms
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oem/em12cR4/Middleware/oms/oraInst.loc
OPatch version    : 11.1.0.12.3
OUI version       : 11.1.0.12.0
Log file location : /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatch/opatch2015-01-16_19-00-57PM_1.log


OPatch detects the Middleware Home as "/u01/app/oem/em12cR4/Middleware"

Lsinventory Output file location : /u01/app/oem/em12cR4/Middleware/oms/cfgtoollogs/opatch/lsinv/lsinventory2015-01-16_19-00-57PM.txt

--------------------------------------------------------------------------------
Installed Top-level Products (1):

EM Platform (OMS)                                                    12.1.0.4.0
There are 1 products installed in this Oracle Home.


Interim patches (1) :

Patch  19218456     : applied on Fri Jan 16 18:17:04 BRST 2015
Unique Patch ID:  17982946
Patch description:  "ENTERPRISE MANAGER BASE PLATFORM - OMS 12.1.0.4.1 PSU (GENERIC)"
   Created on 14 Oct 2014, 03:22:39 hrs PST8PDT
   Bugs fixed:
     18599481, 17407918, 18932882, 18805935, 19258481, 19376082, 19323634
     18938561, 17812648, 18725891, 18945007, 18721562, 18359621, 18490432
     19218456, 18490468, 19137411, 17843191, 18710124, 18516298, 18490455
     18256983, 18999400, 19329809, 19300103, 18351725, 18521731, 18485889
     19458672, 18490444, 18446798, 18765545, 18389542, 18509136



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

OPatch succeeded.
[oem@oraem12ctrj001 ~]$

Ótimo. Agora você tem um ambiente corrigido de alguns bugs!

Gostou? Não deixe de comentar ou deixar um 👍!

Deixe um comentário

Seu e-mail não será publicado.