Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> call an arbitrary operating system command from PL/SQL
I am tring to call an arbitrary operating system command from PL/SQL, and so
enables the calling of shell scripts, or other commands from Oracle store
procedure. When, I call extern C routine I get message that: PL/SQL
procedure successfully completed, but nothing hapend on system???
Procedure is really simple, only call system command:
DECLARE
cmd varchar2(200);
BEGIN cmd := '/bin/touch /tmp/xxx';
execute_cmd(cmd);
dbms_output.put_line('cmd '|| cmd);
END; with regards
ilica
"If A is a success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut." Received on Tue Jul 09 2002 - 14:31:38 CDT
![]() |
![]() |