Quantcast
Channel: Oracle
Viewing all articles
Browse latest Browse all 1814

Wiki Page: Patching all together EM 12c components

$
0
0
Written By Nassyam Basha Introduction This article explains how to perform patching all the complete products where the EM 12c is running, the components are Database, OMS and the Agent. This article explains you based on the example of the recent Patch Jan2016. Plan The plan is the key role when there are multiple homes involved, so you have to designate which home you are going to patch first and what is later based on the dependencies and calculations. In many cases customers can consider only patching database and may not EM components. But this article explains how to patch ORACLE_HOME (DB), OMS_HOME and the AGENT_HOME. Before starting with the patching procedure and steps lets understand what the current environment with the versions we have is. The new EM 12.1.0.15 installed on ORA-CC, the existing components are 1) RDBMS Home – 12.1.0.2 2) OMS – 12.1.0.5 3) Agent – 12.1.0.5 The patching process we will divide into above three parts. Initially we will apply patch on RDBMS home and later OMS and Agent will be taken care. As you are aware we can find the latest patches for all the components here http://www.oracle.com/technetwork/topics/security/cpujan2016-2367955.html Patching ORACLE_HOME(DB) 1) RDBMS Home information. Oracle Home - 12.1.0.2.0 2) Patches to apply Patch 22191659 - Combo of OJVM Component 12.1.0.2.160119 DB PSU + DB PSU 12.1.0.2.160119 (Jan2016) This zipped file consists of two sub directories. [oracle@ORA-CC 22191659]$ pwd /home/oracle/nassyam/STAGING/OJVM_DBSPU/22191659 [oracle@ORA-CC 22191659]$ ls -ltr total 32 drwxr-xr-x 7 oracle dba 4096 Jan 19 17:11 21948354 -rw-r--r-- 1 oracle dba 25 Jan 19 17:11 README.txt drwxr-xr-x 5 oracle dba 4096 Jan 19 17:11 22139226 -rw-r--r-- 1 oracle dba 18812 Jan 19 17:28 README.html [oracle@ORA-CC 22191659]$ Patch 21948354 - Database Patch Set Update 12.1.0.2.160119 (Jan2016) --> RAC-Rolling Installable · Patch 22139226 - Oracle JavaVM Component 12.1.0.2.160119 Database PSU (JAN2016) --> Non RAC-Rolling Installable Prerequisites – Opatch version should meet the requirement as per the read me file, if the opatch version is not relevant then we have to download the patch from [oracle@ORA-CC 22191659]$ opatch version OPatch Version: 12.1.0.1.7 OPatch succeeded. Check conflict the patch against OH [oracle@ORA-CC 22191659]$ echo $ORACLE_HOME /u01/app/oracle/product/12.1.0.2/db_1 [oracle@ORA-CC 22191659]$ [oracle@ORA-CC 21948354]$ pwd /home/oracle/nassyam/STAGING/OJVM_DBSPU/22191659/21948354 [oracle@ORA-CC 21948354]$ opatch prereq CheckConflictAgainstOHWithDetail -ph ./ Oracle Interim Patch Installer version 12.1.0.1.7 Copyright (c) 2016, Oracle Corporation. All rights reserved. PREREQ session Oracle Home : /u01/app/oracle/product/12.1.0.2/db_1 Central Inventory : /u01/app/oraInventory from : /u01/app/oracle/product/12.1.0.2/db_1/oraInst.loc OPatch version : 12.1.0.1.7 OUI version : 12.1.0.2.0 Log file location : /u01/app/oracle/product/12.1.0.2/db_1/cfgtoollogs/opatch/opatch2016-01-23_17-35-44PM_1.log Invoking prereq "checkconflictagainstohwithdetail" Prereq "checkConflictAgainstOHWithDetail" passed. OPatch succeeded. [oracle@ORA-CC 21948354]$ Environment Checks - Success [oracle@ORA-CC 21948354]$ echo $PATH /u01/app/oracle/product/12.1.0.2/db_1/OPatch:/u01/app/Middleware/oms/OPatch:/u01/app/oracle/product/12.1.0.2/db_1/OPatch:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin:/u01/app/oracle/product/12.1.0.2/db_1/bin:/home/oracle/bin:/usr/local/oracle:.::: [oracle@ORA-CC 21948354]$ which make /usr/bin/make [oracle@ORA-CC 21948354]$ which ar /usr/bin/ar [oracle@ORA-CC 21948354]$ which id /usr/bin/id [oracle@ORA-CC 21948354]$ which nm /usr/bin/nm [oracle@ORA-CC 21948354]$ Shutdown Oracle Services - Perform clean shutdown of the oracle services dependent on the RDBMS Home. Export the ORACLE_SID as below and then perform shutdown. [oracle@ORA-CC 21948354]$ . oraenv ORACLE_SID = [CCREP] ? CCREP The Oracle base for ORACLE_HOME=/u01/app/oracle/product/12.1.0.2/db_1 is /u01/app/oracle [oracle@ORA-CC 21948354]$ sqlplus / as sysdba SQL*Plus: Release 12.1.0.2.0 Production on Sun Jan 24 10:50:16 2016 Copyright (c) 1982, 2014, Oracle. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options SQL> show parameter db_name NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ db_name string CCREP SQL> shutdown immediate; Listener : Stop the Listener from the RDBMS Home [oracle@ORA-CC 21948354]$ ps -ef|grep tns root 39 2 0 2015 ? 00:00:00 [netns] oracle 7156 1 0 2015 ? 00:15:24 /u01/app/oracle/product/12.1.0.2/db_1/bin/tnslsnr LISTENER -inherit oracle 21009 27837 0 10:52 pts/1 00:00:00 grep tns [oracle@ORA-CC 21948354]$ lsnrctl stop LISTENER Apply patch [oracle@ORA-CC 22191659]$ ls -ltr total 32 drwxr-xr-x 7 oracle dba 4096 Jan 19 17:11 21948354 -rw-r--r-- 1 oracle dba 25 Jan 19 17:11 README.txt drwxr-xr-x 5 oracle dba 4096 Jan 19 17:11 22139226 -rw-r--r-- 1 oracle dba 18812 Jan 19 17:28 README.html [oracle@ORA-CC 22191659]$ pwd /home/oracle/nassyam/STAGING/OJVM_DBSPU/22191659 [oracle@ORA-CC 22191659]$ cd 21948354 [oracle@ORA-CC 21948354]$ pwd /home/oracle/nassyam/STAGING/OJVM_DBSPU/22191659/21948354 [oracle@ORA-CC 21948354]$ opatch apply Oracle Interim Patch Installer version 12.1.0.1.7 Copyright (c) 2016, Oracle Corporation. All rights reserved. Oracle Home : /u01/app/oracle/product/12.1.0.2/db_1 Central Inventory : /u01/app/oraInventory from : /u01/app/oracle/product/12.1.0.2/db_1/oraInst.loc OPatch version : 12.1.0.1.7 OUI version : 12.1.0.2.0 Log file location : /u01/app/oracle/product/12.1.0.2/db_1/cfgtoollogs/opatch/opatch2016-01-26_05-25-13AM_1.log Verifying environment and performing prerequisite checks... OPatch continues with these patches: 19769480 20299023 20831110 21359755 21948354 Do you want to proceed? [y|n] y User Responded with: Y All checks passed. Provide your email address to be informed of security issues, install and initiate Oracle Configuration Manager. Easier for you if you use your My Oracle Support Email address/User Name. Visit http://www.oracle.com/support/policies.html for details. Email address/User Name: You have not provided an email address for notification of security issues. Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: Y Please shutdown Oracle instances running out of this ORACLE_HOME on the local system. (Oracle Home = '/u01/app/oracle/product/12.1.0.2/db_1') Is the local system ready for patching? [y|n] y User Responded with: Y Backing up files... Applying sub-patch '19769480' to OH '/u01/app/oracle/product/12.1.0.2/db_1' Patching component oracle.rdbms.deconfig, 12.1.0.2.0... Patching component oracle.xdk, 12.1.0.2.0... Patching component oracle.tfa, 12.1.0.2.0... Patching component oracle.rdbms.util, 12.1.0.2.0... …………….. Verifying the update... Applying sub-patch '21948354' to OH '/u01/app/oracle/product/12.1.0.2/db_1' Patching component oracle.rdbms.deconfig, 12.1.0.2.0... Patching component oracle.xdk, 12.1.0.2.0... Patching component oracle.tfa, 12.1.0.2.0... Patching component oracle.rdbms, 12.1.0.2.0... Patching component oracle.rdbms.dbscripts, 12.1.0.2.0... Patching component oracle.xdk.parser.java, 12.1.0.2.0... Patching component oracle.rdbms.rsf, 12.1.0.2.0... Patching component oracle.xdk.rsf, 12.1.0.2.0... Verifying the update... Composite patch 21948354 successfully applied. Log file location: /u01/app/oracle/product/12.1.0.2/db_1/cfgtoollogs/opatch/opatch2016-01-26_05-25-13AM_1.log OPatch succeeded. [oracle@ORA-CC 21948354]$ Check Conflict - Again perform conflict resolution one-off patches [oracle@ORA-CC 22191659]$ echo $ORACLE_HOME /u01/app/oracle/product/12.1.0.2/db_1 [oracle@ORA-CC 22191659]$ [oracle@ORA-CC 21948354]$ pwd /home/oracle/nassyam/STAGING/OJVM_DBSPU/22191659/21948354 [oracle@ORA-CC 21948354]$ opatch prereq CheckConflictAgainstOHWithDetail -ph ./ Oracle Interim Patch Installer version 12.1.0.1.7 Copyright (c) 2016, Oracle Corporation. All rights reserved. PREREQ session Oracle Home : /u01/app/oracle/product/12.1.0.2/db_1 Central Inventory : /u01/app/oraInventory from : /u01/app/oracle/product/12.1.0.2/db_1/oraInst.loc OPatch version : 12.1.0.1.7 OUI version : 12.1.0.2.0 Log file location : /u01/app/oracle/product/12.1.0.2/db_1/cfgtoollogs/opatch/opatch2016-01-26_05-30-47AM_1.log Invoking prereq "checkconflictagainstohwithdetail" Prereq "checkConflictAgainstOHWithDetail" passed. OPatch succeeded. [oracle@ORA-CC 21948354]$ Loading SQL [oracle@ORA-CC 21948354]$ sqlplus / as sysdba SQL*Plus: Release 12.1.0.2.0 Production on Tue Jan 26 05:43:55 2016 Copyright (c) 1982, 2014, Oracle. All rights reserved. Connected to an idle instance. SQL> startup upgrade ORACLE instance started. Total System Global Area 4294967296 bytes Fixed Size 3719064 bytes Variable Size 3238002792 bytes Database Buffers 1040187392 bytes Redo Buffers 13058048 bytes Database mounted. Database opened. SQL> exit Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options SQL> show pdbs SQL> show parameter db_name NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ db_name string CCREP SQL> show pdbs SQL> quit [oracle@ORA-CC ~]$ pwd /home/oracle [oracle@ORA-CC ~]$ cd $ORACLE_HOME/OPatch [oracle@ORA-CC OPatch]$ pwd /u01/app/oracle/product/12.1.0.2/db_1/OPatch [oracle@ORA-CC OPatch]$ ./datapatch –verbose [oracle@ORA-CC OPatch]$ ./datapatch -verbose SQL Patching tool version 12.1.0.2.0 on Tue Jan 26 05:45:50 2016 Copyright (c) 2015, Oracle. All rights reserved. Log file for this invocation: /u01/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_15162_2016_01_26_05_45_50/sqlpatch_invocation.log Connecting to database...OK Bootstrapping registry and package to current versions...done Determining current state...done Current state of SQL patches: Patch 20415564 (Database PSU 12.1.0.2.3, Oracle JavaVM Component (Apr2015)): Installed in the binary registry only Bundle series PSU: ID 160119 in the binary registry and not installed in the SQL registry …… Check Installed Patches After the successful installation verify the opatch output [oracle@ORA-CC OPatch]$ opatch lsinventory Oracle Interim Patch Installer version 12.1.0.1.7 Copyright (c) 2016, Oracle Corporation. All rights reserved. Oracle Home : /u01/app/oracle/product/12.1.0.2/db_1 Central Inventory : /u01/app/oraInventory from : /u01/app/oracle/product/12.1.0.2/db_1/oraInst.loc OPatch version : 12.1.0.1.7 OUI version : 12.1.0.2.0 Log file location : /u01/app/oracle/product/12.1.0.2/db_1/cfgtoollogs/opatch/opatch2016-01-26_05-55-26AM_1.log Lsinventory Output file location : /u01/app/oracle/product/12.1.0.2/db_1/cfgtoollogs/opatch/lsinv/lsinventory2016-01-26_05-55-26AM.txt -------------------------------------------------------------------------------- Local Machine Information:: Hostname: ORA-CC.localdomain ARU platform id: 226 ARU platform description:: Linux x86-64 Installed Top-level Products (1): Oracle Database 12c 12.1.0.2.0 There are 1 products installed in this Oracle Home. Interim patches (2) : Patch 21948354 : applied on Tue Jan 26 05:29:06 GMT 2016 Unique Patch ID: 19553095 Patch description: "Database Patch Set Update : 12.1.0.2.160119 (21948354)" Created on 20 Dec 2015, 23:39:33 hrs PST8PDT Sub-patch 21359755; "Database Patch Set Update : 12.1.0.2.5 (21359755)" Sub-patch 20831110; "Database Patch Set Update : 12.1.0.2.4 (20831110)" Sub-patch 20299023; "Database Patch Set Update : 12.1.0.2.3 (20299023)" Sub-patch 19769480; "Database Patch Set Update : 12.1.0.2.2 (19769480)" Bugs fixed: 19189525, 19075256, 19141838, 19865345, 19791273, 19280225, 18845653 20951038, 19243521, 19248799, 21756699, 18988834, 19238590, 21281532 20245930, 18921743, 18799063, 19134173, 19571367, 20476175, 20925795 19018206, 20509482, 20387265, 20588502, 19149990, 18849537, 18886413 17551063, 19183343, 19703301, 19001390, 18202441, 19189317, 19644859 19358317, 19390567, 19279273, 19706965, 19068970, 19619732, 20348653 18607546, 18940497, 19670108, 19649152, 18948177, 19315691, 19676905 18964978, 19035573, 20165574, 19176326, 20413820, 20558005, 19176223 19532017, 20134339, 19074147, 18411216, 20361671, 20425790, 18966843 20294666, 19307662, 19371175, 19195895, 19154375, 19468991, 19174521 19520602, 19382851, 21875360, 19326908, 19658708, 20093776, 20618595 21787056, 17835294, 19791377, 19068610, 20048359, 20746251, 19143550 19185876, 19627012, 20281121, 19577410, 22092979, 19001359, 19518079 18610915, 19490948, 18674024, 18306996, 19309466, 19081128, 19915271 20122715, 21188532, 20284155, 18791688, 20890311, 21442094, 18973548 19303936, 19597439, 20235511, 18964939, 19430401, 19044962, 19409212 19879746, 20657441, 19684504, 19024808, 18799993, 20877664, 19028800 19065556, 19723336, 19077215, 19604659, 21421886, 19524384, 19048007 18288842, 19689979, 20446883, 18952989, 16870214, 19928926, 21526048 19180770, 19197175, 19902195, 20318889, 19730508, 19012119, 19067244 20074391, 19512341, 19841800, 14643995, 20331945, 19587324, 19547370 19065677, 19637186, 21225209, 20397490, 18967382, 19174430, 18674047 19054077, 19536415, 19708632, 19289642, 20869721, 19335438, 17365043 18856999, 19869255, 20471920, 19468347, 21620471, 16359751, 18990693 17890099, 19439759, 19769480, 19272708, 19978542, 20101006, 21300341 20402832, 19329654, 19873610, 21668627, 21517440, 19304354, 19052488 20794034, 19291380, 18681056, 19896336, 19076343, 19561643, 18618122 20440930, 18456643, 19699191, 18909599, 19487147, 18250893, 19016730 18743542, 20347562, 16619249, 18354830, 19687159, 19174942, 20424899 19989009, 20688221, 20441797, 19157754, 19032777, 19058490, 19399918 18885870, 19434529, 19018447, 18417036, 20919320, 19022470, 19284031 20474192, 20173897, 22062026, 19385656, 19501299, 17274537, 20899461 19440586, 16887946, 19606174, 18436647, 17655240, 19023822, 19178851 19124589, 19805359, 19597583, 19155797, 19393542, 19050649 Patch 20415564 : applied on Wed Jun 17 06:37:02 GMT 2015 Unique Patch ID: 18617752 Patch description: "Database PSU 12.1.0.2.3, Oracle JavaVM Component (Apr2015)" Created on 31 Mar 2015, 05:37:43 hrs PST8PDT Bugs fixed: 19699946, 19909862, 19223010, 19877336, 19895326, 20408829, 19153980 20415564, 19855285, 19895362, 19231857, 19245191, 20408866 Start all the Oracle RDBMS services SQL> shut immediate; Database closed. Database dismounted. ORACLE instance shut down. SQL> startup ORACLE instance started. Total System Global Area 4294967296 bytes Fixed Size 3719064 bytes Variable Size 3238002792 bytes Database Buffers 1040187392 bytes Redo Buffers 13058048 bytes Database mounted. Database opened. SQL> exit Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options Start the Listener [oracle@ORA-CC OPatch]$ lsnrctl start listener LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 26-JAN-2016 05:57:35 Copyright (c) 1991, 2014, Oracle. All rights reserved. Starting /u01/app/oracle/product/12.1.0.2/db_1/bin/tnslsnr: please wait... TNSLSNR for Linux: Version 12.1.0.2.0 - Production Log messages written to /u01/app/oracle/diag/tnslsnr/ORA-CC/listener/alert/log.xml Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ORA-CC.localdomain)(PORT=1521))) Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521)) STATUS of the LISTENER ------------------------ Alias listener Version TNSLSNR for Linux: Version 12.1.0.2.0 - Production Start Date 26-JAN-2016 05:57:35 Uptime 0 days 0 hr. 0 min. 0 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Log File /u01/app/oracle/diag/tnslsnr/ORA-CC/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ORA-CC.localdomain)(PORT=1521))) The listener supports no services The command completed successfully [oracle@ORA-CC OPatch]$ lsnrctl status listener LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 26-JAN-2016 05:57:40 Copyright (c) 1991, 2014, Oracle. All rights reserved. Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521)) STATUS of the LISTENER ------------------------ Alias listener Version TNSLSNR for Linux: Version 12.1.0.2.0 - Production Start Date 26-JAN-2016 05:57:35 Uptime 0 days 0 hr. 0 min. 4 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Log File /u01/app/oracle/diag/tnslsnr/ORA-CC/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ORA-CC.localdomain)(PORT=1521))) The listener supports no services The command completed successfully [oracle@ORA-CC OPatch]$ sqlplus / as sysdba SQL*Plus: Release 12.1.0.2.0 Production on Tue Jan 26 05:57:50 2016 Copyright (c) 1982, 2014, Oracle. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options SQL> alter system register; System altered. SQL> exit Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options [oracle@ORA-CC OPatch]$ lsnrctl status LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 26-JAN-2016 05:57:56 Copyright (c) 1991, 2014, Oracle. All rights reserved. Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521)) STATUS of the LISTENER ------------------------ Alias listener Version TNSLSNR for Linux: Version 12.1.0.2.0 - Production Start Date 26-JAN-2016 05:57:35 Uptime 0 days 0 hr. 0 min. 21 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Log File /u01/app/oracle/diag/tnslsnr/ORA-CC/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ORA-CC.localdomain)(PORT=1521))) Services Summary... Service "CCREP" has 1 instance(s). Instance "CCREP", status READY, has 1 handler(s) for this service... The command completed successfully [oracle@ORA-CC OPatch]$ Patching OMS Home Prerequisites 1) Weblogic administration that hosts OMS should be running. [oracle@ORA-CC OPatch]$ . oraenv ORACLE_SID = [CCREP] ? OMS The Oracle base for ORACLE_HOME=/u01/app/Middleware/oms is /u01/app/oracle [oracle@ORA-CC OPatch]$ emctl status oms -details Oracle Enterprise Manager Cloud Control 12c Release 5 Copyright (c) 1996, 2015 Oracle Corporation. All rights reserved. Enter Enterprise Manager Root (SYSMAN) Password : Console Server Host : ORA-CC.localdomain HTTP Console Port : 7788 HTTPS Console Port : 7802 HTTP Upload Port : 4889 HTTPS Upload Port : 4903 EM Instance Home : /u01/app/gc_inst/em/EMGC_OMS1 OMS Log Directory Location : /u01/app/gc_inst/em/EMGC_OMS1/sysman/log OMS is not configured with SLB or virtual hostname Agent Upload is locked. OMS Console is locked. Active CA ID: 1 Console URL: https://ORA-CC.localdomain:7802/em Upload URL: https://ORA-CC.localdomain:4903/empbs/upload WLS Domain Information Domain Name : GCDomain Admin Server Host : ORA-CC.localdomain Admin Server HTTPS Port: 7102 Admin Server is RUNNING Oracle Management Server Information Managed Server Instance Name: EMGC_OMS1 Oracle Management Server Instance Host: ORA-CC.localdomain WebTier is Up Oracle Management Server is Up BI Publisher is not configured to run on this host. [oracle@ORA-CC OPatch]$ 2) OMR (database) and listener both are running. [oracle@ORA-CC OPatch]$ . oraenv ORACLE_SID = [OMS] ? CCREP The Oracle base for ORACLE_HOME=/u01/app/oracle/product/12.1.0.2/db_1 is /u01/app/oracle [oracle@ORA-CC OPatch]$ sqlplus / as sysdba SQL*Plus: Release 12.1.0.2.0 Production on Sun Jan 24 15:41:23 2016 Copyright (c) 1982, 2014, Oracle. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options SQL> select name,open_mode from v$database; NAME OPEN_MODE --------- -------------------- CCREP READ WRITE SQL> exit Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options [oracle@ORA-CC OPatch]$ lsnrctl status listener LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 24-JAN-2016 15:41:46 Copyright (c) 1991, 2014, Oracle. All rights reserved. Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521)) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 12.1.0.2.0 - Production Start Date 06-AUG-2015 20:31:54 Uptime 170 days 19 hr. 9 min. 52 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Log File /u01/app/oracle/diag/tnslsnr/ORA-CC/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ORA-CC.localdomain)(PORT=1521))) Services Summary... Service "CCREP" has 1 instance(s). Instance "CCREP", status READY, has 1 handler(s) for this service... The command completed successfully [oracle@ORA-CC OPatch]$ 3) Opatch version should be 11.1 - Downloaded the latest OCT2015 Opatch from URL [oracle@ORA-CC ~]$ . oraenv ORACLE_SID = [OMS] ? OMS The Oracle base for ORACLE_HOME=/u01/app/Middleware/oms is /u01/app/oracle [oracle@ORA-CC ~]$ export PATH=$ORACLE_HOME/OPatch:$PATH:. [oracle@ORA-CC ~]$ which opatch /u01/app/Middleware/oms/OPatch/opatch [oracle@ORA-CC CR1026371]$ opatch version OPatch Version: 11.1.0.12.9 OPatch succeeded. 4) Export OMS ORACLE_HOME, PATH and Opatch. Export the ORACLE_HOME has the $MIDDLEWARE/oms ,opatch is accessible and binaries of OMS are accessible as well. [oracle@ORA-CC ~]$ . oraenv ORACLE_SID = [OMS] ? OMS The Oracle base for ORACLE_HOME=/u01/app/Middleware/oms is /u01/app/oracle [oracle@ORA-CC ~]$ export PATH=$ORACLE_HOME/OPatch:$PATH:. [oracle@ORA-CC ~]$ echo $PATH /u01/app/Middleware/oms/OPatch:/u01/app/Middleware/oms/OPatch:/u01/app/oracle/product/12.1.0.2/db_1/OPatch:/u01/app/Middleware/oms/OPatch:/u01/app/oracle/product/12.1.0.2/db_1/OPatch:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/oracle/bin:/u01/app/Middleware/oms/bin:/home/oracle/bin:/usr/local/oracle:.::::.:. [oracle@ORA-CC ~]$ 5) Creating Property file – This useful to avoid to supply weblogic password frequently during patching.(opatchauto). This has to be configured, after the confirmation from customer https://www.toadworld.com/platforms/oracle/w/wiki/11095.how-to-apply-oem-12c4-psu2-for-oms#prerequisites - I have whitened blog in above link for the same in the past. https://updates.oracle.com/Orion/Services/download?type=readme&aru=19611375#BABHDDAH 6) Absolute path of the OMS patch. PATCH_TOP_DIR = /home/oracle/nassyam/STAGING/OMS_JAN2016 OMS system Patch = /home/oracle/nassyam/STAGING/OMS_JAN2016/22115901 7) Binary Prerequisite Check Go to the patch location and then execute the command to analyze the patch for any conflicts. Information to provide: - Weblogic admin URL: (Press Enter) - Weblogic admin Username: weblogic - Weblogic admin password: same as sysman from Secret Server. [oracle@ORA-CC 22115901]$ pwd /home/oracle/nassyam/STAGING/OMS_JAN2016/22115901 [oracle@ORA-CC 22115901]$ opatchauto apply -analyze OPatch Automation Tool Copyright (c) 2014, Oracle Corporation. All rights reserved. OPatchauto version : 11.1.0.12.9 OUI version : 11.1.0.13.0 Running from : /u01/app/Middleware/oms Log file location : /u01/app/Middleware/oms/cfgtoollogs/opatch/opatch2016-01-24_16-24-58PM_1.log OPatchauto log file: /u01/app/Middleware/oms/cfgtoollogs/opatchauto/22115901/opatch_oms_2016-01-24_16-25-00PM_analyze.log Please enter OMS weblogic admin server URL(t3s://ORA-CC.localdomain: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) "22115901" and Oracle Home "/u01/app/Middleware/oms"... Please monitor OPatch log file: /u01/app/Middleware/oms/cfgtoollogs/opatch/22115901_Jan_24_2016_16_24_58/ApplyPrereq2016-01-24_16-26-11PM_2.log Sub-patch(es) "22115901" are successfully analyzed for Oracle Home "/u01/app/Middleware/oms" Complete Summary ================ All log file names referenced below can be accessed from the directory "/u01/app/Middleware/oms/cfgtoollogs/opatch/2016-01-24_16-24-58PM_SystemPatch_22115901_1" Prerequisites analysis summary: ------------------------------- The following sub-patch(es) are applicable: Oracle Home Name Sub-patches Log file ---------------- ----------- -------- oms12c1 22115901 22115901_ApplyPrereq2016-01-24_16-26-11PM_2.log Log file location: /u01/app/Middleware/oms/cfgtoollogs/opatchauto/22115901/opatch_oms_2016-01-24_16-25-00PM_analyze.log OPatchauto succeeded. [oracle@ORA-CC 22115901]$ 8) So far we have covered all the prerequisite check and now perform STOP OMS. [oracle@ORA-CC 22115901]$ which emctl /u01/app/Middleware/oms/bin/emctl [oracle@ORA-CC 22115901]$ emctl stop oms 9) Installing the System patch [oracle@ORA-CC 22115901]$ pwd /home/oracle/working/CR1026371/OMS_JAN2016/22115901 [oracle@ORA-CC 22115901]$ which emctl /u01/app/Middleware/oms/bin/emctl [oracle@ORA-CC 22115901]$ . oraenv ORACLE_SID = [ORCL] ? OMS The Oracle base for ORACLE_HOME=/u01/app/Middleware/oms is /u01/app/oracle [oracle@ORA-CC 22115901]$ opatchauto apply -bash: opatchauto: command not found [oracle@ORA-CC 22115901]$ export PATH=$ORACLE_HOME/OPatch:$PATH [oracle@ORA-CC 22115901]$ which opatchauto /u01/app/Middleware/oms/OPatch/opatchauto [oracle@ORA-CC 22115901]$ opatchauto apply OPatch Automation Tool Copyright (c) 2014, Oracle Corporation. All rights reserved OPatchauto version : 11.1.0.12.9 OUI version : 11.1.0.13.0 Running from : /u01/app/Middleware/oms Log file location : /u01/app/Middleware/oms/cfgtoollogs/opatch/opatch2016-01-26_07-01-57AM_1.log OPatchauto log file: /u01/app/Middleware/oms/cfgtoollogs/opatchauto/22115901/opatch_oms_2016-01-26_07-01-59AM_deploy.log Please enter OMS weblogic admin server URL(t3s://ORA-CC.localdomain: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) "22115901" and Oracle Home "/u01/app/Middleware/oms"... Please monitor OPatch log file: /u01/app/Middleware/oms/cfgtoollogs/opatch/22115901_Jan_26_2016_07_01_57/ApplyPrereq2016-01-26_07-03-01AM_2.log Sub-patch(es) "22115901" are successfully analyzed for Oracle Home "/u01/app/Middleware/oms" To continue, OPatchauto will do the following: [Patch and deploy artifacts] : Apply sub-patch(es) [ 22115901 ] to Oracle Home "/u01/app/Middleware/oms"; Apply RCU artifact with patch "/u01/app/Middleware/oms/.patch_storage/22115901_Dec_20_2015_22_49_30/original_patch"; Register MRS artifact "targetType"; Register MRS artifact "storeTargetType"; Register MRS artifact "default_collection" Do you want to proceed? [y|n] y User Responded with: Y Applying sub-patch "22115901" to Oracle Home "/u01/app/Middleware/oms"... Please monitor OPatch log file: /u01/app/Middleware/oms/cfgtoollogs/opatch/22115901_Jan_26_2016_07_01_57/apply2016-01-26_07-03-37AM_4.log Updating repository with RCU reference file "/u01/app/Middleware/oms/.patch_storage/22115901_Dec_20_2015_22_49_30/original_patch" Registering service "targetType" with register file "/u01/app/Middleware/oms/sysman/metadata/targetType/oldVersions/host/12.1.0.4/host.xml"... Registering service "storeTargetType" with register file "/u01/app/Middleware/oms/sysman/metadata/targetType/oldVersions/host/12.1.0.4/host.xml"... Registering service "default_collection" with register file "/u01/app/Middleware/oms/sysman/metadata/default_collection/oldVersions/host/12.1.0.4/host.xml"... Complete Summary ================ All log file names referenced below can be accessed from the directory "/u01/app/Middleware/oms/cfgtoollogs/opatch/2016-01-26_07-01-57AM_SystemPatch_22115901_1" Patching summary: ----------------- Binaries of the following sub-patch(es) have been applied successfully: Oracle Home Name Sub-patches Log file ---------------- ----------- -------- oms12c1 22115901 22115901_apply2016-01-26_07-03-37AM_4.log Deployment summary: ------------------- The following artifact(s) have been successfully deployed: Artifacts Log file --------- -------- SQL rcu_applypatch_original_patch_2016-01-26_07-04-31AM.log MRS-targetType emctl_register_targetType_2016-01-26_07-05-38AM.log MRS-storeTargetType emctl_register_storeTargetType_2016-01-26_07-06-00AM.log MRS-default_collection emctl_register_default_collection_2016-01-26_07-06-08AM.log Log file location: /u01/app/Middleware/oms/cfgtoollogs/opatchauto/22115901/opatch_oms_2016-01-26_07-01-59AM_deploy.log OPatchauto succeeded. [oracle@ORA-CC 22115901]$ 10) Start OMS [oracle@ORA-CC 22115901]$ which emctl /u01/app/Middleware/oms/bin/emctl [oracle@ORA-CC 22115901]$ emctl status oms Oracle Enterprise Manager Cloud Control 12c Release 5 Copyright (c) 1996, 2015 Oracle Corporation. All rights reserved. WebTier is Down Oracle Management Server is Down [oracle@ORA-CC 22115901]$ emctl start oms Oracle Enterprise Manager Cloud Control 12c Release 5 Copyright (c) 1996, 2015 Oracle Corporation. All rights reserved. Starting Oracle Management Server... Starting WebTier... WebTier Successfully Started Oracle Management Server Successfully Started Oracle Management Server is Up [oracle@ORA-CC 22115901]$ emctl status oms -details Oracle Enterprise Manager Cloud Control 12c Release 5 Copyright (c) 1996, 2015 Oracle Corporation. All rights reserved. Enter Enterprise Manager Root (SYSMAN) Password : Console Server Host : ORA-CC.localdomain HTTP Console Port : 7788 HTTPS Console Port : 7802 HTTP Upload Port : 4889 HTTPS Upload Port : 4903 EM Instance Home : /u01/app/gc_inst/em/EMGC_OMS1 OMS Log Directory Location : /u01/app/gc_inst/em/EMGC_OMS1/sysman/log OMS is not configured with SLB or virtual hostname Agent Upload is locked. OMS Console is locked. Active CA ID: 1 Console URL: https://ORA-CC.localdomain:7802/em Upload URL: https://ORA-CC.localdomain:4903/empbs/upload WLS Domain Information Domain Name : GCDomain Admin Server Host : ORA-CC.localdomain Admin Server HTTPS Port: 7102 Admin Server is RUNNING Oracle Management Server Information Managed Server Instance Name: EMGC_OMS1 Oracle Management Server Instance Host: ORA-CC.localdomain WebTier is Up Oracle Management Server is Up BI Publisher is not configured to run on this host. [oracle@ORA-CC 22115901]$ Applying Patch on Agent 12.1.0.5 – Jan 2016 To apply the latest Jan 2016 patches, it is not quick with one patch, we have to apply total 3 patches in order to achieve Jan 2016 security updates. Current Agent Version: 12.1.0.5.0 Patches Applied: 15915936.1, 16995298, and 17273347 Patches to Apply – The below patches has to be applied in one by one order. 1) 22164537 (December 2015) - Oracle® Management Agent 12c Release 5 (12.1.0.5.0) Patch for Bug # 22164537 2) 22342358 - Oracle® Management Agent 12c Release 5 (12.1.0.5.0) Patch for Bug # 22342358 3) 22317311 - Oracle® Management Agent 12c Release 5 (12.1.0.5.0) Patch for Bug # 22317311 Patches can be applied on agents from OMS or Manual. Here we are performing manual method. All the three patches prerequisites are same, hence we will stop the services of agent until we apply all the three patches. Prerequisites 1) Agent version The agent version should be 12.1.0.5.0, if the agent either belongs to OMS or standalone agent. [oracle@ORA-CC AGENT_JAN2016]$ . oraenv ORACLE_SID = [AGENT] ? AGENT The Oracle base for ORACLE_HOME=/u01/app/oracle/12cc_agent/core/12.1.0.5.0 is /u01/app/oracle [oracle@ORA-CC AGENT_JAN2016]$ opatch lsinventory Oracle Interim Patch Installer version 11.1.0.12.9 Copyright (c) 2016, Oracle Corporation. All rights reserved. Oracle Home : /u01/app/oracle/12cc_agent/core/12.1.0.5.0 Central Inventory : /u01/app/oraInventory from : /u01/app/oracle/12cc_agent/core/12.1.0.5.0/oraInst.loc OPatch version : 11.1.0.12.9 OUI version : 11.1.0.13.0 Log file location : /u01/app/oracle/12cc_agent/core/12.1.0.5.0/cfgtoollogs/opatch/opatch2016-01-24_19-30-48PM_1.log Lsinventory Output file location : /u01/app/oracle/12cc_agent/core/12.1.0.5.0/cfgtoollogs/opatch/lsinv/lsinventory2016-01-24_19-30-48PM.txt -------------------------------------------------------------------------------- Installed Top-level Products (1): EM Platform (Agent) 12.1.0.5.0 There are 1 products installed in this Oracle Home. 2) Opatch version - The opatch version should be higher. Upgraded by downloading the patch. [oracle@ORA-CC STAGING]$ mv OPatch /u01/app/oracle/12cc_agent/core/12.1.0.5.0/ [oracle@ORA-CC STAGING]$ opatch version OPatch Version: 11.1.0.12.9 OPatch succeeded. [oracle@ORA-CC STAGING]$ 3) Export the Agent Core Home and the Path for the availability of binaries. [oracle@ORA-CC Middleware]$ . oraenv ORACLE_SID = [OMS] ? AGENT The Oracle base for ORACLE_HOME=/u01/app/oracle/12cc_agent/core/12.1.0.5.0 is /u01/app/oracle [oracle@ORA-CC Middleware]$ which opatch /u01/app/Middleware/oms/OPatch/opatch 4) Verify Opatch – Ensure you able to run the command with opatch. [oracle@ORA-CC ~]$ opatch lsinventory Oracle Interim Patch Installer version 11.1.0.12.9 Copyright (c) 2016, Oracle Corporation. All rights reserved. Oracle Home : /u01/app/oracle/12cc_agent/core/12.1.0.5.0 Central Inventory : /u01/app/oraInventory from : /u01/app/oracle/12cc_agent/core/12.1.0.5.0/oraInst.loc OPatch version : 11.1.0.12.9 OUI version : 11.1.0.13.0 Log file location : /u01/app/oracle/12cc_agent/core/12.1.0.5.0/cfgtoollogs/opatch/opatch2016-01-24_19-42-15PM_1.log Lsinventory Output file location : /u01/app/oracle/12cc_agent/core/12.1.0.5.0/cfgtoollogs/opatch/lsinv/lsinventory2016-01-24_19-42-15PM.txt -------------------------------------------------------------------------------- Installed Top-level Products (1): EM Platform (Agent) 12.1.0.5.0 There are 1 products installed in this Oracle Home. 5) Stop the agent. [oracle@ORA-CC ~]$ emctl stop agent Until here the steps are common for all the three patches, now the commands may vary. Applying Patch - 22164537 In the above step we have already stopped the agent and the all the patches are unzipped in the below directories. [oracle@ORA-CC AGENT_JAN2016]$ ls -ltr total 12 drwxr-xr-x 3 oracle dba 4096 Jan 24 19:22 1_Agent_22164537 drwxr-xr-x 3 oracle dba 4096 Jan 24 19:24 2_Agent_22342358 drwxr-xr-x 3 oracle dba 4096 Jan 24 19:24 3_Agent_223117311 [oracle@ORA-CC AGENT_JAN2016]$ pwd /home/oracle/nassyam/STAGING/AGENT_JAN2016 [oracle@ORA-CC AGENT_JAN2016]$ I have given names 1, 2 and 3 in order to be clear. The PATCH_TOP DIR will be the “ 1_Agent_22164537 ”, in side this folder you will find original patch directory. This is applicable for all the above three patches. i. Go to the Patch location [oracle@ORA-CC AGENT_JAN2016]$ ls -ltr total 12 drwxr-xr-x 3 oracle dba 4096 Jan 24 19:22 1_Agent_22164537 drwxr-xr-x 3 oracle dba 4096 Jan 24 19:24 2_Agent_22342358 drwxr-xr-x 3 oracle dba 4096 Jan 24 19:24 3_Agent_223117311 [oracle@ORA-CC AGENT_JAN2016]$ cd 1_Agent_22164537/ [oracle@ORA-CC 1_Agent_22164537]$ ls -ltr total 16 drwxrwxr-x 6 oracle dba 4096 Dec 8 07:38 22164537 -rw-rw-r-- 1 oracle dba 11768 Dec 31 07:27 PatchSearch.xml [oracle@ORA-CC 1_Agent_22164537]$ cd 22164537/ [oracle@ORA-CC 22164537]$ pwd /home/oracle/nassyam/STAGING/AGENT_JAN2016/1_Agent_22164537/22164537 [oracle@ORA-CC 22164537]$ ii. Apply the patch. [oracle@ORA-CC 22164537]$ . oraenv ORACLE_SID = [AGENT] ? AGENT The Oracle base for ORACLE_HOME=/u01/app/oracle/12cc_agent/core/12.1.0.5.0 is /u01/app/oracle [oracle@ORA-CC 22164537]$ export PATH=$ORACLE_HOME/OPatch:$PATH:. [oracle@ORA-CC 22164537]$ which opatch /u01/app/oracle/12cc_agent/core/12.1.0.5.0/OPatch/opatch [oracle@ORA-CC 22164537]$ opatch napply Oracle Interim Patch Installer version 11.1.0.12.9 Copyright (c) 2016, Oracle Corporation. All rights reserved. Oracle Home : /u01/app/oracle/12cc_agent/core/12.1.0.5.0 Central Inventory : /u01/app/oraInventory from : /u01/app/oracle/12cc_agent/core/12.1.0.5.0/oraInst.loc OPatch version : 11.1.0.12.9 OUI version : 11.1.0.13.0 Log file location : /u01/app/oracle/12cc_agent/core/12.1.0.5.0/cfgtoollogs/opatch/opatch2016-01-26_08-13-53AM_1.log Verifying environment and performing prerequisite checks... Conflicts/Supersets for each patch are: Patch : 18502187 Bug Superset of 17591700 Super set bugs are: 16479818, 6895422, 13583799 Patches [ 17591700 ] will be rolled back. Do you want to proceed? [y|n] y User Responded with: Y OPatch continues with these patches: 18502187 18721761 21461408 22164537 Do you want to proceed? [y|n] y User Responded with: Y All checks passed. Provide your email address to be informed of security issues, install and initiate Oracle Configuration Manager. Easier for you if you use your My Oracle Support Email address/User Name. Visit http://www.oracle.com/support/policies.html for details. Email address/User Name: You have not provided an email address for notification of security issues. Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: Y Please shutdown Oracle instances running out of this ORACLE_HOME on the local system. (Oracle Home = '/u01/app/oracle/12cc_agent/core/12.1.0.5.0') Is the local system ready for patching? [y|n] y User Responded with: Y Backing up files... Applying interim patch '18502187' to OH '/u01/app/oracle/12cc_agent/core/12.1.0.5.0' ApplySession: Optional component(s) [ oracle.dbjava.jdbc, 11.1.0.7.0 ] not present in the Oracle Home or a higher version is found. Rolling back interim patch '17591700' from OH '/u01/app/oracle/12cc_agent/core/12.1.0.5.0' ……………….. OPatch back to application of the patch '18502187' after auto-rollback. Patching component oracle.dbjava.ic, 11.1.0.7.0... Verifying the update... Applying interim patch '18721761' to OH '/u01/app/oracle/12cc_agent/core/12.1.0.5.0' Patching component oracle.dbjava.ic, 11.1.0.7.0... Verifying the update... Applying interim patch '21461408' to OH '/u01/app/oracle/12cc_agent/core/12.1.0.5.0' Patching component oracle.jrf.dms, 11.1.1.7.0... Verifying the update... Applying interim patch '22164537' to OH '/u01/app/oracle/12cc_agent/core/12.1.0.5.0' Patching component oracle.sysman.top.agent, 12.1.0.5.0... Verifying the update... Patches 18502187,18721761,21461408,22164537 successfully applied. OPatch Session completed with warnings. Log file location: /u01/app/oracle/12cc_agent/core/12.1.0.5.0/cfgtoollogs/opatch/opatch2016-01-26_08-13-53AM_1.log OPatch completed with warnings. [oracle@ORA-CC 22164537]$ Do not start the Agent, as discussed above we have to apply the other two patches as well. Applying PLUGIN Patch - 22342358 For best practice check that agent is not running. We have the directory already zipped in the below location, now we have to apply this patch on the Agent of OMS. [oracle@ORA-CC AGENT_JAN2016]$ ls -ltr total 12 drwxr-xr-x 3 oracle dba 4096 Jan 24 19:22 1_Agent_22164537 drwxr-xr-x 3 oracle dba 4096 Jan 24 19:24 2_Agent_22342358 drwxr-xr-x 3 oracle dba 4096 Jan 24 19:24 3_Agent_223117311 [oracle@ORA-CC AGENT_JAN2016]$ pwd /home/oracle/working/CR1026371/AGENT_JAN2016 [oracle@ORA-CC AGENT_JAN2016]$ cd 2_Agent_22342358/ [oracle@ORA-CC 2_Agent_22342358]$ pwd /home/oracle/working/CR1026371/AGENT_JAN2016/2_Agent_22342358 [oracle@ORA-CC 2_Agent_22342358]$ To apply this patch we have to perform one more additional step , they are below. i. Export the PLUGIN_HOME [oracle@ORA-CC 2_Agent_22342358]$ . oraenv ORACLE_SID = [AGENT] ? AGENT The Oracle base for ORACLE_HOME=/u01/app/oracle/12cc_agent/core/12.1.0.5.0 is /u01/app/oracle [oracle@ORA-CC 2_Agent_22342358]$ cd /u01/app/oracle/12cc_agent/sbin [oracle@ORA-CC sbin]$ export PLUGIN_HOME=/u01/app/oracle/12cc_agent/sbin oracle@ORA-CC sbin]$ echo $PLUGIN_HOME /u01/app/oracle/12cc_agent/sbin [oracle@ORA-CC sbin]$ ii. Access Opatch to ensure able to run the command using the additional attribute. [oracle@ORA-CC sbin]$ which opatch /u01/app/oracle/12cc_agent/core/12.1.0.5.0/OPatch/opatch [oracle@ORA-CC sbin]$ echo $PLUGIN_HOME /u01/app/oracle/12cc_agent/sbin [oracle@ORA-CC sbin]$ opatch lsinventory -oh $PLUGIN_HOME Oracle Interim Patch Installer version 11.1.0.12.9 Copyright (c) 2016, Oracle Corporation. All rights reserved. Oracle Home : /u01/app/oracle/12cc_agent/sbin Central Inventory : /u01/app/oraInventory from : /u01/app/oracle/12cc_agent/sbin/oraInst.loc OPatch version : 11.1.0.12.9 OUI version : 11.1.0.13.0 Log file location : /u01/app/oracle/12cc_agent/sbin/cfgtoollogs/opatch/opatch2016-01-24_20-13-24PM_1.log Lsinventory Output file location : /u01/app/oracle/12cc_agent/sbin/cfgtoollogs/opatch/lsinv/lsinventory2016-01-24_20-13-24PM.txt -------------------------------------------------------------------------------- Installed Top-level Products (1): EM Platform (Agent Set-UID binaries) 12.1.0.5.0 There are 1 products installed in this Oracle Home. There are no Interim patches installed in this Oracle Home. -------------------------------------------------------------------------------- OPatch succeeded. [oracle@ORA-CC sbin]$ iii. Navigate to the patch directory [oracle@ORA-CC ~]$ cd nassyam/STAGING/AGENT_JAN2016/2_Agent_22342358/22342358/ [oracle@ORA-CC 22342358]$ pwd /home/oracle/nassyam/STAGING/AGENT_JAN2016/2_Agent_22342358/22342358 [oracle@ORA-CC 22342358]$ ls -ltr total 44 -rw-r--r-- 1 oracle dba 9869 Dec 10 15:14 README.txt drwxr-xr-x 2 oracle dba 4096 Dec 10 15:14 files drwxr-xr-x 3 oracle dba 4096 Dec 10 15:14 etc -rw-r--r-- 1 oracle dba 24548 Jan 20 17:09 README.html [oracle@ORA-CC 22342358]$ iv. Apply the Patch [oracle@ORA-CC 22342358]$ opatch apply -oh $PLUGIN_HOME Oracle Interim Patch Installer version 11.1.0.12.9 Copyright (c) 2016, Oracle Corporation. All rights reserved. Oracle Home : /u01/app/oracle/12cc_agent/sbin Central Inventory : /u01/app/oraInventory from : /u01/app/oracle/12cc_agent/sbin/oraInst.loc OPatch version : 11.1.0.12.9 OUI version : 11.1.0.13.0 Log file location : /u01/app/oracle/12cc_agent/sbin/cfgtoollogs/opatch/22342358_Jan_26_2016_08_18_40/apply2016-01-26_08-18-40AM_1.log Applying interim patch '22342358' to OH '/u01/app/oracle/12cc_agent/sbin' Verifying environment and performing prerequisite checks... All checks passed. Provide your email address to be informed of security issues, install and initiate Oracle Configuration Manager. Easier for you if you use your My Oracle Support Email address/User Name. Visit http://www.oracle.com/support/policies.html for details. Email address/User Name: You have not provided an email address for notification of security issues. Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: Y Backing up files... Patching component oracle.sysman.sbin, 12.1.0.5.0... Verifying the update... Patch 22342358 successfully applied Log file location: /u01/app/oracle/12cc_agent/sbin/cfgtoollogs/opatch/22342358_Jan_26_2016_08_18_40/apply2016-01-26_08-18-40AM_1.log OPatch succeeded. [oracle@ORA-CC 22342358]$ Do not start the OMS and we will continue by applying the last patch. Applying Patch - 22317311 Prerequisites are same as 22164537 and no changes in this patch to apply. We directly skip to applying the patch. i. Navigate to the patch location. [oracle@ORA-CC ~]$ . oraenv ORACLE_SID = [ORCL] ? AGENT The Oracle base for ORACLE_HOME=/u01/app/oracle/12cc_agent/core/12.1.0.5.0 is /u01/app/oracle [oracle@ORA-CC ~]$ cd nassyam/STAGING/AGENT_JAN2016/ 3_Agent_223117311/22317311/ [oracle@ORA-CC 22317311]$ pwd /home/oracle/working/CR1026371/AGENT_JAN2016/3_Agent_223117311/ 22317311 [oracle@ORA-CC 22317311]$ ls custom etc files README.html README.txt [oracle@ORA-CC 22317311]$ ii. Apply the patch [oracle@ORA-CC ~]$ . oraenv ORACLE_SID = [ORCL] ? AGENT The Oracle base for ORACLE_HOME=/u01/app/oracle/12cc_agent/core/12.1.0.5.0 is /u01/app/oracle [oracle@ORA-CC ~]$ cd nassyam/STAGING/AGENT_JAN2016/3_Agent_223117311/22317311/ [oracle@ORA-CC 22317311]$ export PATH=$ORACLE_HOME/OPatch:$PATH: [oracle@ORA-CC 22317311]$ which opatch /u01/app/oracle/12cc_agent/core/12.1.0.5.0/OPatch/opatch [oracle@ORA-CC 22317311]$ opatch apply Oracle Interim Patch Installer version 11.1.0.12.9 Copyright (c) 2016, Oracle Corporation. All rights reserved. Oracle Home : /u01/app/oracle/12cc_agent/core/12.1.0.5.0 Central Inventory : /u01/app/oraInventory from : /u01/app/oracle/12cc_agent/core/12.1.0.5.0/oraInst.loc OPatch version : 11.1.0.12.9 OUI version : 11.1.0.13.0 Log file location : /u01/app/oracle/12cc_agent/core/12.1.0.5.0/cfgtoollogs/opatch/22317311_Jan_26_2016_08_21_51/apply2016-01-26_08-21-51AM_1.log Applying interim patch '22317311' to OH '/u01/app/oracle/12cc_agent/core/12.1.0.5.0' Verifying environment and performing prerequisite checks... All checks passed. Provide your email address to be informed of security issues, install and initiate Oracle Configuration Manager. Easier for you if you use your My Oracle Support Email address/User Name. Visit http://www.oracle.com/support/policies.html for details. Email address/User Name: You have not provided an email address for notification of security issues. Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: Y Backing up files... Patching component oracle.sysman.top.agent, 12.1.0.5.0... Verifying the update... Patch 22317311 successfully applied Log file location: /u01/app/oracle/12cc_agent/core/12.1.0.5.0/cfgtoollogs/opatch/22317311_Jan_26_2016_08_21_51/apply2016-01-26_08-21-51AM_1.log OPatch succeeded. [oracle@ORA-CC 22317311]$ [oracle@ORA-CC 22317311]$ opatch lsinventory Oracle Interim Patch Installer version 11.1.0.12.9 Copyright (c) 2016, Oracle Corporation. All rights reserved. Oracle Home : /u01/app/oracle/12cc_agent/core/12.1.0.5.0 Central Inventory : /u01/app/oraInventory from : /u01/app/oracle/12cc_agent/core/12.1.0.5.0/oraInst.loc OPatch version : 11.1.0.12.9 OUI version : 11.1.0.13.0 Log file location : /u01/app/oracle/12cc_agent/core/12.1.0.5.0/cfgtoollogs/opatch/opatch2016-01-26_08-22-39AM_1.log Lsinventory Output file location : /u01/app/oracle/12cc_agent/core/12.1.0.5.0/cfgtoollogs/opatch/lsinv/lsinventory2016-01-26_08-22-39AM.txt -------------------------------------------------------------------------------- Installed Top-level Products (1): EM Platform (Agent) 12.1.0.5.0 There are 1 products installed in this Oracle Home. Interim patches (7) : Patch 22317311 : applied on Tue Jan 26 08:22:02 GMT 2016 Unique Patch ID: 19666009 Patch description: "EM-AGENT Monitoring Bundle Patch 12.1.0.5.151231 for porting platforms" Created on 16 Dec 2015, 01:04:35 hrs PST8PDT Bugs fixed: 21453153, 21351877, 22334489, 22317311, 21330264, 21343838, 21343775, 21343897 Patch 22164537 : applied on Tue Jan 26 08:14:35 GMT 2016 Unique Patch ID: 19649978 Patch description: "EM-AGENT BUNDLE PATCH 12.1.0.5.151231" Created on 7 Dec 2015, 23:33:47 hrs PST8PDT Bugs fixed: 21330189, 21169531, 21799487, 19777586, 20158769, 20991649, 20361608 22062455, 18674865, 21829304, 21874847, 21975295, 21575605, 21615064 19871749, 21506188, 22165246, 21083840, 21930217, 21565489, 22164537 20307522, 19801630, 21284802, 21454555, 20616497, 21425140, 21812487 21162085, 18613101, 21320936, 21890497, 21745074, 21514082, 21793663 20716050, 17911792, 19074768, 21330230, 21373788, 21958558, 21464868 21157445, 21373899, 21816016, 21481164, 21630853, 20356814 Patch 21461408 : applied on Tue Jan 26 08:14:32 GMT 2016 Unique Patch ID: 19179987 Created on 26 Jul 2015, 23:11:06 hrs PST8PDT Bugs fixed: 21461408 Patch 18721761 : applied on Tue Jan 26 08:14:29 GMT 2016 Unique Patch ID: 17795715 Created on 27 Jun 2014, 04:34:49 hrs PST8PDT Bugs fixed: 14671238, 8855559, 8563945, 13737031, 13737032, 11807297, 12984377 Patch 18502187 : applied on Tue Jan 26 08:14:26 GMT 2016 Unique Patch ID: 17615617 Created on 6 May 2014, 06:29:08 hrs PST8PDT Bugs fixed: 6895422, 16479818, 18421945, 13583799 Patch 10203435 : applied on Thu Jun 11 00:41:03 GMT 2015 Unique Patch ID: 15915936.1 Created on 7 Feb 2013, 18:06:13 hrs PST8PDT Bugs fixed: 10203435 Patch 17018143 : applied on Thu Jun 11 00:40:56 GMT 2015 Unique Patch ID: 17273347 Created on 7 Feb 2014, 21:45:46 hrs UTC Bugs fixed: 17018143 -------------------------------------------------------------------------------- OPatch succeeded. [oracle@ORA-CC 22317311]$ iii. Check the Applied Patch – ensure the above patch was visible while lsinventory described. [oracle@ORA-CC 22317311]$ opatch lsinventory iv. Start Agent and check OMS status [oracle@ORA-CC 22317311]$ emctl status agent Oracle Enterprise Manager Cloud Control 12c Release 5 Copyright (c) 1996, 2015 Oracle Corporation. All rights reserved. --------------------------------------------------------------- Agent is Not Running [oracle@ORA-CC 22317311]$ emctl start agent Oracle Enterprise Manager Cloud Control 12c Release 5 Copyright (c) 1996, 2015 Oracle Corporation. All rights reserved. Starting agent ................................... started. [oracle@ORA-CC 22317311]$ emctl upload agent Oracle Enterprise Manager Cloud Control 12c Release 5 Copyright (c) 1996, 2015 Oracle Corporation. All rights reserved. --------------------------------------------------------------- EMD upload completed successfully [oracle@ORA-CC 22317311]$ emctl status agent Oracle Enterprise Manager Cloud Control 12c Release 5 Copyright (c) 1996, 2015 Oracle Corporation. All rights reserved. --------------------------------------------------------------- Agent Version : 12.1.0.5.0 OMS Version : 12.1.0.5.0 Protocol Version : 12.1.0.1.0 Agent Home : /u01/app/oracle/12cc_agent/agent_inst Agent Log Directory : /u01/app/oracle/12cc_agent/agent_inst/sysman/log Agent Binaries : /u01/app/oracle/12cc_agent/core/12.1.0.5.0 Agent Process ID : 10333 Parent Process ID : 10262 Agent URL : https://ORA-CC.localdomain:3872/emd/main/ Local Agent URL in NAT : https://ORA-CC.localdomain:3872/emd/main/ Repository URL : https://ORA-CC.localdomain:4903/empbs/upload Started at : 2016-01-26 08:23:54 Started by user : oracle Operating System : Linux version 2.6.39-400.17.1.el6uek.x86_64 (amd64) Last Reload : (none) Last successful upload : 2016-01-26 08:24:29 Last attempted upload : 2016-01-26 08:24:29 Total Megabytes of XML files uploaded so far : 0.05 Number of XML files pending upload : 0 Size of XML files pending upload(MB) : 0 Available disk space on upload filesystem : 66.35% Collection Status : Collections enabled Heartbeat Status : Ok Last attempted heartbeat to OMS : 2016-01-26 08:24:12 Last successful heartbeat to OMS : 2016-01-26 08:24:12 Next scheduled heartbeat to OMS : 2016-01-26 08:25:13 --------------------------------------------------------------- Agent is Running and Ready [oracle@ORA-CC 22317311]$ Summary We’ve seen how to perform patching all the three Oracle Homes of database, OMS and agent in step by step. Specifically in agent patching of Jan2016 had to apply 3 patches on 12.1.0.5. That’s the main scope to show in this article what are the dependencies between 3 patches and how to deal with plugin patches.

Viewing all articles
Browse latest Browse all 1814


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>