Hi All

I have created a C library called SendHost.dll
The code of SendHost.dll is as follows.

#include<stdio.h>
int i;
int SendHost(char *cmd)
{
i = system(*cmd);
return i;
}

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)
AS EXTERNAL
NAME "SendHost" --function name in c file
LIBRARY lib_mtb --Library name
LANGUAGE C
PARAMETERS(cmd string);
/

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

Any Help would be of great use.
Thanks in Advance