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

Home -> Community -> Mailing Lists -> Oracle-L -> Calling SQL*Plus and Run Procedure in UNIX script, How ?

Calling SQL*Plus and Run Procedure in UNIX script, How ?

From: Robert Chin <chinman_at_optonline.net>
Date: Thu, 29 Nov 2001 15:00:55 -0800
Message-ID: <F001.003D13F0.20011129143026@fatcity.com>

In UNIX shell script: How does one invoke SQL*Plus, pass a shell variable to run a stored procedure ?
i.e. if you have a UNIX variable $my_table (= dept) how do you invoke sql*plus and pass $my_table to a procedure which you'd otherwise manually run in sql*plus as

SQL> exec check_table('dept')

Thanks very much !
Robert Chin

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Robert Chin
  INET: chinman_at_optonline.net

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Nov 29 2001 - 17:00:55 CST

Original text of this message

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