Skip to Main Content

ORDS, SODA & JSON in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORDS install Error

jangkookAug 21 2021

Hi,
I trying to install two ORDS 19.4 server on MS WIN Server to connect one DB 19C server on Linux Server.
one standalone ORDS of inside network for inside employees did well installed and works fines.
and i'm try to install another standalone ORDS on Firewall for outside employees.
but, i faced some errors in install stage and Connect error is as follows.
-------------------
2021-08-21 20:40:00.360:INFO::main: Logging initialized @14871ms to org.eclipse.jetty.util.log.StdErrLog
2021-08-21T11:40:00.548Z INFO HTTP and HTTP/2 cleartext listening on host: localhost port: 8080
2021-08-21T11:40:00.610Z INFO Disabling document root because the specified folder does not exist: C:\Oracle\ORDS19_SIDB\ords\standalone\doc_root
2021-08-21 20:40:01.204:INFO:oejs.Server:main: jetty-9.4.24.v20191120; built: 2019-11-22T11:09:44.612Z; git: 8b8c80157294e38f81ef8ea2358a0c49bf5db918; jvm 16.0.2+7-67
2021-08-21 20:40:01.224:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2021-08-21 20:40:01.224:INFO:oejs.session:main: No SessionScavenger set, using defaults
2021-08-21 20:40:01.239:INFO:oejs.session:main: node0 Scavenging every 600000ms
2021-08-21T11:40:21.504Z SEVERE IO Error: 연결된 구성원으로부터 응답이 없어 연결하지 못했거나, 호스트로부터 응답이 없어 연결이 끊어졌습니다, Authentication lapse 0 ms.,|apex||-2021-08-21T11:40:02.020981700Z,jdbc:oracle:thin:@//123.456.789.222:1521/SIDBD
2021-08-21T11:40:21.520Z SEVERE IO Error:: The pool named: |apex|| is invalid and will be ignored: The connection pool named: |apex|| is not correctly configured, due to the following error(s): IO Error: The Network Adapter could not establish the connection , Authentication lapse 0 ms.
2021-08-21T11:40:40.515Z SEVERE IO Error: The pool named: |apex|| is invalid and will be ignored: The connection pool named: |apex|| is not correctly configured, due to the following error(s): IO Error: The Network Adapter could not establish the connection , , Authentication lapse 0 ms.,|apex|al|-2021-08-21T11:40:21.520479100Z,jdbc:oracle:thin:@//123.456.789.222:1521/SIDBD
-------------------------------------
It's a Korean error message, but I think you can understand it.
TNSPING is ok, Connection by SQLPLUS is ok.
only JDBC Connection through ORDS install is failed.
Please let me know your guidance.

Thx.
SK.

Comments

Gbenga Ajakaye

What bit is your sql developer (32 or 64bit)? This error happens when you have a Driver that is 32 bit, but your SQL Developer install has a 64 Bit JDK.

If that's the case, then you'll need to install a 64 bit Client Driver to match your sql developer 64 bit JDK .

thatJeffSmith-Oracle

that's usually a different error, and it's kinda hard to get a 32 bit java going on a mac, but always good to check to make sure

cj.travis

What is the most efficient way to verify the architecture (32v64) of SQL Developer on OS X?  The driver client libraries are 64bit.

Gary Graham-Oracle

From what you posted, it seems that java.library.path does not begin with contain the instant client location as required by the message...

Check it to verify that  the expected native library directory /Applications/instantclient_12_1 is present and precedes any other client installations.

I don't have a Mac, but under Windows we solve this by prepending the PATH environment variable with the instant client, but which you show as being the third directory...

# echo $PATH

/opt/local/bin:/opt/local/sbin:/Applications/instantclient_12_1:..

cj.travis

Hi Gary.  Thanks for the response.  I updated the $PATH again to ensure the instant client path was first and tried again, producing the same results.  It's as if SQL Developer isn't picking up the path properly.

Path:

[11:08 AM]    cjtravis@MBP01   ~

# echo $PATH

/Applications/instantclient_12_1:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Results:

Testing the Instant Client located at /Applications/instantclient_12_1

Testing client directory ... OK

Testing loading Oracle JDBC driver ... OK

Testing checking Oracle JDBC driver version ... OK

  Driver version: 12.1.0.2.0

Testing testing native OCI library load ... Failed:

  Error loading the native OCI library

  The native OCI driver could not be loaded. The system propertyjava.library.path contains the entries from the environment variable DYLD_LIBRARY_PATH. Check it to verify that

  the expected native library directory /Applications/instantclient_12_1 is present and precedes any other client installations.

  java.library.path = /Users/cjtravis/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.

Gary Graham-Oracle

It's as if SQL Developer isn't picking up the path properly.

So it would seem -- very strange.  If you check the jdbc.library property in Help > About > Properties does it point to an ojdbc jar file in your SQL Developer installation or to somewhere else? 

Since I only have access to Windows and Oracle Linux I may not be of much more help. I did notice, however, that the instant client install example used the home directory rather than /Applications. You might review your install steps.

cj.travis

Looks like it points to a valid jar to me. I've always kept it in /Applications to prevent myself from accidentally dropping the folder in the future. I don't *think* being in the /Applications directory would impact this sort of thing, much like on Linux.

Screenshot 2016-11-30 12.41.54.png

cj.travis

On my prior post I began to ponder how it seemed like SQL Developer wasn't "picking up" the DYLD_LIBRARY_PATH although I had it set as an environment variable. I decided to take a look at the shell script responsible for launching the application to see if it offered any hints.

On my local device this is located at: /Applications/SQLDeveloper 4.1.1.app/Contents/MacOS

In this directory is the script sqldeveloper.sh with the following contents:

#!/bin/bash

export JAVA_HOME=`/usr/libexec/java_home -v 1.8`

here="${0%/*}"

cd "${here}"

cd ../Resources/sqldeveloper/sqldeveloper/bin

bash ./sqldeveloper >>/dev/null

I added the variable for DYLD_LIBRARY_PATH (line 04) on a whim and gave it another shot:

#!/bin/bash

export JAVA_HOME=`/usr/libexec/java_home -v 1.8`

export DYLD_LIBRARY_PATH=/Applications/instantclient_12_1

here="${0%/*}"

cd "${here}"

cd ../Resources/sqldeveloper/sqldeveloper/bin

bash ./sqldeveloper >>/dev/null

After launching SQL Developer things appear to be working!

Testing Results:

Testing the Instant Client located at /Applications/instantclient_12_1

Testing client directory ... OK

Testing loading Oracle JDBC driver ... OK

Testing checking Oracle JDBC driver version ... OK

Driver version: 12.1.0.2.0

Testing testing native OCI library load ... OK

Success!

Property validation:

Screenshot 2016-11-30 13.42.04.png

And hey, the password reset prompt works, too!

Screenshot 2016-11-30 13.50.42.png

Thanks for the help and feedback today -- much appreciated!

Gary Graham-Oracle

Thanks for the feedback -- it helps us learn, too.  It looks like this may be the explanation:

https://github.com/oracle/node-oracledb/issues/231

Which may be why I also ran across some blogs describing how to get Oracle Instant Client SQL*Plus and other features to work without setting DYLD_LIBRARY_PATH at all.

John McGinnis-Oracle

There is an easier way to get InstantClient 12.1 to work on the Mac - one that does not involve editing any files inside the SQLDeveloper.app file.

At startup, SQL Developer will read an additional configuration file from the user's home directory. We look for the file ~/.sqldeveloper/<version>/sqldeveloper.conf. By default this file doesn't exist, but it can be created to specify additional user-specific configuration options. You can find the exact path that SQL Developer is expecting by looking at the tool.user.conf property value in the Properties tab of the About Box.

As I mentioned, this file probably doesn't exist. So create the file and add the following line to it:

AddVMOption -Djava.library.path=<instant client directory>

This will explicitly set the java.library.path to the instant client directory. SQL Developer will now be able to load the OCI libraries.

A couple of caveats:

  1. The Test button in the Oracle Home configuration dialog won't work correctly. It's trying to use the default java.library.path, and not the path that SQL Developer is actually using. That's something we'll need to fix in a future release.
  2. The default entries in the java.library.path are not going to be present. In the majority of cases, that won't be an issue, as those directories are likely empty or don't even exist. The libraries Java needs are on a different path, so only third-party libraries should be using the default directories.

I tested this with 4.1.5 on El Capitan (10.11.6), but it should work on Yosemite or Sierra and with 4.1.3 or the Early Access release of 4.2

- John

SQL Developer Team

1 - 10

Post Details

Added on Aug 21 2021
8 comments
364 views