Essbase: Error when compiling Essbase C API Program along with Oracle Call Interface (OCI) API part of with Oracle 12 database client . oracle/v121/client1_x64/lib/libclntsh.so.12.1: undefined reference to `ons_shutdown_wtimeout_ctx'

(Doc ID 2373041.1)

Last updated on MARCH 16, 2018

Applies to:

Hyperion Essbase - Version 11.1.2.4.000 and later
Linux x86-64

Symptoms

Essbase C API Programs can be combined with Oracle client OCI programs by installing Oracle Instant Client or Oracle Database client.  For example the Oracle Instant Client is available at: http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html

The Oracle Database client 12 being installed in this setup:

The LD_LIBRARY_PATH has the EPM library first followed by instant client for Oracle 12 database client. ie.,

export LD_LIBRARY_PATH=Oracle/Middleware/EPMSystem11R1/lib:Iinstantclient_12_2/lib:$LD_LIBRARY_PATH


When compiling the OCI Sample program using Oracle Database 12 client library along with Essbase 11.1.2.4 C API code on Essbase Server running on UNIX, it throws below error:

essbase >  gcc -Iinstantclient_12_2/include -Linstantclient_12_2/lib -locilib ocilib_demo.c

collect2: ld returned 1 exit status
Iinstantclient_12_2/lib/libclntsh.so.12.1: undefined reference to 'ons_subscriber_create_wtimeout_ctx'
Iinstantclient_12_2/lib/libclntsh.so.12.1: undefined reference to 'ons_init_wconfig_ctx'
Iinstantclient_12_2/lib/libclntsh.so.12.1: undefined reference to 'ons_shutdown_wtimeout_ctx'
Iinstantclient_12_2/lib/libclntsh.so.12.1: undefined reference to 'ons_error_set'
Iinstantclient_12_2/lib/libclntsh.so.12.1: undefined reference to 'ons_thread_stacksize'


Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms