I have created a C library called SendHost.dll
The code of SendHost.dll is as follows.
int SendHost(char *cmd)
i = system(*cmd);
I have created a Oracle library as indicated
create library lib_mtb is 'c:\SendHost.dll';
Finally i have create a procedure as indicated.
CREATE OR REPLACE PROCEDURE PR_SHELL(cmd IN VARCHAR2)
NAME "SendHost" --function name in c file
LIBRARY lib_mtb --Library name
When i execute this procedure, i get the following error.
ERROR at line 1:
ORA-28575: unable to open RPC connection to external procedure agent
ORA-06512: at "SIEBELETL.PR_SHELL", line 0
ORA-06512: at line 1