Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: pass a value from a shell script to a store procedure
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).
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).
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
![]() |
![]() |