Passo a passo para aplicar o Release Update – sem Single Instance, sem GI

Como sempre, baixe o último OPatch (que é o arquivo, e tudo o que utiliza o ORACLE_HOME (instâncias e listeners) precisa estar parado.

[oracle@nerv11 ~]$ unzip -q
[oracle@nerv11 ~]$ mv $ORACLE_HOME/OPatch $ORACLE_HOME/OPatch.BACKUP
[oracle@nerv11 ~]$ rm -rf $ORACLE_HOME/OPatch
[oracle@nerv11 ~]$ mv OPatch/ $ORACLE_HOME/
[oracle@nerv11 ~]$ unzip -q
[oracle@nerv11 ~]$ cd 27674384/
[oracle@nerv11 27674384]$ $ORACLE_HOME/OPatch/opatch apply
Oracle Interim Patch Installer version
Copyright (c) 2018, Oracle Corporation.  All rights reserved.

Oracle Home       : /u01/app/oracle/product/
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/
OPatch version    :
OUI version       :
Log file location : /u01/app/oracle/product/

Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   27674384

Do you want to proceed? [y|n]
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/')

Is the local system ready for patching? [y|n]
User Responded with: Y
Backing up files...
Applying interim patch '27674384' to OH '/u01/app/oracle/product/'
ApplySession: Optional component(s) [, ] , [ oracle.oid.client, ] , [ oracle.ons.daemon, ] , [, ]  not present in the Oracle Home or a higher version is found.

Patching component,

Patching component oracle.rdbms.deconfig,

Patching component oracle.tfa,

Patching component oracle.rdbms.dbscripts,

Patching component oracle.assistants.server,

Patching component oracle.has.deconfig,

Patching component oracle.ctx.rsf,

Patching component oracle.rdbms.dv,

Patching component oracle.rdbms.oci,

Patching component oracle.ldap.rsf,

Patching component oracle.precomp.common,

Patching component,

Patching component oracle.ctx,

Patching component oracle.xdk,

Patching component oracle.nlsrtl.rsf,

Patching component oracle.rdbms.rsf,

Patching component oracle.precomp.lang,

Patching component oracle.ldap.client,

Patching component oracle.rdbms.util,

Patching component oracle.rdbms,

Patching component,

Patching component oracle.xdk.rsf,

Patching component oracle.rdbms.rman,

Patching component oracle.oracore.rsf,

Patching component oracle.ldap.rsf.ic,

Patching component oracle.ons,

Patching component oracle.rdbms.lbac,

Patching component oracle.rdbms.rsf.ic,

Patching component oracle.sdo,
Patch 27674384 successfully applied.
Log file location: /u01/app/oracle/product/

OPatch succeeded.
[oracle@nerv11 27674384]$ lsnrctl start

LSNRCTL for Linux: Version - Production on 28-MAY-2018 11:06:02

Copyright (c) 1991, 2016, Oracle.  All rights reserved.

Starting /u01/app/oracle/product/ please wait...

TNSLSNR for Linux: Version - Production
System parameter file is /u01/app/oracle/product/
Log messages written to /u01/app/oracle/diag/tnslsnr/nerv11/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=nerv11)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=nerv11.localdomain)(PORT=1521)))
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version - Production
Start Date                28-MAY-2018 11:06:05
Uptime                    0 days 0 hr. 1 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/
Listener Log File         /u01/app/oracle/diag/tnslsnr/nerv11/listener/alert/log.xml
Listening Endpoints Summary...
The listener supports no services
The command completed successfully
[oracle@nerv11 27674384]$ sqlplus / AS SYSDBA

SQL*Plus: Release Production on Mon May 28 11:12:11 2018

Copyright (c) 1982, 2016, Oracle.  All rights reserved.

Connected to an idle instance.

ORACLE instance started.

Total System Global Area 4294967296 bytes
Fixed Size                  8801008 bytes
Variable Size            1174406416 bytes
Database Buffers         3103784960 bytes
Redo Buffers                7974912 bytes
Database mounted.
Database opened.

Pluggable database altered.


Pluggable database altered.

Disconnected from Oracle Database 12c Enterprise Edition Release - 64bit Production
[oracle@nerv11 27674384]$ cd $ORACLE_HOME/OPatch
[oracle@nerv11 OPatch]$ ./datapatch -verbose
SQL Patching tool version Production on Mon May 28 11:13:58 2018
Copyright (c) 2012, 2018, Oracle.  All rights reserved.

Log file for this invocation: /u01/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_9748_2018_05_28_11_13_58/sqlpatch_invocation.log

Connecting to database...OK
Note:  Datapatch will only apply or rollback SQL fixes for PDBs
       that are in an open state, no patches will be applied to closed PDBs.
       Please refer to Note: Datapatch: Database 12c Post Patch SQL Automation
       (Doc ID 1585822.1)
Bootstrapping registry and package to current versions...done
Determining current state...done

Current state of SQL patches:
Bundle series DBRU:
  ID 180417 in the binary registry and not installed in any PDB

Adding patches to installation queue and performing prereq checks...
Installation queue:
  For the following PDBs: CDB$ROOT PDB$SEED CATALOGO
    Nothing to roll back
    The following patches will be applied:
      27674384 (DATABASE APR 2018 RELEASE UPDATE

Installing patches...
Patch installation complete.  Total patches installed: 3

Validating logfiles...
Patch 27674384 apply (pdb CDB$ROOT): SUCCESS
  logfile: /u01/app/oracle/cfgtoollogs/sqlpatch/27674384/22098633/27674384_apply_ORCL_CDBROOT_2018May28_11_15_50.log (no errors)
Patch 27674384 apply (pdb PDB$SEED): SUCCESS
  logfile: /u01/app/oracle/cfgtoollogs/sqlpatch/27674384/22098633/27674384_apply_ORCL_PDBSEED_2018May28_11_21_27.log (no errors)
Patch 27674384 apply (pdb CATALOGO): SUCCESS
  logfile: /u01/app/oracle/cfgtoollogs/sqlpatch/27674384/22098633/27674384_apply_ORCL_CATALOGO_2018May28_11_21_27.log (no errors)
SQL Patching tool complete on Mon May 28 11:31:43 2018
[oracle@nerv11 OPatch]$

Leave a Reply

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

Esse site utiliza o Akismet para reduzir spam. Aprenda como seus dados de comentários são processados.