External Procedure Call Fails With: ORA-06522 When Using the EXTPROC.ORA Configuration File Instead of the Listener
Last updated on SEPTEMBER 27, 2017
Applies to:PL/SQL - Version 184.108.40.206 and later
Information in this document applies to any platform.
*** Checked for relevance on 14th Aug 2017 ***
Running external procedure that depends on another shared library (.so/sl) or dynamic link library (.dll) in case of Windows, fails when it tries to load the dependent library even when the LD_LIBRARY_PATH is set in extproc.ora (and/or in the listener.ora if listener configuration is used) to correct location.
The following example, when run, fails with ORA-06520/ORA-06522 error.
1) Save below file as "doubleit_internal.c" and generate a shared library for it either by using the Oracle provided make file located at $ORACLE_HOME/rdbms/demo/demo_rdbms.mk or using custom command. For E.g:
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