Skip to main content
GoldenGate

How to update JDK version on Golden Gate Home

By March 16, 2022August 28th, 2022No Comments3 min read

To meet the industry compliance, it is necessary to update the JDK/Java version to all the Oracle Products. Similarly, the compliance team reached out since the Golden Gate related JDK version is outdated. 

First, review the available Java versions for Golden Gate using the two below useful MOS notes. 

How To Update JDK For Golden Gate $OGG_HOME/jdk? (Doc ID 2803652.1)

Patch 33017614: Oracle SERVER JRE 8 Update 301 b32

Download the latest and recommended patch from Oracle Support & Copy the patch file to the target server. 

$ scp server-jre-8u301-linux-x64.tar.gz  nbasha@ORA-X1:/tmp/

nbasha@ORA-X1's password: 

server-jre-8u301-linux-x64.tar.gz             100%   53MB   1.6MB/s   00:33    

$

Extract the patch tar file in the working directory as below. 

ORA-X1:(oracle):PRODS:/u04/backup/install/working/java_18301> tar -xvf server-jre-8u301-linux-x64.tar.gz 

jdk1.8.0_301/

jdk1.8.0_301/COPYRIGHT

jdk1.8.0_301/LICENSE

jdk1.8.0_301/README.html

jdk1.8.0_301/THIRDPARTYLICENSEREADME.txt

jdk1.8.0_301/bin/

jdk1.8.0_301/bin/java-rmi.cgi

jdk1.8.0_301/bin/idlj

jdk1.8.0_301/bin/extcheck

jdk1.8.0_301/bin/jar

jdk1.8.0_301/bin/jarsigner

jdk1.8.0_301/bin/javac

jdk1.8.0_301/bin/jdeps

jdk1.8.0_301/bin/jps



.

jdk1.8.0_301/man/ja_JP.UTF-8/man1/schemagen.1

jdk1.8.0_301/man/ja_JP.UTF-8/man1/wsgen.1

jdk1.8.0_301/man/ja_JP.UTF-8/man1/wsimport.1

jdk1.8.0_301/man/ja_JP.UTF-8/man1/xjc.1

jdk1.8.0_301/man/ja

jdk1.8.0_301/release

ORA-X1:(oracle):PRODS:/u04/backup/install/working/java_18301> ls -ltr

total 54160

drwxr-x--- 8 oracle oinstall     4096 Jul  2  2021 jdk1.8.0_301

-rwxr-x--- 1 oracle oinstall 55453537 Jul 27 22:20 server-jre-8u301-linux-x64.tar.gz

ORA-X1:(oracle):PRODS:/u04/backup/install/working/java_18301> 

 

You will observe the above folder, “jdk1.8.0_301,” or as per the version you downloaded. 

Now the existing JDK folder, you remove it or rename it and then copy the JDK files to the target location as below. 

 

ORA-X1:(oracle):PRODS:/u01/app/oracle/product/OGG_19.1.0/ogghome_1/jdk> cp -r /u04/backup/install/working/java_18301/jdk1.8.0_301/* . 

ORA-X1:(oracle):PRODS:/u01/app/oracle/product/OGG_19.1.0/ogghome_1/jdk> ls -ltr

total 24

-r--r----- 1 oracle oinstall 3244 Jul 27 22:27 COPYRIGHT

drwxr-x--- 2 oracle oinstall 4096 Jul 27 22:27 bin

drwxr-x--- 3 oracle oinstall  125 Jul 27 22:27 include

drwxr-x--- 5 oracle oinstall  134 Jul 27 22:27 jre

drwxr-x--- 3 oracle oinstall   16 Jul 27 22:27 legal

drwxr-x--- 3 oracle oinstall  135 Jul 27 22:27 lib

-r--r----- 1 oracle oinstall   44 Jul 27 22:27 LICENSE

-r--r----- 1 oracle oinstall  190 Jul 27 22:27 THIRDPARTYLICENSEREADME.txt

-rw-r----- 1 oracle oinstall  486 Jul 27 22:27 release

-r--r----- 1 oracle oinstall  159 Jul 27 22:27 README.html

drwxr-x--- 4 oracle oinstall   44 Jul 27 22:27 man

ORA-X1:(oracle):PRODS:/u01/app/oracle/product/OGG_19.1.0/ogghome_1/jdk> 

 

Verify the Java Version from the Golden Gate Home. 

 

ORA-X1:(oracle):PRODS:/u01/app/oracle/product/OGG_19.1.0/ogghome_1/jdk/bin> ./java -version

java version "1.8.0_301"

Java(TM) SE Runtime Environment (build 1.8.0_301-b32)

Java HotSpot(TM) 64-Bit Server VM (build 25.301-b32, mixed mode)

ORA-X1:(oracle):PRODS:/u01/app/oracle/product/OGG_19.1.0/ogghome_1/jdk/bin> 

Tip: Before you copy the JDK version, it is highly recommended to stop the Golden Gate. 

Leave a Reply