IBM®
Skip to main content
    Country/region [select]      Terms of use
 
 
    
     Home      Products      Services & solutions      Support & downloads      My account     
 
developerworks > My developerWorks >  Dashboard > Information Management > ... > DB2 UDB V8.2 Validated Linux Environments > IBM Java 2 instructions
developerWorks
Log In   View a printable version of the current page.
Overview Connect Spaces Forums Wikis
IBM Java 2 instructions
Added by irina, last edited by LingLiu on Sep 23, 2008  (view change)
Labels: 
(None)

IBM Java 2 instructions

Information Management Business Partner Programs
DB2 Solution Portal

DB2 Business Partner Directory
DB2 Solutions Directory
DB2 Consultant Services
IBM DB2 User Group
Publications
DB2 for Linux: Supported Environments
Join the Solution Portal

 

IBM Java Update / Installation Instructions

Please check for newer IBM Java versions and download the appropriate RPM-package for you architecture. For a newer version of Java for Linux on Itanium (IA64), please contact IBM Support.

Note: Before you start make sure your DB2 instances are shut down.

For all of the following steps, please obtain a shell with root privileges.


 

Finding and uninstalling older Java RPM packages

Find the Java JDK / SDK / JRE packages, which might influence with the installation of the new package installation:

rpm -qa | grep -i java

Uninstall the needed packages:

rpm -e <package name>

 


 

Updating an existing Java installation

First install the newer IBM Java package:

rpm -ivh <package file>

 


 

Installing DB2 via db2setup with a newer IBM Java

1. Set the following environment variables:

export DB2USELOCALJRE=TRUE
export JAVA_HOME=
(e.g.: export JAVA_HOME=/opt/IBMJava2-142)

2. Launch db2setup from the same shell

 


 

Updating the instance database manager

Note: Only necessary if an instance exists on the system.

Identify all instances with the same bitness as the newly installed Java package. Update the database manager configuration for each DB2 instance to use this kit instead of the default value.

Then update the database manager configuration for each DB2 instance to use this kit instead of the default value.

e.g.: db2 update dbm cfg using JDK_PATH /opt/IBMJava2-142

The path specified in this example is the base installation folder of the installed Java 1.4.2 package. If different from above this can be found out by listing the content of the installed Java package:

rpm -ql <package name>
Search Directory

 


 
    About IBM Privacy Contact