Redme Notes On Fine
Redme Notes On Fine
Redme Notes On Fine
2.For each Oracle RAC database home and the GI home that arebeing patched, run the
following commands as the home owner toextract the OPatch utility.
$ unzip <OPATCH-ZIP> -d <ORACLE_HOME>
$ <ORACLE_HOME>/OPatch/opatch version
If this command succeeds, it lists the Oracle components that areinstalled in the
home. Save the output so you have the statusprior to the patch apply.
To apply the patch, it must be accessible from all nodes in theOracle cluster.
Download the patch and unzip it to a sharedlocation, this is called the
<UNZIPPED_PATCH_LOCATION>.This directory must be empty and not be
/tmp.Additionally, the directory should have read permission for the ORA_INSTALL
group.
$ cd <UNZIPPED_PATCH_LOCATION>
The fastest and easiest way to determine whether you have one-offpatches in the
Oracle home that conflict with the patch, and toget the necessary conflict
resolution patches, is to use the Patch Recommendations and PatchPlans features on
the Patches &Updates tab in My Oracle Support. These features work inconjunction
with the My Oracle Support Configuration Manager.Recorded training sessions on
these features can be found inDocument 603505.1.
However, if you are not using My Oracle Support Patch Plans, theMy Oracle Support
Conflict Checker tool enables you to upload anOPatch inventory and check the
patches that you want to apply toyour environment for conflicts.
If no conflicts are found, you can download the patches. Ifconflicts are found, the
tool finds an existing resolution todownload. If no resolution is found, it will
automatically requesta resolution, which you can monitor in the Plansand Patch
Requests region of the Patches& Updates tab.
For more information, see Knowledge Document 1091294.1, How to usethe My Oracle
Support Conflict Checker Tool.
Or, manually determine whether any currently installed one-offpatches conflict with
the PSU patch as follows:
�The following commands check for conflicts in both the 12.1GI home and the 12.1 DB
homes.
�In case you are applying the patch, run this command:
Note:
1.7 DocumentationAccessibility
Oracle customers that have purchased support have access toelectronic support
through My Oracle Support. For information,visit
http://www.oracle.com/pls/topic/lookup?ctx=acc&id=infoor visit
http://www.oracle.com/pls/topic/lookup?ctx=acc&id=trsif you are hearing impaired.
This software and related documentation are provided under alicense agreement
containing restrictions on use and disclosureand are protected by intellectual
property laws. Except asexpressly permitted in your license agreement or allowed by
law,you may not use, copy, reproduce, translate, broadcast, modify,license,
transmit, distribute, exhibit, perform, publish, ordisplay any part, in any form,
or by any means. Reverseengineering, disassembly, or decompilation of this
software,unless required by law for interoperability, is prohibited.
Oracle and Java are registered trademarks of Oracle and/or itsaffiliates. Other
names may be trademarks of their respectiveowners.
Intel and Intel Xeon are trademarks or registered trademarks ofIntel Corporation.
All SPARC trademarks are used under license andare trademarks or registered
trademarks of SPARC International,Inc. AMD, Opteron, the AMD logo, and the AMD
Opteron logo aretrademarks or registered trademarks of Advanced Micro Devices.UNIX
is a registered trademark of The Open Group.
This software or hardware and documentation may provide access toor information
about content, products, and services from thirdparties. Oracle Corporation and its
affiliates are not responsiblefor and expressly disclaim all warranties of any kind
with respectto third-party content, products, and services unless otherwiseset
forth in an applicable agreement between you and Oracle.Oracle Corporation and its
affiliates will not be responsible forany loss, costs, or damages incurred due to
your access to or useof third-party content, products, or services, except as set
forthin an applicable agreement between you and Oracle.
Skip Headers
Oracle� Database
From CPUJan2016 onwards, the 5th digit of the version number willbe changed to
reflect the release date in the format YYMMDD. SeeMy Oracle Support Document
2061926.1 for more information.
The GI System patch includes updates for both the Clusterwarehome and Database home
that can be applied in a rolling fashion.
This patch is Data Guard Standby First Installable - See InstallingDatabase PSU in
Standby-First Mode for more information.
This patch can be applied using Oracle Enterprise Manager (OEM)Cloud Control 12c.
OEM supportspatching a single cluster by using a Patch Plan based work flowand
multiple clusters by using fleet maintenance (introduced inOEM Cloud Control 12c
Release 4). ThePatch Plan method supports In-place and Out of Place patching.Fleet
maintenance employs Out of Place patching. (Out of placepatching enables lower
downtime compared to In-place.) Fleetmaintenance supports creating patched homes
locally on a cluster,or provisioning a gold image of the patched homes. See Oracle
Enterprise ManagerLifecycle Management Administrator's Guide for moreinformation
about both methodologies and additional OEMcapabilities.
This document is accurate at the time of release. For any changesand additional
information regarding GI PSU 12.1.0.2.180417,see these related documents that are
available at My OracleSupport (http://support.oracle.com/):
�PatchInformation
�KnownIssues
�References
�DocumentationAccessibility
1.1 PatchInformation
GI System patches are cumulative and include the Database PSUcontent and associated
CPU program security content.
Table1-1 lists the various configurations and the applicable GISystem Patch that
should be used to patch that configuration.
Configuration
GIVersion
DatabaseVersions
GISystem Patch
OPatchCommand(1)
Comments
12.1.0.2
12.1.0.2
GI System Patch
opatchauto
12.1.0.2
GI System Patch
opatchauto
For Database home with version other than 12.1.0.2,apply the appropriate Database
PSU for that version. Forexample, apply 11.1.0.7.x PSU to Database
version11.1.0.7.0.
12.1.0.2
GI System Patch
opatchauto
For Database home, apply the appropriate Database PSUfor that version. For example,
apply 11.1.0.7.x PSU toDatabase version 11.1.0.7.0.
12.1.0.2
12.1.0.2
GI System Patch
opatchauto
NA
12.1.0.2
Database PSU
opatch apply
None
NA
12.1.0.2
Database PSU
opatch apply
None
Table1-2 lists the various patches by patch number gettinginstalled as part of this
GI PSU patch.
Table 1-2 Patch Numbers Getting Installedas Part of this GI PSU Patch
PatchNumber
Description
ApplicableHomes
27547329
27762277
26983807
Footnote 2
ACFS and DBWLM these subpatches are not applicable to the HP-UXItanium and Linux on
IBM System z platforms.
�PatchInstallation Prerequisites
�opatchautofor GI
�PatchInstallation
�PatchPost-Installation Instructions
�PatchDeinstallation
�PatchPost-Deinstallation Instructions
�OPatchUtility Information
You must use the OPatch utility version 12.2.0.1.12or later to apply this patch.
The 12.2.0.1.5 release of OPatch isused for all releases 12.1.0.x and later. The
OPatch utility priorto 12.2.0.1.5 will prompt for your OCM (Oracle
ConfigurationManager) response file when it is run. You should enter a completepath
of OCM response file if you already have created this in yourenvironment. The OCM
response file is required for versions ofOPatch earlier than 12.2.0.1.5 and not
needed for later versions.Oracle recommends that you use the latest released OPatch
versionfor 12.1 releases, which is available for download from My OracleSupport
patch 6880880 by selecting ARU link for the12.1.0.1.0 release. When using OPatch
12.2.0.1.5 or later, thefollowing Opatch Option -ocmrf <ocmresponse file> does not
need to be provided.
It is recommended that you download the Opatch utility and thepatch in a shared
location to be able to access them from any nodein the cluster for the patch
application on each node.
When patching the GI Home, a shared location on ACFS only needsto be unmounted on
the node where the GI Home is being patched.
The new opatch utility should be updated in all the Oracle RACdatabase homes and
the GI home that are being patched.
�In case you are rolling back the patch, run this command:
#GRID_HOME/OPatch/opatchauto rollback <UNZIPPED_PATCH_LOCATION>/27967747 -analyze
Note that Oracle proactively provides PSU one-off patches forcommon conflicts.
See My Oracle Support Document 1061295.1 Patch SetUpdates - One-off Patch Conflict
Resolution to determine,for each conflicting patch, whether a conflict resolution
patch isalready available, and if you need to request a new conflictresolution
patch or if the conflict may be ignored.
1.2.3 opatchautofor GI
The Opatch utility has automated the patch application for theOracle Grid
Infrastructure (GI) home and the Oracle RAC databasehomes. It operates by querying
existing configurations andautomating the steps required for patching each Oracle
RACdatabase home of same version and the GI home.
The utility must be executed by an operating system (OS) userwith root privileges,
and it must beexecuted on each node in the cluster if the GI home or Oracle
RACdatabase home is in non-shared storage. The utility should not berun in parallel
on the cluster nodes.
Depending on command line options specified, one invocation ofopatchauto can patch
the GI home, Oracle RAC database homes, orboth GI and Oracle RAC database homes of
the same Oracle releaseversion as the patch. You can also roll back the patch with
thesame selectivity.
Add the directory containing the opatchauto to the $PATHenvironment variable. For
example:
# export PATH=$PATH:<GI_HOME>/OPatch
To patch the GI home and all Oracle RAC database homes of thesame version:
# opatchauto apply <UNZIPPED_PATCH_LOCATION>/27967747
To roll back the patch from the GI home and each Oracle RACdatabase home:
# opatchauto rollback <UNZIPPED_PATCH_LOCATION>/27967747
To roll back the patch from the Oracle RAC database home:
# opatchauto rollback <UNZIPPED_PATCH_LOCATION>/27967747 -oh
<oracle_home1_path>,<oracle_home2_path>
1.2.4 PatchInstallation
The patch instructions will differ based on the configuration ofthe Grid
infrastructure and the Oracle RAC database homes.Patching instructions for Oracle
RAC Database Homes and GItogether are listed below.
�Case1: GI Home and the Database Homes That Are Not Shared andACFS File System Is
Not Configured
� Case2: GI Home is Not Shared, Database Home Is Shared, ACFS MayBe Used
�GI Home is not shared, the Database Home is not shared, ACFSmay be used.
Case 1: GI Home and the Database Homes ThatAre Not Shared and ACFS File System Is
Not Configured
Case 2: GI Home is Not Shared, Database HomeIs Shared, ACFS May Be Used
Patching instructions:
1.From the Oracle database home, make sure to stop the OracleRAC databases running
on all nodes. Asthe database home owner execute:
$ <ORACLE_HOME>/bin/srvctl stop database .d <db-unique-name>
2.On the 1st node, unmount the ACFS file systems. See MyOracle Support Document
1494652.1 for unmounting ACFS filesystems.
3.On the 1st node, apply the patch to the GI Home using the opatchauto command.
Asroot user, execute the following command:
# <GI_HOME>/OPatch/opatchauto apply <UNZIPPED_PATCH_LOCATION>/27967747 -oh
<GI_HOME>
4.If the message, "A system reboot is recommended beforeusing ACFS" is shown, then
a reboot must be issued beforecontinuing. Failure to do so will result in running
with anunpatched ACFS\ADVM\OKS driver.
5.On the 1st node, remount ACFS file systems. See My OracleSupport Document
1494652.1 for mounting ACFS filesystems.
6.On the 1st node, apply the patch to the Database home usingthe opatchauto
command. Sincethe Database home is shared, this operation will patch theDatabase
home across the cluster. Note that a USM only patchcannot be applied to a database
home. Asroot user, execute the following command:
# <GI_HOME>/OPatch/opatchauto apply <UNZIPPED_PATCH_LOCATION>/27967747 -oh
<ORACLE_HOME>
7.On the 1st node only, restart the Oracle instance, whichyou have previously
stopped in Step 1. As the database home owner execute:
$ <ORACLE_HOME>/bin/srvctl start instance .d <db-unique-name> -n <nodename>
8.On the 2nd (next) node, unmount the ACFS file systems. SeeMy Oracle Support
Document 1494652.1 for unmounting ACFS filesystems.
9.On the 2nd node, apply the patch to GI Home using the opatchauto command. Asroot
user, execute the following command:
# <GI_HOME>/OPatch/opatchauto apply <UNZIPPED_PATCH_LOCATION>/27967747 -oh
<GI_HOME>
10.If the message, "A system reboot is recommended beforeusing ACFS" is shown, then
a reboot must be issued beforecontinuing. Failure to do so will result in running
with anunpatched ACFS\ADVM\OKS driver.
11.On the 2nd node, running the opatchautocommand in Step 9will restart the stack.
12.On the 2nd node, remount ACFS file systems. See My OracleSupport Document
1494652.1 for mounting ACFS filesystems.
13.On the 2nd node only, restart the Oracle instance, whichyou have previously
stopped in Step 1. As the database home owner execute:
$ <ORACLE_HOME>/bin/srvctl start instance .d <db-unique-name> -n <nodename>
14.Repeat Steps 8through 13for all remaining nodes of the cluster.
For Data Guard Standby-First patching, see My Oracle SupportDocument 1265700.1. For
Standby-First patching forOracle Database PSU 12.1 and higher, the following points
need tobe considered:
1.The Database PSU must be applied to the Data Guard standbyusing Opatch.
2.Datapatch must not be invoked on the Data Guard standbyenvironment to apply post
patch SQL actions for the DatabasePSU. If datapatch is run on a standby, it will
error whiletrying to call the SYS.DBMS_QOPATCHinterface. For more details about
this error, see My OracleSupport Document 1599479.1.
3.Datapatch must be invoked on the primary database after allthe databases, that is
primary and Data Guard, are patched andpatch deployment of the Database PSU is
complete for thesetup.
Note:
The step "Loading Modified SQL Files into the Database" hasbeen removed from this
section as the execution of opatchautoautomatically performs the load of the
modified SQL files intothe Database.
2.This patch now includes the OJVM Mitigation patch(Patch:19721304). If an OJVM PSU
is installed or planned to beinstalled, no further actions are necessary.
Otherwise, theworkaround of using the OJVM Mitigation patch can beactivated. As
SYSDBA do thefollowing from the admindirectory:
SQL > @dbmsjdev.sql
SQL > exec dbms_java_dev.disable
3.The MD5 hash is no longer considered sufficiently secure, see MD5 HashIs No
Longer Considered Sufficiently Secure.
1.2.6.1 ApplyingConflict Resolution Patches
The MD5 hash is no longer considered sufficiently secure, see MyOracle Support
Document 2194116.1 for more information.
1.2.7 PatchDeinstallation
Datapatch is run to complete the post-deinstall SQL deploymentfor the PSU. For
further details about Datapatch, including KnownIssues and workarounds to common
problems, see: Database12c Post Patch SQL Automation (Doc ID 1585822.1).
The patch rollback instructions will differ based on theconfiguration of the Grid
infrastructure and the Oracle RACdatabase homes. Roll Back instructions for Oracle
RAC DatabaseHomes and GI are listed below.
�Case1: GI Home and Database Homes That Are Not Shared and ACFSFile System Is Not
Configured.
�Case2: GI Home Is Not Shared, Database Home Is Shared and ACFSMay Be Used.
�GI Home is not shared, the Database Home is not shared, ACFSmay be used.
�Rolling back the patch from a software only GI Homeinstallation or before the GI
Home is configured.
Roll Back the Oracle RAC Database Homes and GITogether
Case 1: GI Home and Database Homes That AreNot Shared and ACFS File System Is Not
Configured.
If the message, "A system reboot is recommended before usingACFS" is shown, then a
reboot must be issued before continuing.Failure to do so will result in running
with an unpatchedACFS\ADVM\OKS driver.
Case 2: GI Home Is Not Shared, Database HomeIs Shared and ACFS May Be Used.
1.From the Oracle database home, make sure to stop the OracleRAC databases running
on all nodes. Asthe database home owner execute:
$ <ORACLE_HOME>/bin/srvctl stop database .d <db-unique-name>
2.On the 1st node, unmount the ACFS file systems. See MyOracle Support Document
1494652.1 for unmounting ACFS filesystems.
3.On the 1st node, roll back the patch from the GI Home usingthe opatchauto
command. As root user, execute the following command:
# <GI_HOME>/OPatch/opatchauto rollback <UNZIPPED_PATCH_LOCATION>/27967747 -oh
<GI_HOME>
4.If the message, "A system reboot is recommended beforeusing ACFS" is shown, then
a reboot must be issued beforecontinuing. Failure to do so will result in running
with anunpatched ACFS\ADVM\OKS driver.
5.On the 1st node, remount ACFS file systems. See My OracleSupport Document
1494652.1 for mounting ACFS filesystems.
6.On the 1st node, roll back the patch to the Database homeusing the opatchauto
command.This operation will rollback the patch to the Database homeacross the
cluster given that it is a shared ACFS home. Notethat a USM only patch cannot be
applied to a Database home. As root user, execute the followingcommand:
# <GI_HOME>/OPatch/opatchauto rollback <UNZIPPED_PATCH_LOCATION>/27967747
7.On the 1st node only, restart the Oracle instance, whichyou have previously
stopped in Step 1. As the database home owner execute:
$ <ORACLE_HOME>/bin/srvctl start instance .d <db-unique-name> -n <nodename>
8.On the 2nd (next) node, unmount the ACFS file systems. SeeMy Oracle Support
Document 1494652.1 for unmounting ACFS filesystems.
9.On the 2nd node, roll back the patch to GI Home using the opatchauto command.
Asroot user, execute the following command:
# <GI_HOME>/OPatch/opatchauto rollback <UNZIPPED_PATCH_LOCATION>/27967747
10.If the message, "A system reboot is recommended beforeusing ACFS" is shown, then
a reboot must be issued beforecontinuing. Failure to do so will result in running
with anunpatched ACFS\ADVM\OKS driver.
11.On the 2nd node, running the opatchautocommand in Step 9will restart the stack.
12.On the 2nd node, remount ACFS file systems. See My OracleSupport Document
1494652.1 for mounting ACFS filesystems.
13.On the 2nd node only, restart the Oracle instance, whichyou have previously
stopped in Step 1. As the database home owner execute:
$ <ORACLE_HOME>/bin/srvctl start instance .d <db-unique-name> -n <nodename>
where database SIDis the database SID, CDBname is the name of the
multitenantcontainer database, and timestampis of the form YYYYMMMDD_HH_MM_SS.
1.3 KnownIssues
For issues documented after the release of this PSU, see MyOracle Support Document
1227443.1 Oracle Grid Infrastructure Patch Set Update 12.1.0.2.180717 Known Issues.
Issue1
Running datapatch may cause the following error: CATCONINITFAILED, when applying a
patch in a multi-databaseenvironment.
Symptom:
Datapatch may fail with the following error:
/scratch/racusr/app/racusr/product/12.1.0/dbhome_1/OPatch/datapatch'
SQL Patching tool version 12.2.0.0.0 on Thu Sep 11 11:34:22 2014
Copyright (c) 2014, Oracle. All rights reserved.
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)
catcon: ALL catcon-related output will be written to
/tmp/sqlpatch_catcon__catcon_22173.lst
catcon: See /tmp/sqlpatch_catcon_*.log files for output generated by scripts
catcon: See /tmp/sqlpatch_catcon__*.lst files for spool files, if any
start_processes: failed to open STDOUT (1)
See My Oracle Support Document 1609718.1 for information on how toresolve this
error.
Cause:
Workaround:
Workaround or Fix: It is notsupported to modify this file during patching since the
usercan modify this file with their own settings and patching isnot expected to
override them. Oracle supplies defaults duringinstall and upgrade.
Issue3
Rapid Home Provisioning (RHP) images import may fail.
Symptom: RHP Import image failed inSolaris for 11204 and 11203 version
Symptom: While doing rollback ofpatch, rollback failed with the following errors:
CRS-5013: Agent "ORAROOTAGENT" failed to start process
"/u01/app/12.1.0/grid_1/bin/osdbagrp" for action "start": details at
"(:CLSN00008:)"
in "/u01/app/oracle/diag/crs/node1/crs/trace/crsd_orarootagent_root.trc"
CRS-2680: Clean of 'ora.ASMU03.ASMU03.advm' on 'node1' failed
CRS-2799: Failed to shut down resource 'ora.ASMU03.ASMU03.advm' on 'node1'
CRS-2794: Shutdown of Cluster Ready Services-managed resources on 'node1' has
failed
CRS-2675: Stop of 'ora.crsd' on 'node1' failed
CRS-2799: Failed to shut down resource 'ora.crsd' on 'node1'
CRS-2795: Shutdown of Oracle High Availability Services-managed resources on
'node1' has failed
crspatch_<node>_<time>.log shows
Fix: See My Oracle Support Document 2193412.1 12.1 GI:Multiple Java Core Files
Generated Under 11.2 DB Homesysman/emd.
Issue8
Problem: While running Datapatch,an error from SYS.DBMS_QOPATCH isreported with the
following message:
.input source is empty", .Error occurred in XML processing"
4.Rerun Datapatch.
Issue9
Problem: An ORA-04068error may appear in the Database alert log file when
datapatchis run.
Workaround: This issue occursbecause opatchauto invokes the datapatch -prereq phase
beforeperforming the binary patching, and thus the fixes for theseissues are not
present. As long as the final invocation ofdatapatch, which actually performs the
patching is successful,errors that occurred during the datapatch-prereq phase or on
prior nodes can be ignored.
1.4 References
See My Oracle Support Document 1591616.1 Section 5 for cases where opatchautocannot
be used.
1.7 DocumentationAccessibility
Oracle customers that have purchased support have access toelectronic support
through My Oracle Support. For information,visit
http://www.oracle.com/pls/topic/lookup?ctx=acc&id=infoor visit
http://www.oracle.com/pls/topic/lookup?ctx=acc&id=trsif you are hearing impaired.
This software and related documentation are provided under alicense agreement
containing restrictions on use and disclosureand are protected by intellectual
property laws. Except asexpressly permitted in your license agreement or allowed by
law,you may not use, copy, reproduce, translate, broadcast, modify,license,
transmit, distribute, exhibit, perform, publish, ordisplay any part, in any form,
or by any means. Reverseengineering, disassembly, or decompilation of this
software,unless required by law for interoperability, is prohibited.
Oracle and Java are registered trademarks of Oracle and/or itsaffiliates. Other
names may be trademarks of their respectiveowners.
Intel and Intel Xeon are trademarks or registered trademarks ofIntel Corporation.
All SPARC trademarks are used under license andare trademarks or registered
trademarks of SPARC International,Inc. AMD, Opteron, the AMD logo, and the AMD
Opteron logo aretrademarks or registered trademarks of Advanced Micro Devices.UNIX
is a registered trademark of The Open Group.
This software or hardware and documentation may provide access toor information
about content, products, and services from thirdparties. Oracle Corporation and its
affiliates are not responsiblefor and expressly disclaim all warranties of any kind
with respectto third-party content, products, and services unless otherwiseset
forth in an applicable agreement between you and Oracle.Oracle Corporation and its
affiliates will not be responsible forany loss, costs, or damages incurred due to
your access to or useof third-party content, products, or services, except as set
forthin an applicable agreement between you and Oracle.
Copyright � 2018, Oracle and/or itsaffiliates. All rights reserved.
Skip Headers
Oracle� Database
From CPUJan2016 onwards, the 5th digit of the version number willbe changed to
reflect the release date in the format YYMMDD. SeeMy Oracle Support Document
2061926.1 for more information.
The GI System patch includes updates for both the Clusterwarehome and Database home
that can be applied in a rolling fashion.
This patch is Data Guard Standby First Installable - See InstallingDatabase PSU in
Standby-First Mode for more information.
This patch can be applied using Oracle Enterprise Manager (OEM)Cloud Control 12c.
OEM supportspatching a single cluster by using a Patch Plan based work flowand
multiple clusters by using fleet maintenance (introduced inOEM Cloud Control 12c
Release 4). ThePatch Plan method supports In-place and Out of Place patching.Fleet
maintenance employs Out of Place patching. (Out of placepatching enables lower
downtime compared to In-place.) Fleetmaintenance supports creating patched homes
locally on a cluster,or provisioning a gold image of the patched homes. See Oracle
Enterprise ManagerLifecycle Management Administrator's Guide for moreinformation
about both methodologies and additional OEMcapabilities.
This document is accurate at the time of release. For any changesand additional
information regarding GI PSU 12.1.0.2.180417,see these related documents that are
available at My OracleSupport (http://support.oracle.com/):
�PatchInformation
�KnownIssues
�References
�DocumentationAccessibility
1.1 PatchInformation
GI System patches are cumulative and include the Database PSUcontent and associated
CPU program security content.
Table1-1 lists the various configurations and the applicable GISystem Patch that
should be used to patch that configuration.
Configuration
GIVersion
DatabaseVersions
GISystem Patch
OPatchCommand(1)
Comments
12.1.0.2
12.1.0.2
GI System Patch
opatchauto
12.1.0.2
GI System Patch
opatchauto
For Database home with version other than 12.1.0.2,apply the appropriate Database
PSU for that version. Forexample, apply 11.1.0.7.x PSU to Database
version11.1.0.7.0.
12.1.0.2
GI System Patch
opatchauto
For Database home, apply the appropriate Database PSUfor that version. For example,
apply 11.1.0.7.x PSU toDatabase version 11.1.0.7.0.
12.1.0.2
12.1.0.2
GI System Patch
opatchauto
NA
12.1.0.2
Database PSU
opatch apply
None
NA
12.1.0.2
Database PSU
opatch apply
None
Table1-2 lists the various patches by patch number gettinginstalled as part of this
GI PSU patch.
Table 1-2 Patch Numbers Getting Installedas Part of this GI PSU Patch
PatchNumber
Description
ApplicableHomes
27547329
27762253
OCW Patch Set Update 12.1.0.2.180717
27762277
26983807
Footnote 2
ACFS and DBWLM these subpatches are not applicable to the HP-UXItanium and Linux on
IBM System z platforms.
�PatchInstallation Prerequisites
�opatchautofor GI
�PatchInstallation
�PatchPost-Installation Instructions
�PatchDeinstallation
�PatchPost-Deinstallation Instructions
�OPatchUtility Information
You must use the OPatch utility version 12.2.0.1.12or later to apply this patch.
The 12.2.0.1.5 release of OPatch isused for all releases 12.1.0.x and later. The
OPatch utility priorto 12.2.0.1.5 will prompt for your OCM (Oracle
ConfigurationManager) response file when it is run. You should enter a completepath
of OCM response file if you already have created this in yourenvironment. The OCM
response file is required for versions ofOPatch earlier than 12.2.0.1.5 and not
needed for later versions.Oracle recommends that you use the latest released OPatch
versionfor 12.1 releases, which is available for download from My OracleSupport
patch 6880880 by selecting ARU link for the12.1.0.1.0 release. When using OPatch
12.2.0.1.5 or later, thefollowing Opatch Option -ocmrf <ocmresponse file> does not
need to be provided.
It is recommended that you download the Opatch utility and thepatch in a shared
location to be able to access them from any nodein the cluster for the patch
application on each node.
When patching the GI Home, a shared location on ACFS only needsto be unmounted on
the node where the GI Home is being patched.
The new opatch utility should be updated in all the Oracle RACdatabase homes and
the GI home that are being patched.
2.For each Oracle RAC database home and the GI home that arebeing patched, run the
following commands as the home owner toextract the OPatch utility.
$ unzip <OPATCH-ZIP> -d <ORACLE_HOME>
$ <ORACLE_HOME>/OPatch/opatch version
If this command succeeds, it lists the Oracle components that areinstalled in the
home. Save the output so you have the statusprior to the patch apply.
To apply the patch, it must be accessible from all nodes in theOracle cluster.
Download the patch and unzip it to a sharedlocation, this is called the
<UNZIPPED_PATCH_LOCATION>.This directory must be empty and not be
/tmp.Additionally, the directory should have read permission for the ORA_INSTALL
group.
$ cd <UNZIPPED_PATCH_LOCATION>
The fastest and easiest way to determine whether you have one-offpatches in the
Oracle home that conflict with the patch, and toget the necessary conflict
resolution patches, is to use the Patch Recommendations and PatchPlans features on
the Patches &Updates tab in My Oracle Support. These features work inconjunction
with the My Oracle Support Configuration Manager.Recorded training sessions on
these features can be found inDocument 603505.1.
However, if you are not using My Oracle Support Patch Plans, theMy Oracle Support
Conflict Checker tool enables you to upload anOPatch inventory and check the
patches that you want to apply toyour environment for conflicts.
If no conflicts are found, you can download the patches. Ifconflicts are found, the
tool finds an existing resolution todownload. If no resolution is found, it will
automatically requesta resolution, which you can monitor in the Plansand Patch
Requests region of the Patches& Updates tab.
For more information, see Knowledge Document 1091294.1, How to usethe My Oracle
Support Conflict Checker Tool.
Or, manually determine whether any currently installed one-offpatches conflict with
the PSU patch as follows:
�In case you are applying the patch, run this command:
Note:
�In case you are rolling back the patch, run this command:
#GRID_HOME/OPatch/opatchauto rollback <UNZIPPED_PATCH_LOCATION>/27967747 -analyze
Note that Oracle proactively provides PSU one-off patches forcommon conflicts.
See My Oracle Support Document 1061295.1 Patch SetUpdates - One-off Patch Conflict
Resolution to determine,for each conflicting patch, whether a conflict resolution
patch isalready available, and if you need to request a new conflictresolution
patch or if the conflict may be ignored.
1.2.3 opatchautofor GI
The Opatch utility has automated the patch application for theOracle Grid
Infrastructure (GI) home and the Oracle RAC databasehomes. It operates by querying
existing configurations andautomating the steps required for patching each Oracle
RACdatabase home of same version and the GI home.
The utility must be executed by an operating system (OS) userwith root privileges,
and it must beexecuted on each node in the cluster if the GI home or Oracle
RACdatabase home is in non-shared storage. The utility should not berun in parallel
on the cluster nodes.
Depending on command line options specified, one invocation ofopatchauto can patch
the GI home, Oracle RAC database homes, orboth GI and Oracle RAC database homes of
the same Oracle releaseversion as the patch. You can also roll back the patch with
thesame selectivity.
Add the directory containing the opatchauto to the $PATHenvironment variable. For
example:
# export PATH=$PATH:<GI_HOME>/OPatch
To patch the GI home and all Oracle RAC database homes of thesame version:
# opatchauto apply <UNZIPPED_PATCH_LOCATION>/27967747
To roll back the patch from the GI home and each Oracle RACdatabase home:
# opatchauto rollback <UNZIPPED_PATCH_LOCATION>/27967747
To roll back the patch from the Oracle RAC database home:
# opatchauto rollback <UNZIPPED_PATCH_LOCATION>/27967747 -oh
<oracle_home1_path>,<oracle_home2_path>
1.2.4 PatchInstallation
The patch instructions will differ based on the configuration ofthe Grid
infrastructure and the Oracle RAC database homes.Patching instructions for Oracle
RAC Database Homes and GItogether are listed below.
�Case1: GI Home and the Database Homes That Are Not Shared andACFS File System Is
Not Configured
� Case2: GI Home is Not Shared, Database Home Is Shared, ACFS MayBe Used
�GI Home is not shared, the Database Home is not shared, ACFSmay be used.
Case 2: GI Home is Not Shared, Database HomeIs Shared, ACFS May Be Used
Patching instructions:
1.From the Oracle database home, make sure to stop the OracleRAC databases running
on all nodes. Asthe database home owner execute:
$ <ORACLE_HOME>/bin/srvctl stop database .d <db-unique-name>
2.On the 1st node, unmount the ACFS file systems. See MyOracle Support Document
1494652.1 for unmounting ACFS filesystems.
3.On the 1st node, apply the patch to the GI Home using the opatchauto command.
Asroot user, execute the following command:
# <GI_HOME>/OPatch/opatchauto apply <UNZIPPED_PATCH_LOCATION>/27967747 -oh
<GI_HOME>
4.If the message, "A system reboot is recommended beforeusing ACFS" is shown, then
a reboot must be issued beforecontinuing. Failure to do so will result in running
with anunpatched ACFS\ADVM\OKS driver.
5.On the 1st node, remount ACFS file systems. See My OracleSupport Document
1494652.1 for mounting ACFS filesystems.
6.On the 1st node, apply the patch to the Database home usingthe opatchauto
command. Sincethe Database home is shared, this operation will patch theDatabase
home across the cluster. Note that a USM only patchcannot be applied to a database
home. Asroot user, execute the following command:
# <GI_HOME>/OPatch/opatchauto apply <UNZIPPED_PATCH_LOCATION>/27967747 -oh
<ORACLE_HOME>
7.On the 1st node only, restart the Oracle instance, whichyou have previously
stopped in Step 1. As the database home owner execute:
$ <ORACLE_HOME>/bin/srvctl start instance .d <db-unique-name> -n <nodename>
8.On the 2nd (next) node, unmount the ACFS file systems. SeeMy Oracle Support
Document 1494652.1 for unmounting ACFS filesystems.
9.On the 2nd node, apply the patch to GI Home using the opatchauto command. Asroot
user, execute the following command:
# <GI_HOME>/OPatch/opatchauto apply <UNZIPPED_PATCH_LOCATION>/27967747 -oh
<GI_HOME>
10.If the message, "A system reboot is recommended beforeusing ACFS" is shown, then
a reboot must be issued beforecontinuing. Failure to do so will result in running
with anunpatched ACFS\ADVM\OKS driver.
11.On the 2nd node, running the opatchautocommand in Step 9will restart the stack.
12.On the 2nd node, remount ACFS file systems. See My OracleSupport Document
1494652.1 for mounting ACFS filesystems.
13.On the 2nd node only, restart the Oracle instance, whichyou have previously
stopped in Step 1. As the database home owner execute:
$ <ORACLE_HOME>/bin/srvctl start instance .d <db-unique-name> -n <nodename>
For Data Guard Standby-First patching, see My Oracle SupportDocument 1265700.1. For
Standby-First patching forOracle Database PSU 12.1 and higher, the following points
need tobe considered:
1.The Database PSU must be applied to the Data Guard standbyusing Opatch.
2.Datapatch must not be invoked on the Data Guard standbyenvironment to apply post
patch SQL actions for the DatabasePSU. If datapatch is run on a standby, it will
error whiletrying to call the SYS.DBMS_QOPATCHinterface. For more details about
this error, see My OracleSupport Document 1599479.1.
3.Datapatch must be invoked on the primary database after allthe databases, that is
primary and Data Guard, are patched andpatch deployment of the Database PSU is
complete for thesetup.
Note:
The step "Loading Modified SQL Files into the Database" hasbeen removed from this
section as the execution of opatchautoautomatically performs the load of the
modified SQL files intothe Database.
2.This patch now includes the OJVM Mitigation patch(Patch:19721304). If an OJVM PSU
is installed or planned to beinstalled, no further actions are necessary.
Otherwise, theworkaround of using the OJVM Mitigation patch can beactivated. As
SYSDBA do thefollowing from the admindirectory:
SQL > @dbmsjdev.sql
SQL > exec dbms_java_dev.disable
3.The MD5 hash is no longer considered sufficiently secure, see MD5 HashIs No
Longer Considered Sufficiently Secure.
The MD5 hash is no longer considered sufficiently secure, see MyOracle Support
Document 2194116.1 for more information.
1.2.7 PatchDeinstallation
Datapatch is run to complete the post-deinstall SQL deploymentfor the PSU. For
further details about Datapatch, including KnownIssues and workarounds to common
problems, see: Database12c Post Patch SQL Automation (Doc ID 1585822.1).
The patch rollback instructions will differ based on theconfiguration of the Grid
infrastructure and the Oracle RACdatabase homes. Roll Back instructions for Oracle
RAC DatabaseHomes and GI are listed below.
�Case2: GI Home Is Not Shared, Database Home Is Shared and ACFSMay Be Used.
�GI Home is not shared, the Database Home is not shared, ACFSmay be used.
�Rolling back the patch from a software only GI Homeinstallation or before the GI
Home is configured.
Case 1: GI Home and Database Homes That AreNot Shared and ACFS File System Is Not
Configured.
If the message, "A system reboot is recommended before usingACFS" is shown, then a
reboot must be issued before continuing.Failure to do so will result in running
with an unpatchedACFS\ADVM\OKS driver.
Case 2: GI Home Is Not Shared, Database HomeIs Shared and ACFS May Be Used.
1.From the Oracle database home, make sure to stop the OracleRAC databases running
on all nodes. Asthe database home owner execute:
$ <ORACLE_HOME>/bin/srvctl stop database .d <db-unique-name>
2.On the 1st node, unmount the ACFS file systems. See MyOracle Support Document
1494652.1 for unmounting ACFS filesystems.
3.On the 1st node, roll back the patch from the GI Home usingthe opatchauto
command. As root user, execute the following command:
# <GI_HOME>/OPatch/opatchauto rollback <UNZIPPED_PATCH_LOCATION>/27967747 -oh
<GI_HOME>
4.If the message, "A system reboot is recommended beforeusing ACFS" is shown, then
a reboot must be issued beforecontinuing. Failure to do so will result in running
with anunpatched ACFS\ADVM\OKS driver.
5.On the 1st node, remount ACFS file systems. See My OracleSupport Document
1494652.1 for mounting ACFS filesystems.
6.On the 1st node, roll back the patch to the Database homeusing the opatchauto
command.This operation will rollback the patch to the Database homeacross the
cluster given that it is a shared ACFS home. Notethat a USM only patch cannot be
applied to a Database home. As root user, execute the followingcommand:
# <GI_HOME>/OPatch/opatchauto rollback <UNZIPPED_PATCH_LOCATION>/27967747
7.On the 1st node only, restart the Oracle instance, whichyou have previously
stopped in Step 1. As the database home owner execute:
$ <ORACLE_HOME>/bin/srvctl start instance .d <db-unique-name> -n <nodename>
8.On the 2nd (next) node, unmount the ACFS file systems. SeeMy Oracle Support
Document 1494652.1 for unmounting ACFS filesystems.
9.On the 2nd node, roll back the patch to GI Home using the opatchauto command.
Asroot user, execute the following command:
# <GI_HOME>/OPatch/opatchauto rollback <UNZIPPED_PATCH_LOCATION>/27967747
10.If the message, "A system reboot is recommended beforeusing ACFS" is shown, then
a reboot must be issued beforecontinuing. Failure to do so will result in running
with anunpatched ACFS\ADVM\OKS driver.
11.On the 2nd node, running the opatchautocommand in Step 9will restart the stack.
12.On the 2nd node, remount ACFS file systems. See My OracleSupport Document
1494652.1 for mounting ACFS filesystems.
13.On the 2nd node only, restart the Oracle instance, whichyou have previously
stopped in Step 1. As the database home owner execute:
$ <ORACLE_HOME>/bin/srvctl start instance .d <db-unique-name> -n <nodename>
where database SIDis the database SID, CDBname is the name of the
multitenantcontainer database, and timestampis of the form YYYYMMMDD_HH_MM_SS.
1.3 KnownIssues
For issues documented after the release of this PSU, see MyOracle Support Document
1227443.1 Oracle Grid Infrastructure Patch Set Update 12.1.0.2.180717 Known Issues.
Issue1
Running datapatch may cause the following error: CATCONINITFAILED, when applying a
patch in a multi-databaseenvironment.
Symptom:
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)
catcon: ALL catcon-related output will be written to
/tmp/sqlpatch_catcon__catcon_22173.lst
catcon: See /tmp/sqlpatch_catcon_*.log files for output generated by scripts
catcon: See /tmp/sqlpatch_catcon__*.lst files for spool files, if any
start_processes: failed to open STDOUT (1)
See My Oracle Support Document 1609718.1 for information on how toresolve this
error.
Cause:
Workaround:
Workaround or Fix: It is notsupported to modify this file during patching since the
usercan modify this file with their own settings and patching isnot expected to
override them. Oracle supplies defaults duringinstall and upgrade.
Issue3
Rapid Home Provisioning (RHP) images import may fail.
Symptom: RHP Import image failed inSolaris for 11204 and 11203 version
Symptom: While doing rollback ofpatch, rollback failed with the following errors:
CRS-5013: Agent "ORAROOTAGENT" failed to start process
"/u01/app/12.1.0/grid_1/bin/osdbagrp" for action "start": details at
"(:CLSN00008:)"
in "/u01/app/oracle/diag/crs/node1/crs/trace/crsd_orarootagent_root.trc"
CRS-2680: Clean of 'ora.ASMU03.ASMU03.advm' on 'node1' failed
CRS-2799: Failed to shut down resource 'ora.ASMU03.ASMU03.advm' on 'node1'
CRS-2794: Shutdown of Cluster Ready Services-managed resources on 'node1' has
failed
CRS-2675: Stop of 'ora.crsd' on 'node1' failed
CRS-2799: Failed to shut down resource 'ora.crsd' on 'node1'
CRS-2795: Shutdown of Oracle High Availability Services-managed resources on
'node1' has failed
crspatch_<node>_<time>.log shows
Fix: See My Oracle Support Document 2193412.1 12.1 GI:Multiple Java Core Files
Generated Under 11.2 DB Homesysman/emd.
Issue8
Problem: While running Datapatch,an error from SYS.DBMS_QOPATCH isreported with the
following message:
.input source is empty", .Error occurred in XML processing"
4.Rerun Datapatch.
Issue9
Problem: An ORA-04068error may appear in the Database alert log file when
datapatchis run.
Workaround: This issue occursbecause opatchauto invokes the datapatch -prereq phase
beforeperforming the binary patching, and thus the fixes for theseissues are not
present. As long as the final invocation ofdatapatch, which actually performs the
patching is successful,errors that occurred during the datapatch-prereq phase or on
prior nodes can be ignored.
1.4 References
See My Oracle Support Document 1591616.1 Section 5 for cases where opatchautocannot
be used.