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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: passing parameters to a stored procedure from command prompt

RE: passing parameters to a stored procedure from command prompt

From: Mercadante, Thomas F <NDATFM_at_labor.state.ny.us>
Date: Wed, 11 Dec 2002 04:53:45 -0800
Message-ID: <F001.00517675.20021211045345@fatcity.com>


Kranti,

Something like this:

echo exec pl_sql_procedure('%1'); > run.sql

echo exit                         >> run.sql
%oracle_home%\bin\sqlplus user/pw @run.sql

Hope this helps

Tom Mercadante
Oracle Certified Professional

-----Original Message-----
[mailto:kranti.pushkarna_at_accenture.com]
Sent: Wednesday, December 11, 2002 3:39 AM To: Multiple recipients of list ORACLE-L

Hi all,

      I am running a batch file through which I am opening SQLPLUS session and calling a stored procedure. I want to pass parameters to this procedure from the command prompt. Is it possible? Can anyone on this list will help me.
 Environment is Oracle 8.1.7 and OS Win2k.

Thanx,
Kranti Pushkarna

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.

--

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

Author:
  INET: kranti.pushkarna_at_accenture.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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).
--

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

Author: Mercadante, Thomas F
  INET: NDATFM_at_labor.state.ny.us
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Wed Dec 11 2002 - 06:53:45 CST

Original text of this message

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