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: pass a value from a shell script to a store procedure

RE: pass a value from a shell script to a store procedure

From: Anne Yu <AYu_at_sos.state.tx.us>
Date: Fri, 09 Nov 2001 09:44:04 -0800
Message-ID: <F001.003C1120.20011109093051@fatcity.com>

Thank you so much for response to my email.

I know we can do: Date= `date` but not `date -1`.

-----Original Message-----
Sent: Friday, November 09, 2001 11:14 AM To: Multiple recipients of list ORACLE-L

So long as you embed your call to Oracle within your program, the program can pass variables to Oracle all day long.

#!/bin/ksh
DATE=`date - 1`
DBA=`Anne Yu`
sqlplus << EOF
system/incredibly_secret_password
select $DATE,$DBA from dual;
exit
EOF
echo "Done!"

-----Original Message-----
Sent: Friday, November 09, 2001 10:56 AM To: Multiple recipients of list ORACLE-L

Hey List,

I need to pass a value `date - 1` to a store procedure from a shell script.
Really appreciate if anyone can help.

Thanks,
--

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

Author: Anne Yu
  INET: AYu_at_sos.state.tx.us

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

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

Author: Bellows, Bambi
  INET: BBellows_at_usg.com
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).
--

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

Author: Anne Yu
  INET: AYu_at_sos.state.tx.us
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 Fri Nov 09 2001 - 11:44:04 CST

Original text of this message

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