Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: ORA-06521: PL/SQL: Error mapping function

Re: ORA-06521: PL/SQL: Error mapping function

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Sat, 08 Apr 2006 15:04:59 +0200
Message-ID: <15df32lbss1eptnbta95kh328habqk33sn@4ax.com>


On 8 Apr 2006 05:17:27 -0700, "Vladimir M. Zakharychev" <vladimir.zakharychev_at_gmail.com> wrote:

>>create or replace procedure shell(cmd IN varchar2)
>>as external
>>...
>>I still can't see the resultset coming out of the following code -
>>
>>
>>extern "C"__declspec(dllexport) void shell(const char *cmd)
>>{
>> int num = system(cmd);
>>}
>>
>
>And what kind of result set you are expecting from this code?
>It's a PROCEDURE, not a FUNCTION, and it doesn't have any
>OUT arguments, so it doesn't return anything. Or do you mean
>that cmd is not executed?
>
>Hth,
> Vladimir M. Zakharychev
> N-Networks, makers of Dynamic PSP(tm)
> http://www.dynamicpsp.com

Obviously the printf function has output for stdout. Now my guess is stdout for external procedures just equates /dev/null. At least, the procedure is run at the server...

--
Sybrand Bakker, Senior Oracle DBA
Received on Sat Apr 08 2006 - 08:04:59 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US