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: calling pl/sql procedure from unix shell script (URGENT HELP REQUESTED)

Re: calling pl/sql procedure from unix shell script (URGENT HELP REQUESTED)

From: Billy Verreynne <vslabs_at_onwe.co.za>
Date: 20 Nov 2003 21:50:42 -0800
Message-ID: <1a75df45.0311202150.1449b3f6@posting.google.com>


"Lakshmi Jagarlapudi" <jlnarayana_at_comcast.net> wrote

> However the procedure_name mentioned has some in and out parameters for it.
> How would i pass them to the
> procedure_name.

Simple example.

--
#!/bin/sh

# variables
FOO1=$1          # string variable for stored proc
FOO2=$2          # numeric variable for stored proc

sqlplus /nolog <<EOF

  connect scott/tiger

  begin
     -- stored proc takes varchar2 and number as input
     scott.foo_processor( '$FOO1', $FOO2 );
  end;
/

  exit;
EOF
--
Received on Thu Nov 20 2003 - 23:50:42 CST

Original text of this message

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