IBM Support

Java failure when installing Data Protection for Oracle

Troubleshooting


Problem

Data Protection for Oracle installation fails with "No Java virtual machine could be found from your PATH environment variable".

Symptom

The Data Protection for Oracle install failed with the following error:

Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
No Java virtual machine could be found from your PATH
environment variable. You must install a VM prior to
running this program.

Resolving The Problem

Since JRE is normally installed with the Oracle Server installation, such that JRE in the Oracle installation directory can be used for the Data Protection for Oracle installation. The procedure below can be followed:


#1. log in as root

#2. find the JRE in the Oracle installation directory
type in:
find / -name java -exec ls -l {} \; 2>/dev/null | grep oracle

Sample outputs:
#find / -name java -exec ls -l {} \; 2>/dev/null | grep oracle
drwxr-xr-x 3 orale dba 4096 Sep 17 2014 oracle
-rwxr-xr-x 1 oracle dba 66328 Oct 31 2011 /u03/app/oracle/product/11.2.0/db_1/jdk/bin/java
-rwxr-xr-x 1 oracle dba 66328 Oct 31 2011 /u03/app/oracle/product/11.2.0/db_1/jdk/jre/bin/java

#3. Set the PATH Variable to include JRE
type in:
export PATH=$PATH:/u03/app/oracle/product/11.2.0/db_1/jdk/jre/bin

#4. Verify if the JRE has been set in the PATH
type in:
env | grep jre

Sample outputs:
PATH=/usr/local/scripts:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/admin/bin:/usr/local/bin:/u03/app/oracle/product/11.2.0/db_1/jdk/jre/bin

#5. Verify if the JRE can be found from the PATH by checking the java version
type in:
java -version

Sample outputs:
# java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

#6. Perform the Data Protection for Oracle installation to completion
Sample outputs:
root# ./TDP-Oracle.x86_64.bin
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
...
Launching installer...

...
===================================================================
Installation Complete
---------------------

Congratulations. IBM Tivoli Storage Manager for Databases - Data Protection for
Oracle has been successfully installed to:

/opt/tivoli/tsm/client/oracle

PRESS <ENTER> TO EXIT THE INSTALLER:

[{"Product":{"code":"SSER7G","label":"IBM Spectrum Protect for Databases"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Data Protection for Oracle","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"}],"Version":"6.3;6.3.1;7.1;7.1.1;7.1.2;7.1.3","Edition":"","Line of Business":{"code":"LOB26","label":"Storage"}}]

Document Information

Modified date:
17 June 2018

UID

swg21979648