Briefly
- Load C procedures or Java Classes
- To load C procedures,
- Set Up the Environment
- set the parameter extproc by default, in the configuration files tnsnames.ora and listener.ora.
- Start a listener process exclusively for external procedures.
- If the agent will run in multithreaded mode, start the
agent using the agent control utility startup command.
In the OS shell prompt:
agtctl startup extproc agent_sid
- Identify the DLL, using CREATE LIBRARY
- Publish the External Procedure, CREATE FUNCTION or CREATE
PROCEDURE. For example:
FUNCTION SEND(Host VARCHAR2, Port VARCHAR2, sMsg VARCHAR2, rMsg IN OUT VARCHAR2 ) RETURN BINARY_INTEGER AS EXTERNAL LIBRARY MYXXXLIB NAME "SendAndReceive" LANGUAGE C PARAMETERS (Host BY REFERENCE, Port BY REFERENCE, sMsg BY REFERENCE, rMsg BY REFERENCE);
- Set Up the Environment
- To load C procedures,