Specify the AGENT clause if you want external procedures to be run from a database link other than the server. Oracle Database will use the database link specified by agent_dblink to run external procedures. If you omit this clause, the default agent on the server (extproc) will run external procedures.
Examples
Creating a Library: Examples The following statement creates library ext_lib:
CREATE LIBRARY ext_lib AS '/OR/lib/ext_lib.so';
/
The following statement re-creates library ext_lib:
CREATE OR REPLACE LIBRARY ext_lib IS '/OR/newlib/ext_lib.so';
/
Specifying an External Procedure Agent: Example The following example creates a library app_lib and specifies that external procedures will be run from the public database sales.hq.acme.com:
CREATE LIBRARY app_lib as '${ORACLE_HOME}/lib/app_lib.so'
AGENT 'sales.hq.acme.com';
/