My Oracle Support Banner

Oracle Database/Client 11.2.0.4 on RHEL/OL 8.x : OUI fails to launch with Errors "There was an error trying to initialize the HPI library.........Could not create the Java virtual machine" (Doc ID 2889673.1)

Last updated on JULY 20, 2024

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 and later
Linux x86-64

Symptoms

 While installing Oracle Database/Client 11.2.0.4 on RHEL/OL 8.x, OUI fails to launch with below errors-

-------------------------------------------------------
Initializing Java Virtual Machine from /tmp/OraInstall2022-08-14_07-43-16AM/jdk/jre/bin/java. Please wait...
There was an error trying to initialize the HPI library.
Please check your installation, HotSpot does not work correctly
when installed in the JDK 1.2 Linux Production Release, or
with any JDK 1.1.x release.
Could not create the Java virtual machine.

Java from the staging location is failing to launch-

$ /tmp/OraInstall2022-08-14_07-43-16AM/jdk/jre/bin/java -version
There was an error trying to initialize the HPI library.
Please check your installation, HotSpot does not work correctly
when installed in the JDK 1.2 Linux Production Release, or
with any JDK 1.1.x release.
Could not create the Java virtual machine.

OS Trace of the java command shows following lines-

89116 openat(AT_FDCWD, "/tmp/OraInstall2022-08-14_07-43-16AM/jdk/jre/lib/amd64/server/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
89116 openat(AT_FDCWD, "/tmp/OraInstall2022-08-14_07-43-16AM/jdk/jre/lib/amd64/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
89116 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
89116 fstat(3, {st_mode=S_IFREG|0644, st_size=54311, ...}) = 0
89116 mmap(NULL, 54311, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f2423345000
89116 close(3) = 0
89116 openat(AT_FDCWD, "/lib64/tls/x86_64/x86_64/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
89116 stat("/lib64/tls/x86_64/x86_64", 0x7ffff97a01a0) = -1 ENOENT (No such file or directory)
89116 openat(AT_FDCWD, "/lib64/tls/x86_64/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
89116 stat("/lib64/tls/x86_64", 0x7ffff97a01a0) = -1 ENOENT (No such file or directory)
89116 openat(AT_FDCWD, "/lib64/tls/x86_64/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
89116 stat("/lib64/tls/x86_64", 0x7ffff97a01a0) = -1 ENOENT (No such file or directory)
89116 openat(AT_FDCWD, "/lib64/tls/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

===============CONT'D==========================================================

89116 openat(AT_FDCWD, "/usr/lib64/tls/x86_64/x86_64/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
89116 stat("/usr/lib64/tls/x86_64/x86_64", 0x7ffff97a01a0) = -1 ENOENT (No such file or directory)
89116 openat(AT_FDCWD, "/usr/lib64/tls/x86_64/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
89116 stat("/usr/lib64/tls/x86_64", 0x7ffff97a01a0) = -1 ENOENT (No such file or directory)
89116 openat(AT_FDCWD, "/usr/lib64/tls/x86_64/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
89116 stat("/usr/lib64/tls/x86_64", 0x7ffff97a01a0) = -1 ENOENT (No such file or directory)
89116 openat(AT_FDCWD, "/usr/lib64/tls/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
89116 stat("/usr/lib64/tls", {st_mode=S_IFDIR|0555, st_size=6, ...}) = 0
89116 openat(AT_FDCWD, "/usr/lib64/x86_64/x86_64/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
89116 stat("/usr/lib64/x86_64/x86_64", 0x7ffff97a01a0) = -1 ENOENT (No such file or directory)
89116 openat(AT_FDCWD, "/usr/lib64/x86_64/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
89116 stat("/usr/lib64/x86_64", 0x7ffff97a01a0) = -1 ENOENT (No such file or directory)
89116 openat(AT_FDCWD, "/usr/lib64/x86_64/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
89116 stat("/usr/lib64/x86_64", 0x7ffff97a01a0) = -1 ENOENT (No such file or directory)
89116 openat(AT_FDCWD, "/usr/lib64/libnsl.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
89116 stat("/usr/lib64", {st_mode=S_IFDIR|0555, st_size=98304, ...}) = 0
89116 munmap(0x7f2423345000, 54311) = 0
89116 munmap(0x7f2423353000, 1092216) = 0
89116 write(1, "There was an error trying to ini"..., 57) = 57
89116 write(1, "Please check your installation, "..., 64) = 64
89116 write(1, "when installed in the JDK 1.2 Li"..., 59) = 59
89116 write(1, "with any JDK 1.1.x release.\n", 28) = 28
89116 write(2, "Could not create the Java virtua"..., 43) = 43
89116 exit_group(1) = ?
89116 +++ exited with 1 +++

 

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.