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: Run Stored Procedures from Shell!!!

Re: Run Stored Procedures from Shell!!!

From: Mark D Powell <mark.powell_at_eds.com>
Date: 18 Oct 2001 06:37:51 -0700
Message-ID: <178d2795.0110180537.cdc6c8@posting.google.com>


"Markus Neumaier" <markus.neumaier_at_rl-ag.de> wrote in message news:<9qmc0b$p96ji$1_at_ID-113543.news.dfncis.de>...
> Hi,
>
> It is possible to start Stored Procedures from a normal Unix Shell Script.
> If it is possible, how?
>
> Best regards Neimoa!!

Stored database procedures can only be executed from an Oracle client like sqlplus or pro*c; however, you can start an Oracle client via a shell and it can call the procedure as in the following example

#!/bin/ksh
sqlplus -s userid/password <<EOF
variable id number
 BEGIN
   :id := 22;
 END;
/
print id
EOF The instream pl/sql script could be changed to an execute stored_proc call.

Received on Thu Oct 18 2001 - 08:37:51 CDT

Original text of this message

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