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: <kranti.pushkarna_at_accenture.com>
Date: Wed, 11 Dec 2002 04:19:05 -0800
Message-ID: <F001.00517635.20021211041905@fatcity.com>

Thanx alo Yechiel Adart!! It worked.
Kranti

                                                                                                                                       
              "Yechiel Adar"                                                                                                           
              <adar76_at_inter.net.il>            To:      Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>                    
              Sent by:                         cc:                                                                                     
              root_at_fatcity.com                 Subject: Re: passing parameters to a stored procedure from command prompt               
                                                                                                                                       
                                                                                                                                       
              12/11/2002 03:39 PM                                                                                                      
              Please respond to                                                                                                        
              ORACLE-L                                                                                                                 
                                                                                                                                       
                                                                                                                                       



Use &1 &2 for the parameters passed from the command line. If you had (test.sql) a script like:

select &1 from dual;
exit;

and you write on the command line:
sqlplus Scott/tiger_at_db @test.sql 'kuku'

It will become:

select 'kuku' from dual;

Yechiel Adar
Mehish
----- Original Message -----
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> Sent: Wednesday, December 11, 2002 10:39 AM

>
> 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: Yechiel Adar
  INET: adar76_at_inter.net.il

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).




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).
Received on Wed Dec 11 2002 - 06:19:05 CST

Original text of this message

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