Java Patching on ORACLE_HOME.

Java Patching on ORACLE_HOME…

Apply Java Patch Quarterly on ORACLE_HOME /GRID_HOME  to fix vulnerabilities

Same patch number will be applied on GRID_HOME  link < Error while applying java patch on GRID HOME>

 

Details :

  • Reboot required: No
  • Oracle Version :19c
  • Patch Number: 34777391 (Number will be changed quarterly)

 

Step 1) Take pre image of java version

Preimage of JDK version

[oracle@ORA_SRVR db_1]$ cd $ORACLE_HOME/jdk

[oracle@ORA_SRVR jdk]$./java -version

Step 2) Take backup of Jdk directory

[oracle@ORA_SRVR ~]$ cd /u00/app/oracle/product/19c/db_1

[oracle@ORA_SRVR ~]$ cp -RP jdk jdk_bkp_2309

[oracle@ORA_SRVR ~]$

Step 3)  To be applied Patch details

[oracle@ORA_SRVR ~]$ cd /u00/software/JAVA_PATCH/19C/

[oracle@ORA_SRVR 19C]$ ls -lrt

total 361076

-rw-r—– 1 oracle dba 125203135 Jul 16  2021 p32490416_190000_Linux-x86-64.zip

-rw-r—– 1 oracle dba 125784773 Aug  9  2021 p32918394_190000_Linux-x86-64.zip

drwxr-xr-x 4 oracle dba        67 Jan 11 00:42 34777391

-rw-rw-r– 1 oracle dba      2475 Jan 17 10:35 PatchSearch.xml

-rw-r—– 1 oracle dba 118742187 Jan 23 04:59 p34777391_190000_Linux-x86-64.zip

[oracle@ORA_SRVR 19C]$

Step 4) Verify opatch version

[oracle@ORA_SRVR OPatch]$ pwd

/u00/app/oracle/product/19c/db_1/OPatch

[oracle@ORA_SRVR OPatch]$

[oracle@ORA_SRVR OPatch]$ ./opatch version

OPatch Version: 12.2.0.1.36

OPatch succeeded.

[oracle@ORA_SRVR OPatch]$

Step 5) Change directory to patch software

[oracle@ORA_SRVR ~]$ cd /u00/software/JAVA_PATCH/19C/

[oracle@ORA_SRVR 19C]$ ls -lrt

total 361076

-rw-r—– 1 oracle dba 125203135 Jul 16  2021 p32490416_190000_Linux-x86-64.zip

-rw-r—– 1 oracle dba 125784773 Aug  9  2021 p32918394_190000_Linux-x86-64.zip

drwxr-xr-x 4 oracle dba        67 Jan 11 00:42 34777391

-rw-rw-r– 1 oracle dba      2475 Jan 17 10:35 PatchSearch.xml

-rw-r—– 1 oracle dba 118742187 Jan 23 04:59 p34777391_190000_Linux-x86-64.zip

[oracle@ORA_SRVR 19C]$ cd 34777391/

[oracle@ORA_SRVR 34777391]$

[oracle@ORA_SRVR 34777391]$

Step 6) set the environment

[oracle@ORA_SRVR 34777391]$ export ORACLE_HOME=/u00/app/oracle/product/19c/db_1

[oracle@ORA_SRVR 34777391]$ export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH

[oracle@ORA_SRVR 34777391]$

Step 7) Verify the pre-requisites

[oracle@ORA_SRVR 34777391]$ opatch prereq CheckConflictAgainstOHWithDetail -ph ./

Oracle Interim Patch Installer version 12.2.0.1.36

PREREQ session

 

Oracle Home       : /u00/app/oracle/product/19c/db_1

Central Inventory : /u00/app/oraInventory

from           : /u00/app/oracle/product/19c/db_1/oraInst.loc

OPatch version    : 12.2.0.1.36

OUI version       : 12.2.0.7.0

Log file location : /u00/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2023-01-23_09-04-41AM_1.log

 

Invoking prereq “checkconflictagainstohwithdetail”

 

Prereq “checkConflictAgainstOHWithDetail” passed.

OPatch succeeded.

[oracle@ORA_SRVR 34777391]$

Step 8) Apply the Patch

[oracle@ORA_SRVR 34777391]$ ls -ld $ORACLE_HOME/jdk

drwxr-xr-x 7 oracle dba 247 Jun 15  2022 /u00/app/oracle/product/19c/db_1/jdk

[oracle@ORA_SRVR 34777391]$

 

 [oracle@ORA_SRVR 34777391]$ opatch apply

Oracle Interim Patch Installer version 12.2.0.1.36

 

Oracle Home       : /u00/app/oracle/product/19c/db_1

Central Inventory : /u00/app/oraInventory

from           : /u00/app/oracle/product/19c/db_1/oraInst.loc

OPatch version    : 12.2.0.1.36

OUI version       : 12.2.0.7.0

Log file location : /u00/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2023-01-23_09-06-16AM_1.log

 

Verifying environment and performing prerequisite checks…

OPatch continues with these patches:   34777391

 

Do you want to proceed? [y|n]

y

User Responded with: Y

All checks passed.

Backing up files…

Applying interim patch ‘34777391’ to OH ‘/u00/app/oracle/product/19c/db_1’

ApplySession: Optional component(s) [ oracle.jdk, 1.8.0.191.0 ]  not present in the Oracle Home or a higher version is found.

Patching component oracle.jdk, 1.8.0.201.0…

Patch 34777391 successfully applied.

Log file location: /u00/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2023-01-23_09-06-16AM_1.log

 

OPatch succeeded.

[oracle@ORA_SRVR 34777391]$

 

While patch apply is in progress monitor patchlog

tail -f /u00/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2023-01-23_09-06-16AM_1.log

Step 9)Post image of JDK version

 [oracle@ORA_SRVR 34777391]$ cd $ORACLE_HOME/jdk

[oracle@ORA_SRVR jdk]$./java -version

 

See Also: