My Oracle Support Banner

Java.lang.UnsatisfiedLinkError: No Ocijdbc21 In Java.library.path only with ORDS silent installation (Doc ID 2769657.1)

Last updated on APRIL 19, 2021

Applies to:

Oracle REST Data Services - Version 20.2 and later
Information in this document applies to any platform.

Symptoms

On : 20.4 version

While installing ORDS with silent mode :

java -jar ords.war install --silent --parameterFile /<folder path>/params/ords_params.properties

the following error occurs only with silent installation and not with other options :


ERROR
-----------------------

java.lang.UnsatisfiedLinkError: no ocijdbc21 in java.library.path


Exception in thread "main" java.lang.reflect.InvocationTargetException
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at oracle.dbtools.jarcl.Entrypoint.invoke(Entrypoint.java:66)
  at oracle.dbtools.jarcl.Entrypoint.main(Entrypoint.java:77)
Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc21 in java.library.path
  at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
  at java.lang.Runtime.loadLibrary0(Runtime.java:870)
  at java.lang.System.loadLibrary(System.java:1122)
  at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:4481)
  at java.security.AccessController.doPrivileged(Native Method)
  at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:4479)
  at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:504)
  at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:1032)
  at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:84)
  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:681)
  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:602)
  at java.sql.DriverManager.getConnection(DriverManager.java:664)
  at java.sql.DriverManager.getConnection(DriverManager.java:208)
  at oracle.dbtools.installer.config.UserConnectBase.validateBequeathConnect(UserConnectBase.java:338)
  at oracle.dbtools.installer.config.UserConnect.privilegedUserConnect(UserConnect.java:

Changes

 

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
Changes
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.