My Oracle Support Banner

External Procedure Call Fails With: ORA-06522 When Using the EXTPROC.ORA Configuration File Instead of the Listener (Doc ID 1256784.1)

Last updated on FEBRUARY 03, 2022

Applies to:

PL/SQL - Version and later
Information in this document applies to any platform.


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/ or using custom command. For E.g:




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

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