Java patch on 13.5 OEM agent to fix vulnerabilities
Applying Java patch on 13.5 OEM agent to fix vulnerabilities.
Step 1) Pre output of java version
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)
[oracle@ORA_SRVR bin]$ pwd
/u00/app/oracle/product/agent_13_5/agent_13.5.0.0.0/oracle_common/jdk/bin
[oracle@ORA_SRVR bin]$
Step 2) To create software directory and download the zip file
[oracle@ORA_SRVR ~]$ mkdir -p /u00/app/oracle/software/javapatch_agent
[oracle@ORA_SRVR ~]$ pwd
/home/oracle
[oracle@ORA_SRVR ~]$ cd /u00/app/oracle/software/javapatch_agent
[oracle@ORA_SRVR javapatch_agent]$ ls -ltr
total 497220
-rw-r–r– 1 oracle dba 875 Jan 9 13:06 readme.txt
-rw-r–r– 1 oracle dba 116575304 Jan 9 13:06 jdk-8u361-linux-x64.rpm
-r–r–r– 1 oracle dba 138780498 Jan 9 13:06 jdk-8u361-linux-x64.tar.gz
-rw-r—– 1 oracle dba 253789421 Feb 17 06:05 p34894392_180361_Linux-x86-64.zip
Step 3) Status of emctl
[oracle@ORA_SRVR bin]$ cd /u00/app/oracle/product/agent_13_5/agent_13.5.0.0.0/bin
[oracle@ORA_SRVR bin]$
[oracle@ORA_SRVR bin]$ ./emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 5
—————————————————————
Agent Version : 13.5.0.0.0
OMS Version : 13.5.0.0.0
Protocol Version : 12.1.0.1.0
Agent Home : /u00/app/oracle/product/agent_13_5/agent_inst
Agent Log Directory : /u00/app/oracle/product/agent_13_5/agent_inst/sysman/log
Agent Binaries : /u00/app/oracle/product/agent_13_5/agent_13.5.0.0.0
Core JAR Location : /u00/app/oracle/product/agent_13_5/agent_13.5.0.0.0/jlib
Agent Process ID : 124094
Parent Process ID : 123468
Agent URL : https://ORA_SRVR:3872/emd/main/
Local Agent URL in NAT : https://ORA_SRVR:3872/emd/main/
Repository URL : https://OEM:4903/empbs/upload
Started at : 2023-03-01 06:21:56
Started by user : oracle
Operating System : Linux version 3.10.0-1160.76.1.el7.x86_64 (amd64)
Number of Targets : 64
Last Reload : (none)
Last successful upload : 2023-03-13 07:24:23
Last attempted upload : 2023-03-13 07:24:23
Total Megabytes of XML files uploaded so far : 59.15
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 10.00%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2023-03-13 07:30:01
Last successful heartbeat to OMS : 2023-03-13 07:30:01
Next scheduled heartbeat to OMS : 2023-03-13 07:31:01
—————————————————————
Agent is Running and Ready
Step 4) Stop the OEM agent
[oracle@ORA_SRVR bin]$ ./emctl stop agent
Oracle Enterprise Manager Cloud Control 13c Release 5
Stopping agent … stopped.
You have new mail in /var/spool/mail/oracle
[oracle@ORA_SRVR bin]$
[oracle@ORA_SRVR bin]$ pwd
/u00/app/oracle/product/agent_13_5/agent_13.5.0.0.0/bin
[oracle@ORA_SRVR bin]$
[oracle@ORA_SRVR bin]$ ./emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 5
—————————————————————
Agent is Not Running
Step 5) Take backup of existing jdk to jdk_bkpmar13
[oracle@ORA_SRVR bin]$ cd
[oracle@ORA_SRVR ~]$ cd /u00/app/oracle/product/agent_13_5
[oracle@ORA_SRVR agent_13_5]$ cd agent_13.5.0.0.0
[oracle@ORA_SRVR agent_13.5.0.0.0]$ ls -ltr
total 60
lrwxrwxrwx 1 oracle dba 69 Nov 21 12:59 jdk -> /u00/app/oracle/product/agent_13_5/agent_13.5.0.0.0/oracle_common/jdk
[oracle@ORA_SRVR agent_13.5.0.0.0]$ cd oracle_common
[oracle@ORA_SRVR oracle_common]$ ls -ltr
total 8
drwxr-x— 2 oracle dba 115 Nov 21 12:58 bin
drwxr-x— 3 oracle dba 23 Nov 21 12:58 common
drwxr-xr-x 8 oracle dba 258 Nov 21 12:58 jdk
drwxr-x— 2 oracle dba 79 Nov 21 12:58 jlib
drwxr-x— 5 oracle dba 45 Nov 21 12:58 ldap
drwxr-x— 2 oracle dba 4096 Nov 21 12:58 lib
drwxr-x— 3 oracle dba 23 Nov 21 12:58 owsm
drwxr-x— 5 oracle dba 48 Nov 21 12:59 plugins
drwxr-x— 19 oracle dba 4096 Nov 21 12:59 modules
[oracle@ORA_SRVR oracle_common]$ pwd
/u00/app/oracle/product/agent_13_5/agent_13.5.0.0.0/oracle_common
[oracle@ORA_SRVR oracle_common]$
[oracle@ORA_SRVR oracle_common]$ mv jdk jdk_bkpmar13
Step 6) copy the downloaded jdk zip file to /u00/app/oracle/product/agent_13_5/agent_13.5.0.0.0/oracle_common
[oracle@ORA_SRVR javapatch_agent]$ cp p34894392_180361_Linux-x86-64.zip /u00/app/oracle/product/agent_13_5/agent_13.5.0.0.0/oracle_common
[oracle@ORA_SRVR javapatch_agent]$
[oracle@ORA_SRVR javapatch_agent]$
[oracle@ORA_SRVR javapatch_agent]$ cd /u00/app/oracle/product/agent_13_5/agent_13.5.0.0.0/oracle_common
[oracle@ORA_SRVR oracle_common]$
[oracle@ORA_SRVR oracle_common]$ ls -ltr
total 247852
drwxr-x— 2 oracle dba 115 Nov 21 12:58 bin
drwxr-x— 3 oracle dba 23 Nov 21 12:58 common
drwxr-xr-x 8 oracle dba 258 Nov 21 12:58 jdk_bkpmar13
drwxr-x— 2 oracle dba 79 Nov 21 12:58 jlib
drwxr-x— 5 oracle dba 45 Nov 21 12:58 ldap
drwxr-x— 2 oracle dba 4096 Nov 21 12:58 lib
drwxr-x— 3 oracle dba 23 Nov 21 12:58 owsm
drwxr-x— 5 oracle dba 48 Nov 21 12:59 plugins
drwxr-x— 19 oracle dba 4096 Nov 21 12:59 modules
-rw-r—– 1 oracle dba 253789421 Mar 13 07:37 p34894392_180361_Linux-x86-64.zip
step 7) unzip the software file p34894392_180361_Linux-x86-64.zip
[oracle@ORA_SRVR oracle_common]$ unzip p34894392_180361_Linux-x86-64.zip
Archive: p34894392_180361_Linux-x86-64.zip
inflating: jdk-8u361-linux-x64.rpm
inflating: jdk-8u361-linux-x64.tar.gz
inflating: readme.txt
[oracle@ORA_SRVR oracle_common]$
Step 8) untar jdk-8u361-linux-x64.tar.gz file
[oracle@ORA_SRVR oracle_common]$ tar zxvf jdk-8u361-linux-x64.tar.gz
jdk1.8.0_361/COPYRIGHT
jdk1.8.0_361/LICENSE
jdk1.8.0_361/README.html
jdk1.8.0_361/THIRDPARTYLICENSEREADME.txt
jdk1.8.0_361/bin/java-rmi.cgi
…………
…………
………….
jdk1.8.0_361/jmc.txt
jdk1.8.0_361/jre/lib/applet/
[oracle@ORA_SRVR oracle_common]$
Step 9) rename the jdk1.8.0_361 to jdk
[oracle@ORA_SRVR oracle_common]$ mv jdk1.8.0_361 jdk
[oracle@ORA_SRVR oracle_common]$ ls -ld jdk
drwxr-xr-x 8 oracle dba 294 Mar 13 07:39 jdk
[oracle@ORA_SRVR oracle_common]$
[oracle@ORA_SRVR oracle_common]$ cd jdk
Step 10) Verify the post patch java version
[oracle@ORA_SRVR jdk]$ cd bin
[oracle@ORA_SRVR bin]$ ./java -version
java version “1.8.0_361”
Java(TM) SE Runtime Environment (build 1.8.0_361-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.361-b26, mixed mode)
[oracle@ORA_SRVR bin]$
Step 11) Start the oem agent
[oracle@ORA_SRVR bin]$ cd /u00/app/oracle/product/agent_13_5/agent_13.5.0.0.0/bin
[oracle@ORA_SRVR bin]$ ./emctl start agent
Oracle Enterprise Manager Cloud Control 13c Release 5
Starting agent ……………………………… started.
[oracle@ORA_SRVR bin]$
Step 12) Verify the status of oem agent
[oracle@ORA_SRVR bin]$ ./emctl status agent
Oracle Enterprise Manager Cloud Control 13c Release 5
—————————————————————
Agent Version : 13.5.0.0.0
OMS Version : 13.5.0.0.0
Protocol Version : 12.1.0.1.0
Agent Home : /u00/app/oracle/product/agent_13_5/agent_inst
Agent Log Directory : /u00/app/oracle/product/agent_13_5/agent_inst/sysman/log
Agent Binaries : /u00/app/oracle/product/agent_13_5/agent_13.5.0.0.0
Core JAR Location : /u00/app/oracle/product/agent_13_5/agent_13.5.0.0.0/jlib
Agent Process ID : 153175
Parent Process ID : 152892
Agent URL : https://ORA_SRVR:3872/emd/main/
Local Agent URL in NAT : https://ORA_SRVR:3872/emd/main/
Repository URL : https://OEM:4903/empbs/upload
Started at : 2023-03-13 07:44:26
Started by user : oracle
Operating System : Linux version 3.10.0-1160.76.1.el7.x86_64 (amd64)
Number of Targets : 64
Last Reload : (none)
Last successful upload : 2023-03-13 07:45:24
Last attempted upload : 2023-03-13 07:45:24
Total Megabytes of XML files uploaded so far : 0.19
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 9.72%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2023-03-13 07:44:51
Last successful heartbeat to OMS : 2023-03-13 07:44:51
Next scheduled heartbeat to OMS : 2023-03-13 07:45:51
—————————————————————
Agent is Running and Ready
[oracle@ORA_SRVR bin]$
See Also: